[ibis-macro] Re: More new BIRD drafts posted on the ATM website

  • From: "Walter Katz" <wkatz@xxxxxxxxxx>
  • To: <Arpad_Muranyi@xxxxxxxxxx>, "'IBIS-ATM'" <ibis-macro@xxxxxxxxxxxxx>
  • Date: Tue, 24 May 2011 11:20:53 -0400 (EDT)

Arpad,

 

Each call to an AMI_Init and AMI_GetWave use an independent set of
arguments which may or may not have the same pointer addresses and memory.
The only thing that must be maintained between the calls is AMI_memory
which the model allocates to stores persistent information that gets
communicated from the AMI_Init and AMI_GetWave to subsequent calls to
AMI_GetWave and AMI_Close.

 

Is the EDA tool supposed to provide two independent addresses for the

AMI_parameters_out arguments in the AMI_Init and AMI_GetWave fuctions?

WMK> "At the discretion of the EDA Tool"

 

Is the AMI_Init function and the AMI_GetWave function supposed to use the

same string pointers (memory locations)?

WMK> I assume you mean memory location of the string: "At the discretion
of the model developer"

 

Are multiple AMI_GetWave functions supposed to use the same string
pointers

(memory location)?

WMK> I assume you mean memory location of the string: "At the discretion
of the model developer"

 

Is AMI_GetWave allosed to put string pointers into the **msg argument's

memory location?

No. The EDA tool cannot assume that AMI_GetWave is going to do anything
with the **msg data except possibly de-allocate it.

 

Spell out which function does the memory allocation (AMI_Init,
AMI_GetWave)

and which function does the deallocation (AMI_Close).

WMK> AMI_Init allocates the memory it allocates, and AMI_GetWave allocates
the memory it allocates. The DLL maintains the list of allocated memory
(in AMI_memory). AMI_GetWave may de-allocate memory allocated by previous
calls to AMI_Init and AMI_GetWave. AMI_Close is expected to de-allocate
any memory allocated by AMI_Init or AMI_GetWave not already de-allocated.

 

Walter

 

 

From: ibis-macro-bounce@xxxxxxxxxxxxx
[mailto:ibis-macro-bounce@xxxxxxxxxxxxx] On Behalf Of Muranyi, Arpad
Sent: Tuesday, May 24, 2011 12:15 AM
To: IBIS-ATM
Subject: [ibis-macro] More new BIRD drafts posted on the ATM website

 

This is to inform all of you that one more BIRD draft has

been posted on the ATM web site tonight.  This BIRD draft

is a clarification on the AMI_parameters_in, AMI_parameters_out

and msg arguments, to define and clarify the rules for these

function arguments:

 

http://www.vhdl.org/pub/ibis/macromodel_wip/archive/20110523/arpadmuranyi/
AMI_parameters_out%20Clarification%20BIRD%20draft%202/AMI_ParametersOut_BI
RD_02.pdf

 

Please note that there are a few questions at the end of

this BIRD draft which I would like to get answered in order

to be able to finish it.  As usual, I would like to request

everyone interested to please look over this draft (in

addition to the other three I had Mike L. post earlier

today and Friday), so we could discuss and finalize them

if possible in the ATM teleconference tomorrow (5/24).

 

Thanks,

 

Arpad

================================================================

 

Other related posts: