Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4917

MDL: create a new waveform and save it into a wavefile

$
0
0

Hello,

I have this MDL file:

alias measurement mdltest

run tran
print fmt("%g %g\n", xval(voutp), yval(voutp)) addto="sample.txt"
export real divided = V(voutp) / V(voutn)

}

run mdltest

and I run it with this command:

spectre =mdl main.mdl input.scs

During the simulation, a sample.txt file is created and the X and Y values of the signal are periodically written to it, as expected (it is important that I do not have to wait for the simulation to end).
I would expect the wave file, called mdltest.meas_tran (in this context), to contain a signal called "divided" and this signal should be the ratio of voutp and voutn at every time step of this transient simulation.

Instead, I have a signal which has only a single point of data. Why is this happening? The reference manual is not very clear on how to generate and plot a new signal from an expression.

Thank you and best regards,

Patrik


Viewing all articles
Browse latest Browse all 4917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>