The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 4th, 2024, 9:09pm
Pages: 1
Send Topic Print
Any Laker users here? (Read 9144 times)
joel
Community Member
***
Offline



Posts: 43

Any Laker users here?
May 31st, 2007, 2:25pm
 

Anyone else using Laker for layout besides me?  If so, could I ask,

How can one generate a list of the ports of a cell?

Thanks, I'm a complete laker beginner, and not that smart about layout in general.

 Cheers,
 ~joel
Back to top
 
 
View Profile   IP Logged
Roger
New Member
*
Offline



Posts: 1

Re: Any Laker users here?
Reply #1 - Sep 25th, 2007, 3:53pm
 
You can find the command: Assign Net/Port Property to extract the port information by label if you don't have any port property on Laker database.

You can find this command in menu: Library from Laker main window or menu: Cell from layout window.
Before you access this command, please take a look of your tech file definition: tfAbstractCell

tfAbstractCell {
   #------------------------------------------------------------------
   # define cell pin extraction rule
   #------------------------------------------------------------------
   #mapText2Pin { {txexLayerName} {ExtractedLayer1 ...} $ExtractAll {OutputLayer} }
   mapText2Pin { {POLYtext drawing }   { POLY drawing} }
   mapText2Pin { {MT1text  drawing }   MT1 }
...
}

If you already have the port infortmation on a cell, you can use the following Tcl script to dump out the ASCII list of the port by the giving cell name and library name.

#  File: dumpPortInfo.tcl
#
#  Load this script by the command:  source  dumpPortInfo.tcl from Laker main window
#  Run this script by the command: dumpPort  <libName>  <cellName>
#
proc dumpPort {libName cellName {viewName layout}} {
 dbOpenLib -lib $libName -mode readOnly
 set cv [dbOpenCV -lib $libName -cell $cellName -view $viewName -mode readOnly]
 if {[dbIsDbObj -obj $cv] != 1} {
   lakerMessage "Can't find cell: $cellName from library: $libName"
 }
 set Ports [dbGet -obj $cv -attr Ports]
 lakerMessage "Report Port List...  \nCell: $cellName from library: $libName"
 puts "Report Port List...  \ncell: $cellName from library: $libName"
 foreach port $Ports {
   set Name [dbGet -obj $port -attr Name]
   set Dir [dbGet -obj $port -attr Dir]
   lakerMessage "  Port: $Name  Direction: $Dir"
   puts "  Port: $Name\tDirection: $Dir"
 }
 puts "\n"
 dbCloseCV -cv $cv

 dbCloseLib -lib $libName
}

Back to top
 
 
View Profile   IP Logged
joel
Community Member
***
Offline



Posts: 43

Re: Any Laker users here?
Reply #2 - Sep 26th, 2007, 2:18pm
 

Thanks, Roger!  That's very helpful!

Cheers,
/jd
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.