We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d662b commit 25289a4Copy full SHA for 25289a4
1 file changed
rtl/test/croc_vip.sv
@@ -236,6 +236,14 @@ module croc_vip #(
236
// remove the byte from the line (2 numbers + 1 space)
237
line = line.substr(3, line.len()-1);
238
239
+ // Pad the word with 0s if the line ended between word boundaries
240
+ if (line.len() < 3) begin
241
+ for (int unsigned cb = byte_count; cb < 4; cb++) begin
242
+ data = {8'h00, data[31:8]};
243
+ byte_count++;
244
+ end
245
246
+
247
// write a complete word via jtag
248
if (byte_count == 4) begin
249
jtag_write(dm::SBData0, data);
0 commit comments