Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
41c0d44e5This file is pinned to the selected release. Download the original to open it in your design tool.
`default_nettype none
module servant_ecp5_clock_gen
(
input i_clk,
input i_rst,
output o_clk,
output o_rst);
wire locked;
reg [1:0] rst_reg;
always @(posedge o_clk)
if (i_rst)
rst_reg <= 2'b11;
else
rst_reg <= {!locked, rst_reg[1]};
assign o_rst = rst_reg[0];
pll pll
(.clki (i_clk),
.clko (o_clk),
.locked (locked));
endmodule