The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Arrays in verilog https://designers-guide.org/forum/YaBB.pl?num=1267853827 Message started by akhil on Mar 5th, 2010, 9:37pm |
Title: Arrays in verilog Post by akhil on Mar 5th, 2010, 9:37pm Can we use double dimensional arrays in verilog .. if so how ? |
Title: Re: Arrays in verilog Post by pancho_hideboo on Mar 6th, 2010, 2:31am Quote:
"aaa[i][j]" can be accessed as "aaa[`Ncol*i+j], 0<=i<=`Nrow-1, 0<=j<=`Ncol-1". |
Title: Re: Arrays in verilog Post by akhil on Mar 6th, 2010, 7:31am Can we have double dimensional input output ports... |
Title: Re: Arrays in verilog Post by akhil on Mar 6th, 2010, 7:54am cud u xplain the above post...as i am a beginner ...i can see only 1 dimensional array |
Title: Re: Arrays in verilog Post by akhil on Mar 6th, 2010, 10:03am Actually i wanted to design 64 bit prefix adders..so while writing the verilog code i wrote output [63:0] c [1:0] ; as i wanted to store 64 propagate and generate functions ...i.e for each bit i would store the G and P ... but it was throwing up error during compilatio Secondly , can i get some web link where i can find more about prefix adders in terms of verilog code not the description part |
Title: Re: Arrays in verilog Post by Marq Kole on Mar 8th, 2010, 7:02am As far as I know Verilog IEEE 1364-2008 only supports one-dimensional arrays. SystemVerilog IEEE 1800-2009 does have multi-dimensional array support. Cheers, Marq |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |