The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Spectremdl using exported values
https://designers-guide.org/forum/YaBB.pl?num=1400607389

Message started by JairoD on May 20th, 2014, 10:36am

Title: Spectremdl using exported values
Post by JairoD on May 20th, 2014, 10:36am

Hello all,

I just recently started using spectremdl and as a new user I am having a particular issue. I am trying to get a scenario and I am having trouble with the implementation using spectremdl. What I want to do is to run a transient simulation, calculate the value of a parameter from the transient sim, and than after that I want to run an AC sim using the value of the parameter that I calculated in the transient sim. So far I have this code:

alias measurement trans {
         run tran1
         export real var_y=(abs(V(signal)))@40u (this is just an example to show that I am extracting a variable from the trans sim)
}

run trans
(here I want to change a parameter called I_clk to equal var_y)
I_clk=var_y
run ac


I get an error when running this because it seems the var_y is only seen in the scope of the trans measurement. Is there any way to grab that value and than use it for my ac simulation? any help would be appreciated.

-Jairo

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.