SIM2SPICE(1)

NAME
sim2spice - convert from .sim format to spice format

SYNOPSIS
sim2spice [-d defs] file.sim

DESCRIPTION
Sim2spice reads a file in .sim format and creates a new file in spice format. The file contains just a list of transistors and capacitors, the user must add the transistor models and simulation information. The new file is appended with the tag .spice. One other file is created, which is a list of .sim node names and their corresponding spice node numbers. This file is tagged .names.

Defs is a file of definitions. A definition can be used to set up equivelences between .sim node names and spice node numbers. The form of this type of definition is:
    set sim_name spice_number [tech]
The tech field is optional. In NMOS, a special node, `BULK', is used to represent the substrate node. For CMOS, two special nodes, 'NMOS' and 'PMOS', represent the substrate nodes for the 'n' and 'p' transistors, repectively. For example, for NMOS the .sim node `GND' corresponds to spice node 0, `Vdd' corresponds to spice node 1, and `BULK' corresponds to spice node 2. The defs file for this set up would look like this:
    set  GND  0  nmos
    set  Vdd  2  nmos
    set  BULK  3  nmos
A definition also allows you to set a correspondence between .sim transistor types and and spice transistor types. The form of this definition is:
    def sim_trans spice_trans [tech]
Again, the tech field is optional. For NMOS these definitions would look as follows:
    def  e  ENMOS  nmos
    def  d  DNMOS  nmos
Definitions may also be placed in the `.cadrc' file, but the definitions in the defs file overrides those in the `.cadrc' file.

SEE ALSO
ext2sim(1), magic(1), spice(1), cadrc(5), ext(5), sim(5)

AUTHOR
Dan Fitzpatrick CMOS fixes by Neil Soiffer

BUGS
The only pre-defined technologies are nmos, cmos-pw, and cmos (the same as cmos-pw). Only one definition file is allowed.