Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

problem when launching hspice from matlab

Status
Not open for further replies.

zaimang101

Junior Member level 2
Joined
Aug 1, 2013
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Activity points
131
The launching code as follow
system('E:\Synopsys\Hspice_F-2011.09\BIN\hspice techchar.sp > techchar.out');

After simulating, techchar.out is not created.
I don't know why.

**************************************************************************************************************
original code is from ee214b murmann

% /usr/class/ee214b/hspice/techchar.m
% HSpice toolbox
addpath('/usr/class/ee214b/matlab/hspice_toolbox')
% Parameters for HSpice runs
VGS_step = 25e-3; VDS_step = 25e-3; VS_step = 0.1;
VGS_max = 1.8; VDS_max = 1.8; VS_max = 1;
VGS = 0:VGS_step:VGS_max; VDS = 0:VDS_step:VDS_max; VS = 0:VS_step:VS_max;
W = 5; L = [(0.18:0.02:0.5) (0.6:0.1:1.0)];
% HSpice simulation loop
for i = 1:length(L)
for j = 1:length(VS)
% write out circuit parameters and run hspice
fid = fopen('techchar_params.sp', 'w');
fprintf(fid,'*** simulation parameters **** %s\n', datestr(now));
fprintf(fid,'.param width = %d\n', W*1e-6);
fprintf(fid,'.param length = %d\n', L(i)*1e-6);
fprintf(fid,'.param subvol = %d\n', VS(j));
fprintf(fid,'.param gsstep = %d\n', VGS_step);
fprintf(fid,'.param dsstep = %d\n', VDS_step);
fprintf(fid,'.param gsmax = %d\n', VGS_max);
fprintf(fid,'.param dsmax = %d\n', VDS_max);
fclose(fid);
system('/usr/class/ee/synopsys/hspice/F-2011.09-SP2/hspice/bin/hspice techchar.sp >!...
techchar.out');
end
end
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top