RVSCC/test/test_single_cycle_core.sv
Mario Romero 7d6743b4fb
Some checks are pending
continuous-integration/drone/push Build is pending
Remove debug info and add instr mem interface
2023-02-26 22:40:05 -03:00

34 lines
660 B
Systemverilog

`timescale 1ns / 1ps
module test_single_cycle_core ();
logic clk, rst;
always #1 clk = ~clk;
instr_memory_if instr_mem_if;
instr_memory #(.FILE_PATH("../fw/test/test-core.mem")) instr_mem (instr_mem_if.mem);
data_memory_if data_mem_if (
.clk(clk),
.rst(rst)
);
data_memory data_mem (.data_mem_if(data_mem_if.ram));
single_cycle_datapath dut (
.clk(clk),
.rst(rst),
.instr_mem_if(instr_mem_if.datapath),
.data_mem_if(data_mem_if.datapath)
);
initial begin
$dumpfile("single_cycle.vcd");
$dumpvars(1, dut);
clk = 0;
rst = 1;
#4;
rst = 0;
#100;
$finish;
end
endmodule