Installing edif2verilog on UNIX
===============================

The edif2verilog is available for the UNIX platforms SunOS 4, Solaris 2.4
or later and HP-UX.  According to your platform, you need one of the
files:
        edif2verilog-1.0-sun4.tar.gz
        edif2verilog-1.0-sun5.tar.gz
        edif2verilog-1.0-hp.tar.gz



1. Unpack the software
----------------------

Within this document, the following two words are "place holders":

        IDIR       for your installation directory
        PLATFORM   for one of sun4, sun5 or hp (for win32 see INSTALL-WIN32).

First choose an empty installation directory "IDIR", e.g. /usr/local/concept,
and unpack the platform-specific .gz file:

        cd IDIR
        gunzip  ~/edif2verilog-1.0-PLATFORM.tar.gz
        tar -xf ~/edif2verilog-1.0-PLATFORM.tar

This will create two directories, "edif2verilog-1.0"  and "flexlm-5.12".
The flexlm-5.12 directory stores the flexlm license software
(see 4b below).

        Directory "edif2verilog-1.0" contains Concept Engineering software:

            doc/INSTALL-UNIX.TXT    This file
            doc/edif2verilog.ps     User Manual in PostScript
            PLATFORM/edif2verilog   The executable file

        Directory "flexlm-5.12" contains FLEXlm software:

            PLATFORM/conceptd       The Concept Engineering license daemon
            PLATFORM/lmgrd          The Flexlm license daemon
            PLATFORM/lm*            Flexlm utility tools
            license.template        a template file for license.dat


2. Add edif2verilog into your search path (PATH variable)
---------------------------------------------------------

The most simple way is probably to create a symbolic link
into a directory that is already part of your PATH variable.
E.g. if /usr/local/bin is part of your search path, you
can type:

        ln -s IDIR/edif2verilog-1.0/PLATFORM/edif2verilog /usr/local/bin/edif2verilog

Alternatively, you may want to extend your PATH variable by the
bin-directory of edif2verilog: "IDIR/edif2verilog-1.0/PLATFORM".

If you are running C-shell (csh) you may add a line like below
to your .login file:

        set path (IDIR/edif2verilog-1.0/PLATFORM $path)

If you are running Korn-Shell (ksh) or Bourne-Shell (sh) you may
add lines like below to your .profile file:

        export PATH
        PATH=IDIR/edif2verilog-1.0/PLATFORM:$PATH




4b. Install a flexlm-based license mechamism
--------------------------------------------

To run edif2verilog, you must add a flexlm license
key.  The lmgrd daemon is located by the environment
variable "LM_LICENSE_FILE".  To receive the required
FEATURE line (in file "license.dat"), you must
provide the hostid and hostname of your license server.
To get the hostid, call:

        IDIR/flexlm-5.12/PLATFORM/lmhostid


To use the flexlm-based license mechamism, you must install
the flexlm software first (if you already have flexlm running,
then you need at least the "conceptd" vendor daemon).

4b1  If you already have a lmgrd running and you don't want to start
---  another one.
 
     We expect you are familiar with the flexlm software.
     Go to your license server (the host where lmgrd is running)
     and copy "conceptd" to the directory of your flexlm vendor
     daemons (e.g. to /usr/local/flexlm):

            cp IDIR/flexlm-5.12/PLATFORM/conceptd  /usr/local/flexlm/conceptd

     Edit the license file on your license server.  The license file
     is normally called "license.dat" and may be located at
     /usr/local/flexlm/licenses (check the "lmgrd -c" argument file
     name - this is definitly the license file).  Add a DAEMON and
     a FEATURE line into your license file.  The DAEMON line looks
     like:
            DAEMON conceptd /usr/local/flexlm/conceptd

     The FEATURE line must be exactly as received from Concept
     Engineering.  See above, how to get the license key.

     Check the IP port number in the SERVER line and note that
     you must use the same number in LM_LICENSE_FILE below.
     Continue with "Locate the license server".


4b2  If you don't have a lmgrd running, or if you want to start a
---  separate lmgrd to manage the Concept Engineering license file.

     Choose a (new) license server (e.g. your local computer).
     If you have choosen a license server different from your local
     computer, then go to this license server and re-install (or mount)
     the flexlm software tree under IDIR/flexlm-5.12.

     Copy the license.dat file that you have received from Concept
     Engineering license file to

        IDIR/flexlm-5.12/license.dat

     Modify the DAEMON line by entering the correct pathname to the
     Concept daemon at IDIR/flexlm-5.12/PLATFORM/conceptd.
 
     If the IP port number 1700 is already in use, then you must
     change the IP port number in the SERVER line of the file
     license.dat and in LM_LICENSE_FILE below.
 
     Start the "lmgrd" License Manager:

        cd IDIR/flexlm-5.12/PLATFORM
        lmgrd -c license.dat > license.log &


     If you want lmgrd to be started at boot time, then you should
     add the two lines above into a boot-rc file (e.g. into
     /etc/rc.local on SunOS4).
        


Locate the license server
-------------------------

Goto your local computer (where you have installed edif2verilog-1.0).
Here, you must locate the license server, by defining the environment
variable LM_LICENSE_FILE.  For example, if your license server
is Orion and lmgrd listens on port 1700, then you should set
LM_LICENSE_FILE to 1700@Orion.

If you are running C-shell (csh), add this line to your .login file:

        setenv LM_LICENSE_FILE 1700@Orion

If you are running Korn-Shell (ksh) or Bourne-Shell (sh), add these
lines to your .profile file:

        export LM_LICENSE_FILE
        LM_LICENSE_FILE=1700@Orion

Please make sure, that the node-locked environment variable
ceBoxLicenseNLV is now undefined and remove it from your .login
or .profile.

Now, please test if the license server is working for feature "edif2verilog".
Type:
        cd IDIR/flexlm-5.12/PLATFORM
        lmdiag edif2verilog

FLEXlm problems ?
-----------------
    If you run into any FLEXlm problem, then you may find lmstat
    helpful (in the same directory).  Also, you may check out the
    FLEXlm End User Manual at http://www.globetrotter.com/manual.htm
    or the FAQ at http://www.globetrotter.com/flmfaq.htm).


That is all.  Now, you can invoke edif2verilog.  If you want, you can
follow the tutorial in demo/doc/tutorial.html.  Please refer to
the user manual in doc/user_manual.html if you want to derive symbol
shapes for your library.

** End of installation **

