Skip to content

Commit 501716e

Browse files
committed
Merge branch 'isa_fix_old_mfb_driver' into 'devel'
Fix old verification MFB driver See merge request ndk/ndk-fpga!209
2 parents d272d11 + 2ccb9ec commit 501716e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

comp/mfb_tools/ver/mfb_driver.sv

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ class MfbDriver #(REGIONS = 4, REGION_SIZE = 8, BLOCK_SIZE = 8, ITEM_WIDTH = 8,
214214
tr.sof_pos = p / BLOCK_SIZE;
215215
end
216216
i = 0;
217-
while(i < tr.data.size)// transaction written onto bus
217+
218+
// transaction written onto bus
219+
while(i < tr.data.size) begin
218220
if((tr.data.size-i) > BLOCK_SIZE) begin
219221
for(j = 0; j < BLOCK_SIZE; j++, i++)
220222
data[offset+j] = tr.data[i];
@@ -235,7 +237,12 @@ class MfbDriver #(REGIONS = 4, REGION_SIZE = 8, BLOCK_SIZE = 8, ITEM_WIDTH = 8,
235237
moveBlock();
236238
break;
237239
end
240+
end
241+
end
238242

243+
// Send last word if there is
244+
if (eof != 0) begin
245+
moveWord();
239246
end
240247
endtask
241248

0 commit comments

Comments
 (0)