Files
iceFun_Projects/tdc/rtl/clk_gen.v
2020-10-26 17:35:52 -05:00

20 lines
404 B
Verilog

`default_nettype none
// dummy clock generator, should be replaced by a PLL clock gen eventually
module clk_gen #(parameter DIVISION=22)(
input wire i_clk,
output wire o_clk
);
reg [DIVISION-1:0] counter = 0;
always @(posedge i_clk) begin
counter <= counter + 1;
end
assign o_clk = counter[DIVISION-1];
endmodule
// Local Variables:
// verilog-library-directories:(".." "./rtl" ".")
// End: