home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.cad.cadence
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!green
- From: green@netcom.com (David Greenstein)
- Subject: Re: getting all cellviews
- Message-ID: <1993Jan12.215511.19994@netcom.com>
- Keywords: opus, cells, library, skill
- Organization: Netcom Online Communications Services (408-241-9760 login: guest)
- References: <1993Jan12.172646.14372@venus.ic.cmc.ca>
- Date: Tue, 12 Jan 1993 21:55:11 GMT
- Lines: 51
-
- >
- >In Cadence 4.2 skill, how might one go about
- >getting a list of all cells in a library?
- >
-
- Here is a quick solution. I have not tried this on Opus yet, so please
- send me e-mail if you have any problems.
-
- Regards,
- David
-
- ;*****************************************************************************
- ;
- procedure( showCells( libName fileName "t" )
- ;
- ; showCells() takes as input a library name and file name, then outputs
- ; the names of all cells for that library into the file.
- ;
- ; Inputs:
- ; libName = library name (text, library must be on path)
- ; fileName = output file name (text, directory must be writable)
- ;
- ; Returns:
- ; t if file contains cell names.
- ; nil if error.
- ;*****************************************************************************
- prog( ( i libId ofile )
- unless( (ofile = outfile( fileName ))
- error( strcat("Cannot open file " fileName))
- return(nil)
- ) ; unless
- unless( (libId = dmFindLib( libName ))
- error( strcat("Cannot open library " libName))
- return(nil)
- ) ; unless
- foreach( i libId~>cells
- fprintf( ofile "%s\n" i~>cellName )
- ) ; foreach
- close( ofile )
- return( t )
- ) ; prog
- ) ; procedure showCells
-
- --
- *******************************************************************************
- _/_/_/ _/_/_/_/ David Greenstein A |\ Y
- _/ _/ _/ Independent Consultant --| o--
- _/ _/ _/ _/_/ EDA Software Specialist |/
- _/ _/ _/ _/ green@netcom.com INV(Y,A)
- _/_/_/ _/_/_/_/ Phone: (408)261-0287 (cell inv (view symbol ... ))
- -------------------------------------------------------------------------------
-