Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions rtl/test/croc_vip.sv
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,15 @@ module croc_vip #(
byte_count = 0;
end
end

// Flush any remaining bytes
if (byte_count != 0) begin
data >>= 8 * (4 - byte_count); // zero-pad remaining bytes
jtag_write(dm::SBData0, data);
addr += 4;
byte_count = 0;
data = 32'h0;
end
end
jtag_dbg.write_dmi(dm::SBCS, JtagInitSbcs);
$fclose(file);
Expand Down
Loading