In order to import thoseHspice simulation result into Matlab, HspiceToolbox can be used. details can be found from the links below:
http://www.edaboard.com/thread115394.html
n short, enter command "addpath ('C:\Users\Davison Mui\Documents\MATLAB\HspiceToolbox')" to include the Toolbox.
Second, enter command " x = loadsig('C:\Hspice\Circuit\Study\Charge pump\Simple Charge pump\simple charge pump.tr0')" to import the data.
That's all~~
Sample Matlab Code:
clear all
close all
clc;
addpath ('C:\Users\Davison Mui\Documents\MATLAB\HspiceToolbox')
x = loadsig('C:\Hspice\Circuit\Study\Charge pump\Simple Charge pump\simple charge pump.tr0')
% plot(x(10,1).data,'DisplayName','x(10,1).data','YDataSource','x(10,1).data');figure(gcf)
lssig(x)
figure;
plotsig(x, 'i_mp4');
hold on;
% % combin the value to a sum of vector
% http://www.mathworks.com/help/matlab/ref/timeseries.resample.html
i_mp4 = timeseries(evalsig(x, 'i_mp4'),evalsig(x, 'TIME'),'Name','sec');
i_mp4.time
i_mp4.data
i_mp4.getinterpmethod
% res_mp4=resample(i_mp4,[1:1e-6:max(evalsig(x, 'TIME'))]);
res_mp4=resample(i_mp4,[0:1e-9:max(evalsig(x, 'TIME'))]);
% figure;
plot(res_mp4, 'green');
2012年11月21日 星期三
2012年11月17日 星期六
[Cadence] Virtuoso/ICFB 615 Simultaion and working with Assura
Previously we have transported the UMC 65nm Design Kit from ICFB 514 to ICFB 615 and performed simulations successfully. The writer continued to explore different usage of Virtuoso.
A. Simulation with ADE GXL other than using Traditional ADE L
Traditional ADE L environment provide basic simulation function and parametric sweeping analysis.
While consider a pile of simulations as a single job, ADE GXL provide job managing to archive parallel simulation and systematic performance simulation including Monte Carl and Yield Analysis.
In simple wordings, it can simulate 8 parametric settings at the same time instead of doing them 1 by 1 to provide 8 times performance improvement.
However, this process involves VNC and Cadence provided VNC may crash and keep pending the jobs.
Solution:
Make sure you have your Xvnc and vncserver installed on your workstation.
1. Switch to the IC615 tools bin folder
$ cd $CDSHOME/tools/bin
2. Backup cdsXvnc and cdsXvncd
$ mv cdsXvnc cdsXvnc.bak
$ mv cdsXvncd cdsXvncd.bak
3. Make a symbolic link to Xvnc and vncserver
$ ln -s /usr/bin/Xvnc cdsXvnc
$ ln -s /usr/bin/vncserver cdsXvncd
Enjoy your ADE GXL with advanced simulation process
TO BE CONTINUED...
A. Simulation with ADE GXL other than using Traditional ADE L
Traditional ADE L environment provide basic simulation function and parametric sweeping analysis.
While consider a pile of simulations as a single job, ADE GXL provide job managing to archive parallel simulation and systematic performance simulation including Monte Carl and Yield Analysis.
In simple wordings, it can simulate 8 parametric settings at the same time instead of doing them 1 by 1 to provide 8 times performance improvement.
However, this process involves VNC and Cadence provided VNC may crash and keep pending the jobs.
Solution:
Make sure you have your Xvnc and vncserver installed on your workstation.
1. Switch to the IC615 tools bin folder
$ cd $CDSHOME/tools/bin
2. Backup cdsXvnc and cdsXvncd
$ mv cdsXvnc cdsXvnc.bak
$ mv cdsXvncd cdsXvncd.bak
3. Make a symbolic link to Xvnc and vncserver
$ ln -s /usr/bin/Xvnc cdsXvnc
$ ln -s /usr/bin/vncserver cdsXvncd
Enjoy your ADE GXL with advanced simulation process
TO BE CONTINUED...
2012年10月23日 星期二
[Xwin32] Using Xming to replace Xwin32
Xming is a freeware to replace Xwin32. However, there is a fonts problem. To solve it, please follow the flash video. The password is "CUHK"
Upload 唔到file, 需要就直接問我攞
Upload 唔到file, 需要就直接問我攞
[Cadence] 令Cadence認出以下files是librart
This is the solution by Marco. But I forgot already= =
It should be related to creat an empty file with a special file name to let Cadence understood that is Library.
I would modify it after asking Marco again
ANSWER:
file name is ".tech"
It should be related to creat an empty file with a special file name to let Cadence understood that is Library.
I would modify it after asking Marco again
ANSWER:
file name is ".tech"
[Linux] 在linux下用上RAR防止在Window出現中文亂碼
请到http://www.rarlab.com/download.htm下载RAR 4.xx for Linux,
操作:
解压缩,运行终端,进入解压缩的目录命令行运行:sudo make install
建立软链接:sudo ln -s /usr/local/bin/rar /usr/bin
完成
使用方法:
rar a name.rar /location
rar manual: http://blog.csdn.net/guoguo1980/article/details/2310258
操作:
解压缩,运行终端,进入解压缩的目录命令行运行:sudo make install
建立软链接:sudo ln -s /usr/local/bin/rar /usr/bin
完成
使用方法:
rar a name.rar /location
Detail:
install: http://forum.ubuntu.org.cn/viewtopic.php?t=388114&p=2852436rar manual: http://blog.csdn.net/guoguo1980/article/details/2310258
2012年10月3日 星期三
[Cadence] ICFB 5 -> 615
As ICFB 5 and ICFB 6 use different Library Format (From CDBA to OA), you may use the command cdb2oa to translate the Library.
SOLUTION
1. Copy the old library into a temp directory in new library with it's cds.lib
Make sure you maintain a good path in cds.lib
/newCDS/cds.lib -> Don't Touch! The tool will handle it.
/oldCDS/myIC/ -> /newCDS/tmp/myIC/
/oldCDS/cds.lib -> /newCDS/tmp/cds.lib
2. Run the command in the director of new lib
/newCDS/ > cdb2oa -lib myIC -cdslibpath tmp/
or you can run this directly in the new library (but I tend to make a copy and make it save.)
/newCDS/ > cdb2oa -lib myIC -cdslibpath /oldCDS/
SOLUTION
1. Copy the old library into a temp directory in new library with it's cds.lib
Make sure you maintain a good path in cds.lib
/newCDS/cds.lib -> Don't Touch! The tool will handle it.
/oldCDS/myIC/ -> /newCDS/tmp/myIC/
/oldCDS/cds.lib -> /newCDS/tmp/cds.lib
2. Run the command in the director of new lib
/newCDS/ > cdb2oa -lib myIC -cdslibpath tmp/
or you can run this directly in the new library (but I tend to make a copy and make it save.)
/newCDS/ > cdb2oa -lib myIC -cdslibpath /oldCDS/
2012年8月22日 星期三
[Linux] 當進入linux OS recovery mode請注意
Under recovery mode時, 有某些電腦只會allow PS/2 keyboard operate. USB keyboard會沒有反應.
2012年7月3日 星期二
[Linux] Kernel Module with no symbol version
Situation:
Compiling Kernel Module with hierarchy / cross module dependency (say there are EXPORT_SYMBOL in the kernel)
when you insert the child-module, it may cause you following error:
.... Unknown Symbol
You may call the following for further information
$ dmesg
...
[19729.170980] xrawdata0: no symbol version for DmaRegister
[19729.170984] xrawdata0: Unknown symbol DmaRegister
Compiling Kernel Module with hierarchy / cross module dependency (say there are EXPORT_SYMBOL in the kernel)
when you insert the child-module, it may cause you following error:
.... Unknown Symbol
You may call the following for further information
$ dmesg
...
[19729.170980] xrawdata0: no symbol version for DmaRegister
[19729.170984] xrawdata0: Unknown symbol DmaRegister
This may occur for all kernel module with kernel version >= 2.6.26
Solution:
1. Divide the Makefile according to the Hierarchy.
2. Make the Base first and let it generate the "Module.symvers".
3. Copy the "Module.symvers" to the directory of the child modules
4.Continue your Compilation and keep renewl the Module.Symvers.
OR
You can make a link of "Module.Symvers" to your kernel source Directory at all your modules source directory to keep your Module.Sysmvers being updated.
Make sure you have run "make vmlinux" before any kernel module compilation.
2012年7月1日 星期日
[Linux] Xilinx Cable Driver Can't be Compiled
Situation:
When you compile Xilinx Cable Drier with Linux Kernel >= 2.6.36
(when you run: $Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/install_drivers)
This may cause the following problem:
/vlsi/Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/linux_drivers/xpc4drvr2_6/xpc4drvr/xpc4.c:241:2: error: unknown field ‘ioctl’ specified in initializer
Solution:
Open:
$Xilinx/14.1/ISE_DS/common/bin/lin/install_script/install_drivers/linux_drivers/xpc4drvr2_6/xpc4drvr/xpc4.c
Add @ top:
#include <linux/slab.h>
@Line 163:
- int xpc4_ioctl (struct inode *inode, struct file *filp,
+ int xpc4_ioctl (struct file *filp,
@Line 240:
- .ioctl = xpc4_ioctl,
+ .unlocked_ioctl = xpc4_ioctl,
========
This may be useful while you try to install Xilinx Cable Driver.
The Kernel Module Driver is not compile-able after 2.6.36
Hacking Material
http://lwn.net/Articles/119652/
http://hi.baidu.com/kkernel/item/ea0ae8f4abb46929743c4c96
訂閱:
文章 (Atom)
