1
0
mirror of https://github.com/olofk/serv.git synced 2026-05-02 22:42:41 +00:00

add support for SoCKit development kit board

This commit is contained in:
somhi
2021-01-30 12:52:38 +01:00
committed by Olof Kindgren
parent f70b79fd8f
commit bc9705bef2
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
`default_nettype none
module servive_clock_gen
(input wire i_clk,
input wire i_rst,
output wire o_clk,
output wire o_rst);
wire locked;
reg [9:0] r;
assign o_rst = r[9];
always @(posedge o_clk)
if (locked)
r <= {r[8:0],1'b0};
else
r <= 10'b1111111111;
wire [5:0] clk;
assign o_clk = clk[0];
altpll
#(.operation_mode ("NORMAL"),
.clk0_divide_by (25),
.clk0_multiply_by (8),
.inclk0_input_frequency (20000))
pll
(.areset (i_rst),
.inclk ({1'b0, i_clk}),
.clk (clk),
.locked (locked));
endmodule