Skip to content

Commit

Permalink
Update testbench, aid in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen329 committed Dec 12, 2018
1 parent 9e2aff4 commit 7985c6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/canonical-phase3/project-phase3-testbench.v
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ module cpu_ptb();
assign ICacheReq = DUT.pcRegister.we;
// Signal indicating a valid instruction read request to cache

assign ICacheHit = ~DUT.i_miss;
assign ICacheHit = ~DUT.i_miss & DUT.pcRegister.we;
// Signal indicating a valid instruction cache hit

assign DCacheReq = DUT.mem_inst[15:12]==4'b1000;
assign DCacheReq = DUT.mem_inst[15:13]==4'b100;
// Signal indicating a valid instruction data read or write request to cache

assign DCacheHit = ~DUT.d_miss;
assign DCacheHit = ~DUT.d_miss & (DUT.mem_inst[15:13]==4'b100);
// Signal indicating a valid data cache hit


Expand Down

0 comments on commit 7985c6c

Please # to comment.