FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-04-2006, 05:18 AM
Guest
 
Posts: n/a
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 (permalink)  
Old 05-04-2006, 07:15 PM
Guest
 
Posts: n/a
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 (permalink)  
Old 05-08-2006, 07:01 PM
Jeremy Ralph
Guest
 
Posts: n/a
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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing arrays in PLI viji_sandy Verilog 0 11-07-2005 07:45 PM
arrays and functions Moritz Beller Verilog 3 08-02-2005 04:02 PM
EBB/Memory arrays in System Verilog agape Verilog 0 11-24-2004 08:02 PM
accessing 2D arrays in Verilog daluu Verilog 3 10-04-2004 07:43 PM
Verilog Instance Arrays and Synopsys DC? Marty Verilog 3 03-04-2004 07:25 PM


All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved