SummerCart64/fw/v2/rtl/pll.sv
Polprzewodnikowy 2172c7ff15 Create v2 fw
2021-08-01 15:32:48 +02:00

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