Multidriven Signals due to for loop in verilog

Status
Not open for further replies.

hassanzia

Junior Member level 3
Joined
Nov 24, 2011
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,506
Hi all,

if A,B and C are 8 bit deep RAMS then why does this code produces a multidriven signal error

Code:
for (i=0;i<16;i=i+1)
begin
  for (j=0;j<8;j=j+1)
    begin
      A[i][j] = B[i][j] ^ C[i][j];
    end
end

whereas this one produces no error
Code:
for (i=0; i<16; i=i+1)
begin
  A[i] = B[i] ^ C[i];
end
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…