Re: Another array question - and BMAS plug..

From: Jonathan David <j.david_at_.....>
Date: Fri Sep 16 2005 - 17:45:00 PDT
so HERE is a situation that perhaps rather than
involving the language committee, should go to the
users group.. My approach to this situation would be
to write the number crunching routine to give you the
(lets call it) "Y&ZvsX" datafile from YvsX and ZvsX
datafiles in C, and package it in a PLI function
call.. 
Then you can use $table_model in the analog domain
Or $fread to populate the table in the digital domain,
and you can still ACCESS the info in the analog
model.. the only place you can't do this is probably
in device level models.. 
A GREAT place to get additional help on this type of
thing is at the IEEE Behavioral Modeling and
Simulation Workshop, which, coincidently, is happening
next week right after CICC in San Jose.. for more info
see www.bmas-conf.org .. (shameless plug by the BMAS
Publicity Chair) ..
Jonathan David
(hope to see you there!)


--- "Muranyi, Arpad" <arpad.muranyi@intel.com> wrote:

> Sorry for beating the dead horse some more, but I
> ran into another problem with arrays.  I need to
> either resize an array or be able to declare an
> array after some number crunching.
> 
> My (limited) understanding is that the size of the
> array is determined at the time of the declaration
> and cannot be changed during simulation.  Correct?
> Do all declarations have to be placed before the
> "analog begin" keyword?  Also, my understanding is
> that all code has to be after the "analog begin"
> keyword.  Is this correct?
> 
> If this is all true, it doesn't seem to be possible
> to run some code and generate an array which has
> a size that depends on the outcome of that code.
> 
> Here is an example why this would be important:
> There are two or more x-y data tables which must be
> processed by some algorithm.  In order to process
> them, they must have a common distribution of x-axis
> points, but the raw incoming data is not guaranteed
> to obey that rule.  So I need to generate a new
> x-axis
> which includes all x-points of all tables without
> repetition, and then fill in the missing y points
> by interpolation.  The length of the new array will
> be determined by the raw data tables, and is unknown
> beforehand.
> 
> Could anyone tell me whether this can be done
> according
> to Verilog-AMS LRM v2.2?
> 
> Thanks, and have a good weekend.
> 
> Arpad
>
=====================================================
> 
> 
Received on Fri Sep 16 17:45:07 2005

This archive was generated by hypermail 2.1.8 : Fri Sep 16 2005 - 17:45:43 PDT