mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2024-12-25 10:36:49 -07:00
make mem_data_rvalid a reg in tb
This commit is contained in:
parent
cc4101c1f8
commit
8decf52443
|
@ -48,9 +48,10 @@ wire [31:0] mem_data_wdata;
|
|||
wire [3:0] mem_data_wmask;
|
||||
wire mem_data_we;
|
||||
reg mem_data_wready;
|
||||
wire mem_data_rvalid = 1'b1;
|
||||
reg mem_data_rvalid;
|
||||
|
||||
always @(*) begin
|
||||
always @(mem_data_addr) begin
|
||||
mem_data_rvalid = 1'b1;
|
||||
if (mem_data_addr < MEM_LENGTH - 3) begin
|
||||
mem_data_rdata[ 7: 0] = mem[mem_data_addr+0];
|
||||
if (mem_data_addr[0] == 0) begin
|
||||
|
|
Loading…
Reference in New Issue
Block a user