Jan 27, 2013 #1 H hassanzia Junior Member level 3 Joined Nov 24, 2011 Messages 30 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 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!
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!
Jan 28, 2013 #2 P permute Advanced Member level 3 Joined Jul 16, 2010 Messages 918 Helped 295 Reputation 590 Reaction score 266 Trophy points 1,343 Activity points 8,543 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.
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.