
S2M - Synopsys to Mentor converter
----------------------------------


1. Overview

This directory contains a few scripts which converts Synopsys .db files
into Mentor designs. The conversion is made in the following steps:

	1. Generate an EDIF netlist from your Synopsys design. The file
	   "synopsys.setup" contains the variable settings you should
           use for the EDIF generation.

	2. Run the "edif2m" script:

	   edif2m <target_lib> <design_name>

Currently, there are six target libraries supported: hafo, gps, mhsrt, act1, 
act2 and act3. To add a library, a corresponding Np script, <library>.m, has
to be created.  Use hafo.m or gps.m as examples.

The file containing the edif netlist must be called <design_name>.edif,
where <design_name> is the EDIF design name.

The edif2m script will automatically build a hierarchical design and generate 
a schematic and symbol for all blocks. If you don't want schematics, comment
out the call to the Mentor schematic generator, sge. You can simulate a
design without having schematics.

Note that the gps.m and mhsrt.m scripts first patches the netlist via a 'sed' 
script.  This is necessary because these synopsys libraries uses generic power 
and ground cells which have to be translated into Mentor 'gen_lib' vcc and gnd.

2. Needed Mentor software

To run the scripts, you need a license for the generic netlist processor (Np),
and for the design viewpoint editor (dve). If you want to create schematics,
you also need a license for the schematic generator (sge). You also need the
Mentor design kit for each library you intend to use.

3. Adding libraries

Adding a library is fairly simple. Create the <library>.m file by copying
either hafo.m or gps.m. Use hafo.m if your library has its own vss and gnd
cells, or gps.m if it uses the synopsys generic cells (logic_1 and logic_0).
Set 'edif_lib_name' to the EDIF library name (can be seen in the edif file), 
and 'mgc_symbol_path' to the path of the Mentor symbols. 

4. Installation

First, set the variable S2M to the s2m directory:

	setenv S2M /home/jgais/s2m		(example)

Then add the s2m directory to your executable search path:

	set path = ($path $S2M)

5. Example

To convert the design 'gen_io_pad' to gps, , change directory to where the 
EDIF netlists is, type

	edif2m gps gen_io_pad

and watch das blinking lights ...


Any problems encountered are likely to be fatal, this is normal with Mentor
software. If you can't solve it yourself, drop me a mail and I'll see what I
can do.


Good luck, Jiri Gaisler.


------------------------------------------------------------------
Jiri Gaisler, European Space Research and Technology Centre
ESA/ESTEC, Box 299, 2200 AG Noordwijk, the Netherlands
voice:+31-1719-84880  fax:+31-1719-84295
email: jgais@wd.estec.esa.nl  WWW:  ...real soon now!
------------------------------------------------------------------



