Skip to content

Commit

Permalink
Tweak testbench a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen329 committed Dec 12, 2018
1 parent 7985c6c commit b795c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/canonical-phase3/project-phase3-testbench.v
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ module cpu_ptb();
assign MemDataOut = DUT.mem_DataReadData;
// If there's a memory read in this cycle, this is the data being read out of memory (16 bits)

assign ICacheReq = DUT.pcRegister.we;
assign ICacheReq = ~DUT.hlt;
// Signal indicating a valid instruction read request to cache

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

assign DCacheReq = DUT.mem_inst[15:13]==4'b100;
Expand Down

0 comments on commit b795c38

Please sign in to comment.