Garden Cadence: Creating a New Part
Warning: This is a DRAFT document in it's early stages!!!!
I. Getting Set Up
For this example, assume that you wish to create a part named
'part_name' and that this part will be added to a library that resides
in '/cadence/lib/mylib'. It is probably most convenient that you start
concept from this directory. Within this directory, your own version
of the following files (click on the filenames for an example file):
These files will differ from user to user, but there are some specific
attributes that you should add to these files. Your
startup.concept file should contain the command:
use mylib.wrk
your mylib.wek file should contain the line:
"NEWPARTS LIBRARY" 'newpartslibrary';
and your compiler.cmd file should contain the line:
ROOT_DRAWING "NEWPARTS LIBRARY" ;
II. Creating the body of a new part
- Add the alias
"Part Name" 'part_name';
to your mylib.wrk
file, where "Part Name" is the name of the part as you want it to
appear in Concept menus and 'part_name' is the directory in which the
part files will be placed.
- Start Concept
- Type 'edit Part Name.body'
- Draw the box for the part. The box should enclose the 'X' mark
that appears next to the part name.
- Draw the pins with the 'wire' command. You may wish to make the
pins long to leave room for pin numbers.
- Use the 'circle' command to make inversion bubbles.
- Use the 'dot' command to place a dot on the end of each pin where
you will attach wires.
- Use the 'signame' command to add pin names to the dots. These pin
names will be invisible, but will show up in the netlists.
- Use the 'note' command to add the visible pin names to the dots.
You should move these inside the box using the 'move' command.
- To make a clock triangle (>) use the wire command.
- Use the 'write' command to save the file.
III. Creating the "drawing" file.
- (Still in concept), type 'edit Part Name.part'.
- Type 'add drawing' to add the drawing label to the page.
- Use the property command to add properties: Title=MyPartsTitle,
Abbrev=MyPartsAbbreviation, Part_name=MyPartsAbbreviation. You will
use two mouse clicks to add these properties. Click first on the
"Drawing text" to attach the property to the drawing, then click below
the drawing text to place the property.
- Type "display both" and click on each of the properties that you
have just added.
- Use the 'write' command to save the file.
IV. Creating the chips_prt file.
- (Still in concept), type 'edit Newparts Library'.
- Type 'add Part Name' (where "Part Name" is the name of your device) to add the body of the part you just created
to the Newparts Library drawing.
- Using the 'property' command, add the property
POWER_PINS=(VCC:1,5,9;GND:2,4,6)
to the body of your part using
the correct power and ground pins.
- Attach the property
PIN_NUMBER=(X)
to each pin where
'X' is the pin number for that pin.
- Use the write command to save the file, and quit out of concept.
- Execute the unix command /cadence/tools/bin/compile in the same
directory as your compiler.cmd file.
- Use the unix command 'mv' to rename the chips.dat file to
chips_prt and move it to the part_name directory.
- It is useful to backup the files in the newpartslibrary at this
time, as you may need them again if you update this part. You can do
this with the following unix command:
cp -r newpartslibrary part_name/npl
- You should now be able to add your new part to any library.lib or
library.wrk file to use it in your designs.
For more information...
You can find more info on creating other types of parts in the
Concept: Digital Library Guide available online through
'openbook'.