The Designer's Guide Community
Models in Minutes
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines. Oct 20th, 2018, 12:34am
  HomeHelpSearchLoginRegisterPM to admin  
Pages: 1
Send Topic Print
Array size function in Verilog-A/AMS? (Read 2176 times)
New Member

Intel signal
integrity; chair,
IBIS Open Forum

Posts: 1
Folsom, CA
Array size function in Verilog-A/AMS?
Dec 03rd, 2004, 11:04pm
I have a simple question regarding determining the size of arrays in Verilog-A and Verilog-AMS.  

If I have a function which will accept, for example, an array of reals, how may I determine within the function the size of the array?  In other words, do I have to pass the array size into my function as an explicit integer variable?  Is there some "sizeof" function in Verilog-A or Verilog-AMS which would allow me to determine the size of the array a priori?

Back to top

- Michael Mirmak
Intel Corp.
Chair, EIA/IBIS Open Forum
View Profile WWW   IP Logged
Senior Fellow

Posts: 1937
Massachusetts, USA
Re: Array size function in Verilog-A/AMS?
Reply #1 - Jun 6th, 2005, 8:53am
I'm not aware of a way to determine the array size.

Since in Verilog (1364), arrays have to be declared using constant_expressions for the address ranges, it seems that one wouldn't need to query the array (it can't grow during the simulation), other than to avoid passing an additional argument.
Back to top

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Trouble viewing this site? Copyright © 2002-2018 Designer's Guide Consulting. 'Designer's Guide' is a registered trademark of Designer's Guide LLC. All rights reserved.

Our colleges are not as safe as they seem. Sexual assault is pervasive and the treatment of the victim by the adminstration is often as damaging as the assault: Campus Survivors, Campus Survivors Forum.

Some of our other sites that you might find useful: Avendesora, Inform and QuantiPhy.