Monday, May 24, 2010
Friday, May 14, 2010
matlab string and variable
command "eval", execute string with matlab expression
E.g. read the value of variable c0
i=0;
m=strcat('c',num2str(i)); %m is a string
eval(m); %print out the value of c0
E.g. read the value of variable c0
i=0;
m=strcat('c',num2str(i)); %m is a string
eval(m); %print out the value of c0
Monday, May 3, 2010
Design compiler for calculating fanin
Start design compile: "dc_shell -tcl_mode"
Run a scripts including a set of commands: "source fanin.tcl"
Command for obtaining fanin: "all_fanin -to icpu_adr_o[31]"
PS:
1. Often the initial libraries are set as
set search_path "/auto/edatools/synopsys/syn/v2006.06-SP4/libraries/syn"
##set TECH_DIR $synopsys_root/libraries/syn
set target_library class.db
set symbol_library class.sdb
set link_library class.db
2. If some of the results are not printed out. Add -verbose option, so "source -verbose fanin.tcl". And add a command line in fanin.tcl
"set collection_result_display_limit 220000" a large number.
Run a scripts including a set of commands: "source fanin.tcl"
Command for obtaining fanin: "all_fanin -to icpu_adr_o[31]"
PS:
1. Often the initial libraries are set as
set search_path "/auto/edatools/synopsys/syn/v2006.06-SP4/libraries/syn"
##set TECH_DIR $synopsys_root/libraries/syn
set target_library class.db
set symbol_library class.sdb
set link_library class.db
2. If some of the results are not printed out. Add -verbose option, so "source -verbose fanin.tcl". And add a command line in fanin.tcl
"set collection_result_display_limit 220000" a large number.
Tuesday, April 27, 2010
Create 2D array in perl
If we want to first create space for an two-dimensional array, we first need to create space for a single row, which will have numCols columns:
for($col = 0; $col < $numCols; $col++) {
push @rowMatrix, “0”;
}
Then we need to create a matrix of these single dimension row matrices:
for($row = 0; $row < $numRows; $row++) {
push @matrix, [ @rowMatrix ];
}
Now we have a two dimensional array filled with 0’s with of size [numRows] x [numCols].
Wednesday, April 7, 2010
Hspice manual & Model description
Perfect manual
http://www.ece.uci.edu/docs/hspice/hspice_2001_2-3.html
Model description
http://www.ece.uci.edu/docs/hspice/hspice_2001_2-170.html
http://www.ece.uci.edu/docs/hspice/hspice_2001_2-3.html
Model description
http://www.ece.uci.edu/docs/hspice/hspice_2001_2-170.html
Thursday, April 1, 2010
Delete columns in vim
"Ctrl + v" go to visual block mode.
navigate through arrow keys.
one you finishes your selection. press "dd" or "delete"
navigate through arrow keys.
one you finishes your selection. press "dd" or "delete"
Subscribe to:
Posts (Atom)
