RVSCC/test/test_cache_memory.sv
Mario Romero bd2f58d5f6
Some checks are pending
continuous-integration/drone/push Build is pending
Change name scheme and add tests
2023-02-26 20:26:11 -03:00

30 lines
462 B
Systemverilog

`timescale 1ns / 1ps
module test_cache_memory ();
logic [31:0] addr, write_data, read_data;
logic clk, rst, write_enable;
CacheMemory cache_memory (
.clk(clk),
.rst(rst),
write_enable,
write_data,
read_data
);
always #5 clk = ~clk;
initial begin
clk = 0;
rst = 1;
write_enable = 0;
#25 rst = 0;
addr = 'd7;
write_enable = 1;
write_data = 'd10;
#25 write_enable = 0;
end
endmodule