Initial commit

This commit is contained in:
Andrei Solodovnikov
2023-09-07 17:04:37 +03:00
commit f4c0960704
334 changed files with 36105 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
`timescale 1ns / 1ps
module tb_miriscv_top();
parameter HF_CYCLE = 2.5; // 200 MHz clock
parameter RST_WAIT = 10; // 10 ns reset
parameter RAM_SIZE = 512; // in 32-bit words
// clock, reset
reg clk;
reg rst_n;
miriscv_top #(
.RAM_SIZE ( RAM_SIZE ),
.RAM_INIT_FILE ( "program_sort.dat" )
) dut (
.clk_i ( clk ),
.rst_n_i ( rst_n )
);
initial begin
clk = 1'b0;
rst_n = 1'b0;
#RST_WAIT;
rst_n = 1'b1;
end
always begin
#HF_CYCLE;
clk = ~clk;
end
endmodule