Skip to content

Commit

Permalink
Fix debug test for RVC
Browse files Browse the repository at this point in the history
  • Loading branch information
atraber committed May 11, 2016
1 parent 4ada0ad commit de50693
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tb/spi_debug_test.svh
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,6 @@
debug_read(`DBG_NPC_REG, npc);
debug_read(`DBG_PPC_REG, ppc);

npc_last = npc - 4;
ppc_last = ppc - 4;

for(i = 0; i < 10; i++) begin
debug_wait_for_stall();
// read NPC and PPC
Expand All @@ -391,7 +388,7 @@
dbg_tb_errors++;
end

if (ppc !== npc_last) begin
if (i != 0 && ppc !== npc_last) begin
$display("ERROR: PPC is not equal to last NPC");
dbg_tb_errors++;
end
Expand Down

0 comments on commit de50693

Please sign in to comment.