AIC2021 / AIC2021_TPU_Template

Template for project1 TPU
11 stars 21 forks source link

global_buffer size mismatch #4

Open p5802p5802 opened 3 years ago

p5802p5802 commented 3 years ago

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

Oscarkai9139 commented 3 years ago

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