Objectmix
Tags Register Mark Forums Read

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...


Object Mix > Programming Languages > verilog > verilog multidimentional arrays

Reply

 

LinkBack Thread Tools
  #1  
Old 05-03-2006, 10:18 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default verilog multidimentional arrays

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

Reply With Quote
  #2  
Old 05-04-2006, 12:15 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: verilog multidimentional arrays

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).

Reply With Quote
  #3  
Old 05-08-2006, 12:01 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: verilog multidimentional arrays

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

Reply With Quote
Reply

Thread Tools


Similar Threads

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.