Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global_buffer size mismatch #4

Open
p5802p5802 opened this issue Apr 15, 2021 · 1 comment
Open

global_buffer size mismatch #4

p5802p5802 opened this issue Apr 15, 2021 · 1 comment

Comments

@p5802p5802
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants