Skip to content

Library Compiler by Synopsys


Synopsys requires a library file which describes the logic gates available for synthesis operations.

Go to your Synopsys working directory first.

cd ~/cad/synopsys

Copy the library file to your Synopsys directory by typing:

cp /home/cad/startup/EE6325/aux/library.lib .

Use "ls" commend to check if "library.lib" is in your synopsys directory. This file contains logical descriptions and timing information for a set of logic gates (cells).The first time you use Synopsys, you probably won't have a cell library yet, so you should use this library as-is. The library file contains definitions for an inverter, nand2, nand3, nand4, nor2, nor3, aoi12, aoi22, oai12, oai22, and d-flip-flop.When you create a cell library in Cadence later on, you will need to modify the Synopsys library file to match your cells.If your cells differ from those in the library file, you may need to change cell names, pin names, and /or logical descriptions in the library file to match; this shouldn't be much of a problem if you pay attention to the Synopsys library file when laying out your cells in Cadence.Timing information is a more advanced subject, so you shouldn't change the given values, although you may want to experiment with changing the reported delays to match those of your cells if time allows.

please source the below profile whenever you are using Synopsys tools

. /proj/cad/startup/profile.synopsys_2018

After making changes to the library file (if necessary), you will need to compile it into a database format suitable for Synopsys to use.Start the lc_shell compiler by typing:

lc_shell

NOTE: Ignore errors for now...Just keep moving on

Now read and compile the library file by typing:

read_lib library.lib
write_lib library -format db -output library.db

If it reports an error message like "library source file is not found", add your path before the library file name:

read_lib <your_path>/library.lib

or

read_lib ./library.lib

If the program is successfully reading your commend, it will returns 1.

Exit the lc_shell by typing:

quit

You should now see a db version of library.lib in your Synopsys directory as library.db.


Last update: September 1, 2022 13:15:33