Hello,
I lost my fully configured ADE L state already multiple times (until I found out why) because of the following issue: I put my frequency generator into a cell and instantiate it as an instance in my main test bench.
The frequency generator circuit contains a bunch of vpulse from analogLib and the parameters are derived from CDF parameters using pPar, e.g., 1/pPar("param_flo"). This allows me to create a single block supporting 50%, 25% duty cycle clocks with different delays etc. The frequency itself is a design variable in ADE L and is supplied as a parameter to the instance.
Now when I select pss Analysis problems start: The values in the "Fundamental Tones" box contain all * Nan *. Additionally, the CIW displays the following messages:
*WARNING* "lineage" not defined for CDF pPar function
It seems that ADE L is unable to resolve the frequency when it is passed as a CDF parameter. That wouldn't be a big deal for me if I could at least edit it. But editing the tones is not possible; all fields are greyed. However, it seems that it is still possible to simulate by just manually entering the fundamental tone. Now when I exit ADE L and confirm to save the state this seems to be buggy: Sometimes ADE L would not quit and sometimes I get messages like in the CIW:
WARNING (ADE-1071): Cellview spectre_state1 of type nil already exists.
Simulation design variables differ from those on the cellView,
they have been saved in the file "/tmp/saved-design-variables".
To save future changes, copy variables to cellView before exiting.
So far so good. However, when I want to reload the state, I get:
(nil name "6" fundName "flo180" freqVar "1/(1/pPar("flo")-0)" freq "* Nan *" signal "Moderate" srcId "logen:V9" maxHarms "3" freqIndex "freq" oversample "1")
^^^
SYNTAX ERROR found at line 2 column 54 of file /home/simulator/rx/tb_rf_iq/spectre_state2/rfstim.state
*Error* lineread/read: syntax error encountered in input
and the whole ADE window is empty with all information lost.
Is there a proper way to do this?
Thanks!