lab-08: fix register file - disable writing when WRITE=0

This commit is contained in:
2024-10-24 23:11:59 -07:00
parent c3da7787d3
commit dbc23d80e4
2 changed files with 6 additions and 2 deletions

View File

@@ -114,6 +114,7 @@ no_of_pass = no_of_pass + 1;
result[ridx] = DATA_R1; ridx=ridx+1;
// TODO: Read and write from the same address at the same time?
// TODO: Write when WRITE=0 should be tested
#5 READ=1'b0; WRITE=1'b0; // No op