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

Access design variables from Verilog-A file

$
0
0

Hi,

I wonder if there are any way to access design variables in ADEXL from a Verilog-A file during a transient simulation?

I am sweeping a design variable in my ADE-XL session and running several simulations in parallel. During the simulation, i use a Verilog-A script to read simulation data and store to a .csv file. 

The problem is that when i run the simulations in parallel, i dont know in which order the simulations will be finished and hence the order of the results in the CSV file. If i could write the value of the design variable under sweep together with the simulated data, i could determine the order of the simulations in post processing of the CSV file. 

In below for MWE, i read the voltages vin and vinp at the first timestep after 1ns. 

module datacollect(inp,inn);
input inp,inn;
electrical inp,inn;
integer file;
integer found=0;
analog begin
@(initial_step) begin
file=$fopen("path/temp_data.csv","a");
found=0;
end
if($realtime>1e-9)
begin
if(found==0)
begin
$fwrite(file,V(inp),",","V(inn),",",sweep_var),",");
found=1;
end
end
end
endmodule

Thanks


Viewing all articles
Browse latest Browse all 4897

Trending Articles



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