R
Reotaro Hashemoto
Guest
Hi all,
I have four questions (i guess FAQs)
Q1. I have a schematic sheet that contains only one instance. How can
I get list of all properties that user can modify for this instance
and print them formatted in an output file? Something like the
following:
libName, cellName, instName, param1Name=Val, param2Name=val, ....
For example, if the sheet contains "nmos" from library "umc45" and
instance name is: "mn1", I need to print:
umc45, nmos, mn0, w=0.6u, l=0.5u, m=1
I tried to play with dbOpenCellViewByType("test" "a1" "schematic")
~>instances~>"M0"~>prop
but it seems to be wrong :-(
*~*~*~*~*~*~*~*~*~*~*~*~*
Q2. I have a library, contains many cells, I need to print out names
of cells that only have both symbol and layout views, I wrote the
following proc, but it is not working as I want! Could anybody see
where the error is?
procedure( GetListOfLibCellsWithSymAndLayoutViews(lib)
let(()
foreach(cell ddGetObj(lib)~>cells
; Get names of all cells in the lib
cellName=dbOpenCellViewByType(lib cell~>name "symbol")~>cellName
; if the current cell has symbol and layout views then print it
if( member(cell~>views~>name '("symbol")) && member
(cell~>views~>name '("layout") )
printf("%s\n" cell~>name)
); if
;
); foreach
); let
); procedure
*~*~*~*~*~*~*~*~*~*~*~*~*
Q3. What is the simplest way to set/modify parameter value for this
single instance in the sheet? Given parameter name and new value?
*~*~*~*~*~*~*~*~*~*~*~*~*
Q4. How to create netlist for this sheet with SKILL? I couldn't use
createNetlist()
Thanks a lot for your help,
Regards,
I have four questions (i guess FAQs)
Q1. I have a schematic sheet that contains only one instance. How can
I get list of all properties that user can modify for this instance
and print them formatted in an output file? Something like the
following:
libName, cellName, instName, param1Name=Val, param2Name=val, ....
For example, if the sheet contains "nmos" from library "umc45" and
instance name is: "mn1", I need to print:
umc45, nmos, mn0, w=0.6u, l=0.5u, m=1
I tried to play with dbOpenCellViewByType("test" "a1" "schematic")
~>instances~>"M0"~>prop
but it seems to be wrong :-(
*~*~*~*~*~*~*~*~*~*~*~*~*
Q2. I have a library, contains many cells, I need to print out names
of cells that only have both symbol and layout views, I wrote the
following proc, but it is not working as I want! Could anybody see
where the error is?
procedure( GetListOfLibCellsWithSymAndLayoutViews(lib)
let(()
foreach(cell ddGetObj(lib)~>cells
; Get names of all cells in the lib
cellName=dbOpenCellViewByType(lib cell~>name "symbol")~>cellName
; if the current cell has symbol and layout views then print it
if( member(cell~>views~>name '("symbol")) && member
(cell~>views~>name '("layout") )
printf("%s\n" cell~>name)
); if
;
); foreach
); let
); procedure
*~*~*~*~*~*~*~*~*~*~*~*~*
Q3. What is the simplest way to set/modify parameter value for this
single instance in the sheet? Given parameter name and new value?
*~*~*~*~*~*~*~*~*~*~*~*~*
Q4. How to create netlist for this sheet with SKILL? I couldn't use
createNetlist()
Thanks a lot for your help,
Regards,