Comments on: Verilog Arrays Plain and Simple https://www.verilogpro.com/verilog-arrays-plain-simple/ Verilog and Systemverilog Resources for Design and Verification Mon, 27 Jun 2022 07:39:14 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Gautham https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1829 Mon, 07 Oct 2019 07:09:28 +0000 http://www.verilogpro.com/?p=598#comment-1829 In reply to Jason Yu.

Hi Jason. Thank you for replying back. I’m sorry that the question is not very clear. Yes, I wanted to ask how to write data from a 1D array into consecutive locations of a memory in verilog.

Thank you…

]]>
By: Jason Yu https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1827 Sat, 05 Oct 2019 22:15:26 +0000 http://www.verilogpro.com/?p=598#comment-1827 In reply to Gautham.

Hi Gautham. Sorry I don’t fully understand your question. A 1D array has multiple elements. How can you write that into one location of a memory? Or you mean you want to write it to multiple consecutive locations of the memory?

]]>
By: Gautham https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1826 Sat, 05 Oct 2019 07:33:11 +0000 http://www.verilogpro.com/?p=598#comment-1826 Hi Jason,
I have a question regarding arrays and memory. I want to write the content of a 1D array into a specific location of a memory. But I’m not able to do this for some reason.
I request you to kindly suggest me the way i can do my above said task in verilog.

Thanks in Advance…

]]>
By: AbiVidhu https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1785 Wed, 14 Aug 2019 05:29:25 +0000 http://www.verilogpro.com/?p=598#comment-1785 Hi sir..how can i form covariance matrix in verilog.sir please suggest coding.

]]>
By: Jason Yu https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1478 Wed, 27 Feb 2019 15:16:51 +0000 http://www.verilogpro.com/?p=598#comment-1478 In reply to chetana.

Hi Chetana. If you want to instantiate a module multiple times in an array, you need to use a generate loop. See my article Verilog Generate Configurable Designs.

]]>
By: chetana https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1477 Wed, 27 Feb 2019 10:11:46 +0000 http://www.verilogpro.com/?p=598#comment-1477 Hi Jason,
I want to instantiate FIFO block 256 times. How to write an array?

Thanks In Advance

]]>
By: Jason Yu https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1468 Mon, 25 Feb 2019 07:11:28 +0000 http://www.verilogpro.com/?p=598#comment-1468 In reply to Rahul Panwar.

Hi. See an example I created on edaplayground here.

]]>
By: Rahul Panwar https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1414 Mon, 21 Jan 2019 09:59:02 +0000 http://www.verilogpro.com/?p=598#comment-1414 Hey Jason

I have a doubt regarding 2D arrays in Verilog. Suppose I want a design which take two 2D arrays as inputs and gives an output as 2D array. When I tried to declare the input output ports as 2D arrays, it did not work at all.
I request you to kindly suggest me the way i can do my above said task in verilog.

Thanks in Advance…..

]]>
By: Jason Yu https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1036 Sun, 29 Jul 2018 01:56:22 +0000 http://www.verilogpro.com/?p=598#comment-1036 In reply to Stefan Berzl.

Hi Stefan. I think internally depending on which way you define the array, it does potentially affect the location of where the data is placed (e.g. where array1[0] is located). But that will be transparent you when coding RTL as long as you use the indices consistently. SystemVerilog actually allows you to define an array with just array1[SIZE], which is the same as array1[0:SIZE-1].

]]>
By: Stefan Berzl https://www.verilogpro.com/verilog-arrays-plain-simple/#comment-1035 Sun, 29 Jul 2018 00:26:52 +0000 http://www.verilogpro.com/?p=598#comment-1035 If there’s no difference between array1[0:7] and array2[7:0], why does one have to put the lsb and msb?

]]>