Re: defining outputs through include file?



S. Badel wrote, on 02/19/08 09:38:
Hi,
I have set of calculator expression inside a file called
'outputs.scs'. The expressions are:

freqclk1=frequency(clip(VT("/CLK1") 10n 50n)
skewclk1=delay(..someexpr)

I want to include this file inside the analog artist simulation
environment and I want spectre to evalute outputs accordingly. Or
better still is there way to make expressions written in a file to
appear in the "Outputs" section of the analogartist window ?

I have more than 50 clocks and I have to measure several parameters on
each one of them (frequency, dutycycle, skew, rise/fall times). If I
type all the expressions inside analog artist using calculator my
fingers will no numb with the number of clicks or cut-n-paste that I
will have to do. Doing this stuff in Vi/Vim is way easier.

Thanks,
Alex


Well, you could simply load() your file after simulation (in fact, it's just SKILL expressions).
The difference being that your outputs wouldn't be defined in ADE and thus they won't be plotted automatically (you have to plot() yourself).

Unfortunately I don't think there's any way of defining ADE outputs other than interactively... But that's where OCEAN comes in handy.


Stéphane

I agree, I'd do this with OCEAN. There is a way of adding ADE outputs (I was
asked this recently), but it involves a number of private SKILL functions,
so best avoided (i.e. I'm not going to advertise it here since private
functions are liable to change - you should ask for a public way to be added
via customer support).

There is however a way to do this in ADE-XL in IC61 - using the axlAddOutputs() function.

But probably the simplest thing to do here is to write an OCEAN script which
performs all your measurements - you can then use a foreach loop on a list
of signal names, and do the common calculation on each:

foreach(signal list("/CLK1" "/CLK2" "/CLK3")
rise=riseTime(v(signal ?result 'tran) ...)
fall=...
slew=...
printf("%s: rise=%g fall=%g slew=%g\n" signal rise fall slew)
)

is a rough code template.

Regards,

Andrew.

.



Relevant Pages

  • Re: magnetic flux of a circular loop
    ... Alright, but the general result with Eand K, or the Java ... I don't know about the Java calculator, but the expressions for the ... so the voltage measurement is fine. ...
    (sci.physics.electromag)
  • Re: Round as calculator
    ... I have used the following round on every expression ... expressions and not all? ... >> match a calculator. ... >> calculate the totals using software and the other entity ...
    (microsoft.public.access.queries)
  • Re: Round as calculator
    ... Why are you making expressions more complex than necessary? ... author "Microsoft Office Access 2003 Inside Out" "Running Microsoft Access 2000" "SQL Queries for Mere Mortals" ... >>> match a calculator. ... As I>>> calculate the totals using software and the other entity ...
    (microsoft.public.access.queries)
  • RE: CalcSharp
    ... Curious as to why you did not have a standard calculator UI as one of the ... > CalcSharp is .Net application that evaluates mathematical expressions ... > and expressions can easily be edited. ... > - Tray and hotkey support ...
    (microsoft.public.dotnet.framework)
  • Re: magnetic flux of a circular loop
    ... might be the right derived expressions for this scenario. ... I don't know about the Java calculator, but the expressions for the mutual inductance are in fact giving average B field. ...
    (sci.physics.electromag)