Skip to content

Commit

Permalink
Fix tb/jtag_pkg.sv load_L2 task
Browse files Browse the repository at this point in the history
This fixes an issue where the load_L2 task would not load the last line
of stimulus when using the riscv-dbg module
  • Loading branch information
micprog committed Jun 13, 2022
1 parent 1448683 commit e2cb590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtl/tb/jtag_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,10 @@ package jtag_pkg;

jtag_addr = stimuli[num_stim][95:64];
for (int i=0;i<256;i=i+2) begin
if (num_stim > $size(stimuli) || stimuli[num_stim]===96'bx ) begin // make sure we have more stimuli
more_stim = 0; // if not set variable to 0, will prevent additional stimuli to be applied
break;
end
spi_addr = stimuli[num_stim][95:64]; // assign address
jtag_data[0] = stimuli[num_stim][31:0]; // assign data
jtag_data[1] = stimuli[num_stim][63:32]; // assign data
Expand All @@ -1524,10 +1528,6 @@ package jtag_pkg;
else begin
num_stim = num_stim + 1;
end
if (num_stim > $size(stimuli) || stimuli[num_stim]===96'bx ) begin // make sure we have more stimuli
more_stim = 0; // if not set variable to 0, will prevent additional stimuli to be applied
break;
end
spi_addr_old = spi_addr;

this.set_dmi(
Expand Down

0 comments on commit e2cb590

Please sign in to comment.