edajason
Member level 3
I intended to generate the data file from Hspice and plot the figure in matlab. In unix, we know the matlabe can load the hspice data. How to do it in PC version.
Thanks
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
huangjw said:hi fun.zhao,
how do i add the HspiceToolbox,
i follow the document,but it doesn't work.
thanks in advance.
*********************************************************edajason said:You have to compile the load command, just read the instruction. As long as you can load the data in matlab window, you will be fine.
huangjw said:hi fun.zhao,
how do i add the HspiceToolbox,
i follow the document,but it doesn't work.
thanks in advance.
Added after 5 minutes:
The file link is here,
h**p://www-mtl.mit.edu/researchgroups/perrottgroup/tools.html#hspice
Follow the instruction, compile the command loadsig; and then you can load the data:
x=loadsig('eye.tr0'); %Load the hspice output file eye.tr0 into matlab variable x
lssig(x) % List the variables in the x datastructure
y=evalsig(x,'v_3'); % Assign the hspice variable v_3 to matlab
Now you can plot whatever you want.
yen said:*********************************************************edajason said:You have to compile the load command, just read the instruction. As long as you can load the data in matlab window, you will be fine.
huangjw said:hi fun.zhao,
how do i add the HspiceToolbox,
i follow the document,but it doesn't work.
thanks in advance.
Added after 5 minutes:
The file link is here,
h**p://www-mtl.mit.edu/researchgroups/perrottgroup/tools.html#hspice
Follow the instruction, compile the command loadsig; and then you can load the data:
x=loadsig('eye.tr0'); %Load the hspice output file eye.tr0 into matlab variable x
lssig(x) % List the variables in the x datastructure
y=evalsig(x,'v_3'); % Assign the hspice variable v_3 to matlab
Now you can plot whatever you want.
Hspice Toolbox for Matlab
written by Michael Perrott (h**p://www-mtl.mit.edu/~perrott)
while at Silicon Laboratories (h**p://www.silabs.com)
Copyright (C) 1999 by Silicon Laboratories, Inc.
This software is distributed under the terms of
the GNU Public License (see the COPYING file
for more details), and comes with no warranty or support
*********************************************************
error in hs_allocate_sf: unexpected values in block1 header
??? One or more output arguments not assigned during call to 'loadsig'.
I have a error.I see loadsig is a loadsig.C.
Do I want to have a C++?
Or just use matlab.
Thanks.
From the paper of HSPICE Toolbox for MATLAB by Michael Perrott, it tell us to add the included files directory to the Matlab path. that is, add a patth to the file startup.m.edajason said:You have to compile the load command, just read the instruction. As long as you can load the data in matlab window, you will be fine.
huangjw said:hi fun.zhao,
how do i add the HspiceToolbox,
i follow the document,but it doesn't work.
thanks in advance.
Added after 5 minutes:
The file link is here,
h**p://www-mtl.mit.edu/researchgroups/perrottgroup/tools.html#hspice
Follow the instruction, compile the command loadsig; and then you can load the data:
x=loadsig('eye.tr0'); %Load the hspice output file eye.tr0 into matlab variable x
lssig(x) % List the variables in the x datastructure
y=evalsig(x,'v_3'); % Assign the hspice variable v_3 to matlab
Now you can plot whatever you want.
shinnyi said:how do i add the HspiceToolbox,
i follow the document,but it doesn't work.
how to compile the command loadsig;
did anyone can tell me detial about it
>> x = loadsig(’test.tr0’);
??? x = loadsig(’test.tr0’);
|
Error: Missing variable or function.
shinnyi said:oh my ---!!
why ??
it 'still can't work
>> mex loadsig.c
C:\MATLAB701\BIN\WIN32\MEX.PL: Error: 'loadsig.c' not found.
??? Error using ==> mex
Unable to complete successfully
shinnyi said:sorry !anybody can tell me
how to compile the command loadsig;
Added after 6 minutes:
dear shaq
what's wrong
help me please
>> mex loadsig.c
>> x = loadsig(’c:\test.tr0’); %% loads Hspice signals into x
??? x = loadsig(’c:\test.tr0’); %% loads Hspice signals into x
|
Error: Missing variable or function.
Added after 38 minutes:
please help me
how to do this step
All files should work across different computer platforms, though the loadsig mexfile may
need to be recompiled. It is currently compiled for Sun, Redhat Linux, and Windows
2000/Xp machines. To compile the loadsig function for a different platform, go to the
directory containing loadsig.c within Matlab, and then type mex loadsig.c within Matlab.