Initial work on reading instructions from bootROM
This commit is contained in:
18
sim/shared/clkgen.sv
Normal file
18
sim/shared/clkgen.sv
Normal file
@@ -0,0 +1,18 @@
|
||||
module clkgen #(
|
||||
PERIOD_NS = 10,
|
||||
RESET_DELAY_NS = 100
|
||||
) (
|
||||
output logic clk_o,
|
||||
output logic nreset_o
|
||||
);
|
||||
|
||||
initial begin
|
||||
clk_o <= 1'b0;
|
||||
nreset_o <= 1'b0;
|
||||
#RESET_DELAY_NS nreset_o <= 1'b1;
|
||||
end
|
||||
|
||||
always
|
||||
#(PERIOD_NS/2) clk_o <= ~clk_o;
|
||||
|
||||
endmodule
|
||||
Reference in New Issue
Block a user