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

Launching Spectre from Matlab Error

$
0
0

Exactly the same problem can be found in this post.

When I execute system(c.simcmd), I got this.

Is there anything that I can try?

I use:
Virtuoso IC6.1.8-64b.500.14
Spectre  19.1.0 64bit
Matlab R2018b (9.5.0.944444)

In the first file, the path is defined. Here is the snippet.
function c = techsweep_config_bsim4_28_spectre

% Models and file paths
c.modelfile = '"/data/cern_ibm/TJ65/TPSCo_PDK_v4.6.0/tps65isc/model/spectre/6M2Y_default/.master_files/MOS_12Lvt.scs" section=total_typ';
c.modelinfo = '65nm CMOS, BSIM4';
c.corner = 'NOM';
c.temp = 300;
c.modeln = 'tnnm133_hs_lvt';
c.modelp = 'tpnm133_hs_lvt';
c.savefilen = 'tnnm133_hs_lvt';
c.savefilep = 'tpnm133_hs_lvt';
%c.simcmd = 'set path=($path /cad/cadence/IC615.06.15.502.lnx/tools/bin); /cad/cadence/MMSIM13.ISR12.11.292.lnx86/tools/bin/spectre techsweep.scs >! techsweep.out';
c.simcmd = 'set PATH=($PATH /data/europractice/cds/cds_2020/IC618/tools/bin); /data/europractice/cds/cds_2020/SPECTRE191 techsweep.scs >! techsweep.out';
c.outfile = 'techsweep.raw';
c.sweep = 'sweepvds_sweepvgs-sweep';
c.sweep_noise = 'sweepvds_noise_sweepvgs_noise-sweep';

The second file is the top file. Here is the snippet. 
clearvars;
close all;

% Load configuration
c = techsweep_config_psp_65_spectre;


% Write simulation parameters
% fid=fopen('techsweep_params.scs', 'w');original
fid=fopen('techsweep.scs', 'w');
fprintf(fid,'parameters length = %d\n', c.LENGTH(1));
fprintf(fid,'parameters sb = %d\n', c.VSB(1));
fclose(fid);

%Run simulator
system(c.simcmd);
[status,result] = system(c.simcmd);
if(status)
    disp('Simulation did not run properly. Check techsweep.out.')
    return;
end   


Viewing all articles
Browse latest Browse all 4889

Trending Articles