Declaring 2 RAMs together 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
Is there a difference between the following two statements?

Code:
reg [7:0] a,b [0:1023];

AND

Code:
reg [7:0] a [0:1023];
reg [7:0] b [0:1023];

I'm just curious because declaring them together caused my code to go haywire, whilst declaring them separately solved everything!
 

possibly:

Code:
reg [7:0] a [0:1023], b [0:1023];

Though I'm not sure. I use marker based code folding (in vim/emac/etc...) and just hide the declarations.
 

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