AIC2021/AIC2021_TPU_Template

global_buffer size mismatch

p5802p5802 opened this issue · 1 comments

In global_buffer.v :
reg [GBUFF_ADDR_SIZE-1:0] gbuff [WORD_SIZE-1:0];
...
for(i=0; i<=256; i=i+1)
gbuff[i] <= 32'd0;
=> data size mismatch !
it should be :
reg [WORD_SIZE-1:0] gbuff [GBUFF_ADDR_SIZE-1:0]; // In fact, in consideration of IEEE1364 ,reg [WORD_SIZE-1:0] gbuff [0:GBUFF_ADDR_SIZE-1] is recommended, but it may cause error under this testbench;
Although data size mismatch will not cause error in this testbench, it may cause error under other condition

try reg [`WORD_SIZE-1:0] gbuff [`GBUFF_INDX_SIZE-1:0] mistake by TA
will update soon Thx~ @p5802p5802