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

SKILL: Print voltage to a text file in ADE XL over corners

$
0
0

Hello,

I have a simple SKILL script that I load and run in the CIW window after an ADE-L simulation finishes to output a sampled waveform to a text file for Matlab post processing.  A simplified example follows:

writePort = outfile("f1.txt")

for( i 0 Num_pts-1

   tx = i*t_clk

   this_t = t_start + tx

   v1 = value(VT("/v1node") this_t)

   fprintf(writePort "%10.6g " v1)

)

fprintf(writePort "\n")

The problem is when I try this after running a corner sweep in ADE-XL I get "srrWave:0x51f13e70" type of data.  I assume the voltage is now a structured array, with multiple waveforms (one per corner), and I need to use a function to access each corner data waveform separately.  What is the easiest way to do this?

I have played with ocnPrint() which does indeed work.  However, it also outputs column data with corner information spread throughout the numerical data in the file.  This makes the file bigger and requires more text processing (e.g., slower) in Matlab.  I was wondering if there was another solution closer in nature to my original script.

Many thanks in advance for any tips!

Kind regards,

Chris


Viewing all articles
Browse latest Browse all 4916

Trending Articles