mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-30 01:04:13 +01:00
42 lines
625 B
Systemverilog
42 lines
625 B
Systemverilog
interface if_pll (
|
|
input in_clk
|
|
);
|
|
|
|
logic clk;
|
|
logic sdram_clk;
|
|
logic reset;
|
|
|
|
modport pll (
|
|
input in_clk,
|
|
output clk,
|
|
output sdram_clk,
|
|
output reset
|
|
);
|
|
|
|
modport sys (
|
|
input clk,
|
|
input reset
|
|
);
|
|
|
|
modport sdram (
|
|
input sdram_clk
|
|
);
|
|
|
|
endinterface
|
|
|
|
|
|
module pll (if_pll.pll iface);
|
|
|
|
wire locked;
|
|
|
|
assign iface.reset = ~locked;
|
|
|
|
intel_pll intel_pll_inst (
|
|
.inclk0(iface.in_clk),
|
|
.c0(iface.clk),
|
|
.c1(iface.sdram_clk),
|
|
.locked(locked)
|
|
);
|
|
|
|
endmodule
|