verilog multidimentional arrays : verilog
This is a discussion on verilog multidimentional arrays within the verilog forums in Programming Languages category; hi, using verilog how to write a module which has an inpput port for an array of 8 bit signals and how to write a test bench for it. thank you. CMOS...
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| using verilog how to write a module which has an inpput port for an array of 8 bit signals and how to write a test bench for it. thank you. CMOS |
|
#2
| |||
| |||
| Verilog-2001 supports multi-dimensional arrays and arrays of nets, but you still cannot connect an entire array to a port. You can only connect scalars or vectors to ports. The arrays of nets were primarily intended for connection to multiple module instances created by generate loops. SystemVerilog allows connection of entire arrays to ports (which is related to the fact that it also allows you to assign entire arrays to each other). |
|
#3
| |||
| |||
| There are some tricks one can use to map an array to a port. In Verilog-2001 you can use arrays within the module then for the ports flatten the array into a vector. Silly that Verilog doesn't support multi-d arrays in ports. Glad to see this in SV. Of course arrays are useful for all kinds of things beyond connecting module instances created by generate loops... for example time sliced state-machines, channelized logic, parameterized modules etc. --- PDTi [ http://www.productive-eda.com ] SpectaReg -- Spec-down code and doc generation for register maps |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| verilog-system verilog integration | usenet | verilog | 3 | 09-26-2008 07:30 AM |
| Determination of fileType (verilog, VHDL or System Verilog) | usenet | verilog | 2 | 12-13-2007 03:47 AM |
| Verilog 2001 Multidemensional arrays with real | usenet | verilog | 4 | 12-11-2007 09:52 PM |
| Xilinx XST 9.1, Verilog 2-D arrays, always @* | usenet | verilog | 9 | 03-19-2007 11:17 AM |
| marshal 2-d arrays, structure members, and arrays of structures | usenet | DOTNET | 1 | 04-11-2006 11:59 AM |
All times are GMT -5. The time now is 07:53 PM.




