Accessing monte carlo data from ocean

  • Thread starter Svenn Are Bjerkem
  • Start date
S

Svenn Are Bjerkem

Guest
Hi,

I wanted to write a function to extract the envelope of a monte carlo
simulation.

Pseudo code:
Output of circuit is Y(f)
Final table is ymax(f) maximum at a given freq
Final table is ymin(f) minimum at a given freq

for each run in montecarlo run
for each frequency of run
check if Y(f) < ymin(f) or Y(f) > ymax(f)
store/replace ymin(f) or ymax(f) with Y(f) if true
end
end
end

After this run I am supposed to have two tables ymin(f) and ymax(f) that
are waveforms describing the lowest and highest values at each frequency.

My problem is that
value(VF("/aol2_outp") 'montecarlo 1.0)
returns a wave object and not a list because ocean also wants to return
the temperature. With ocnPrint() I get some descriptive text at the
beginning which I have to filter away.

Is there somewhere an ocean command that will return a list like
(f1 y1 f2 y2 f3 y3 ... fn yn)
that I have overseen?
--
Svenn
 
You have a wave object and you want list. That is definitely doable. I gave you
an example of this last 28 october, when you asked how to write a waveform to file.
There are most likely other ways to do it, using only public functions. Look
in the analog artist manual for "^dr" functions, and in the skill language user
manual for list manipulation topics.

Svenn Are Bjerkem wrote:
Hi,

I wanted to write a function to extract the envelope of a monte carlo
simulation.

Pseudo code:
Output of circuit is Y(f)
Final table is ymax(f) maximum at a given freq
Final table is ymin(f) minimum at a given freq

for each run in montecarlo run
for each frequency of run
check if Y(f) < ymin(f) or Y(f) > ymax(f)
store/replace ymin(f) or ymax(f) with Y(f) if true
end
end
end

After this run I am supposed to have two tables ymin(f) and ymax(f) that
are waveforms describing the lowest and highest values at each frequency.

My problem is that
value(VF("/aol2_outp") 'montecarlo 1.0)
returns a wave object and not a list because ocean also wants to return
the temperature. With ocnPrint() I get some descriptive text at the
beginning which I have to filter away.

Is there somewhere an ocean command that will return a list like
(f1 y1 f2 y2 f3 y3 ... fn yn)
that I have overseen?
 

Welcome to EDABoard.com

Sponsor

Back
Top