Installing nlview on WIN32
==========================

The nlview is available for Windows NT and Windows 95 in the .zip
file:
        nlview-2.8-win32.zip

You can download this file by either http or anonymous ftp
from:
        http://www.concept.de/nlview
        ftp://www.concept.de/nlview




This document describes how to install nlview that it can be
invoked from a MSDOS Command Window  (using a MSDOS Command Window
is often the most convenient way, because depending on your
design data environment, you may want to start nlview with
command line options that differ from time to time).
However, section 5 below, describes how to add entries into
the "Start" menu.


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

First choose an empty installation directory e.g. C:\concept,
and unpack the .zip file.  If you have an MSDOS Command Window,
you can execute:
 
        mkdir \concept
        cd \concept
        unzip -d nlview-2.8-win32.zip

This will create two directories, "nlview-2.8"  and "flexlm-5.12".
The flexlm-5.12 directory is only required, if nlview is licensed
by a flexlm license key (see 4b below).

        Directory "nlview-2.8" contains Concept Engineering software:

            doc\INSTALL-WIN32.TXT   This file
            doc\user_manual.html    User Manual in html
            win32\nlview.exe        The nlview executable file
            win32\lmgr325c.dll      Flexlm DLL file required by nlview
            win32\hinstall.exe      Install Hasp dongle driver
            symlib\generic.edf      Generic symbol shapes
            symlib\generic.idx      Symbol index file
            symlib\generic.map      Example mapping file
            symlib\generic.ps       PostScript print from all symbol shapes
            demo\*                  Example files and tutorial

        Directory "flexlm-5.12" contains FLEXlm software:

            win32\conceptd.exe      The Concept Engineering license daemon
            win32\flexlm.cpl        The Flexlm daemon manager
            win32\lmgrd.exe         The Flexlm license daemon
            win32\lmtools.exe       Flexlm utility tools with GUI
            win32\lmutil.exe        Flexlm utility tools
            win32\lmgr325c.dll      DLL file required by flexlm tools
            license.template        a template file for license.dat



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

Extend your PATH variable by the bin-directory of nlview.
One possibility to do this, is adding the following lines
to C:\autoexec.bat:
 
        set PATH C:\concept\nlview-2.8\win32;%PATH%

On WindowsNT you can alternatively use the "System Properties" window
(Start->Settings->Control Panel->System) to extend your
PATH variable.


3. Run nlview in "demo" mode
----------------------------

In demo mode (option -demo), you don't need any license key.
In this mode, nlview can only read the files included in the "demo"
directory.  To invoke nlview, use a MSDOS Command Window and type the
following:

        cd \concept\nlview-2.8\demo
        ..\win23\nlview -demo -symlib ..\symlib\generic.edf 8bit_alu.edf

Alternatively, you can continue with section 5.1 and invoke nlview
by the "Nlview DEMO" entry in the "Start" menu.


4. Install a (evaluation) license key
-------------------------------------

If you want to evaluate the tool, ask your distributor
or Concept Engineering <info@concept.de> for an evaluation
key.

There are two alternatives.  Continue with either (4a) or (ab).

(4a) A simple node-locked method based on a Dongle and the
     environment variable "ceBoxLicenseNLV".  For this method,
     you will receive a Dongle and a 14-character key.

(4b) The flexlm license mechanism locked to your Ethernet
     card located by the environment variable "LM_LICENSE_FILE".
     For this method you must provide the hostid and hostname of
     your license server and you will receive a "license.dat" file.
     Please use the FLEXlm utility "lmtools" to determine the ID
     of your license server PC (this can be your local PC - see 4b3):
     
        C:\concept\flexlm-5.12\win32\lmtools
 
     displays the hostname and hostid (Press "Hostid").  Concept
     Engineering need this information to create your "license.dat"
     file.


4a. Install a simple node-locked license key
--------------------------------------------

Plug the Dongle into the parallel port (printer port) on your PC.

Define the environment variable "ceBoxLicenseNLV", to a 14-character
value (as received from Concept Engineering).

One possibility to do this, is adding the following lines
to C:\autoexec.bat:
 
        set ceBoxLicenseNLV=xxxxxxxxxxxxxx

On WindowsNT you can alternatively use the "System Properties" window
(Start->Settings->Control Panel->System) to extend your
PATH variable.

On WindowsNT, you must also install the driver for the Dongle.
For this, type:
        C:\concept\nlview-2.8\win32\hinstall /i
 
Now, reboot your PC.

That is all.  Now, you can use a MSDOS Command Window to invoke nlview.
E.g. type:
        nlview -symlib C:\concept\nlview-2.8\symlib\generic.edf

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 **


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

Before you continue, make sure that tcp/ip is correctly
installed on your PC.

There are different alternatives, how you can setup and
use the flexlm license scheme.  Continue with one of
4b1, 4b2 or 4b3.


4b1  If you already have a flexlm license server running on
---  another Windows PC in the local network and you want to
     use this network license server.

     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 C:\flexlm):

            copy C:\concept\flexlm-5.12\win32\conceptd  C:\flexlm\conceptd

     Edit the license file on your license server.  Use the
     "FLEXlm License Manager" that is already installed on your
     network license server (normally available in Control Panel
     (Start->Settings->Control Panel->FLEXlm License Manager)).
     In the "Setup" window, you will see the name of the License File
     and in the "License" window, you can view the License File.

     Add a DAEMON and a FEATURE line into your License File.
     The DAEMON line looks like:

            DAEMON conceptd C:\flexlm\conceptd

     The FEATURE line must be exactly as received from Concept
     Engineering.  See above, how to obtain 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.

     Goto your local PC (where you have installed nlview-2.8).
     Here, you must locate the license server, by defining the environment
     variable LM_LICENSE_FILE.  For example, if your license server's name
     is "Orion" and lmgrd listens on port 1700, then you should set
     LM_LICENSE_FILE to 1700@Orion.

     One possibility to define environment variables is to add
     a line like the following to C:\autoexec.bat and reboot afterwards.
 
        set LM_LICENSE_FILE=1700@Orion
 
     On WindowsNT you can alternatively use the "System Properties" window
     (Start->Settings->Control Panel->System) to set the environment variable
     LM_LICENSE_FILE.

     Please make sure, that the node-locked environment variable
     ceBoxLicenseNLV is undefined (remove it from your C:\autoexec.bat).


4b2  If you already have a flexlm license server running on
---  a UNIX workstation in your local network and you want to
     use this UNIX workstation as your network license server.

     We expect you are familiar with the flexlm software.
     Go to your UNIX license server (the host where lmgrd is running)
     and install a UNIX-version of "conceptd" on this computer.
     To get "conceptd", you must also download the UNIX version of
     the nlview sofware from:

        //www.concept.de/nlview/nlview-2.8-PLATFORM.tar.gz

     Now, follow the FLEXlm section in the UNIX installation notes
     nlview-2.8/doc/INSTALL-UNIX.TXT.  The only UNIX file you need is
     "conceptd", you can delete all other files from the UNIX installation
     tree.

     Check the IP port number in the SERVER line and note that
     you must use the same number in LM_LICENSE_FILE on your local
     PC.  Go to your local PC and define LM_LICENSE_FILE as described
     in 4b1 above.


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

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

        C:\concept\flexlm-5.12\license.dat

     Modify the DAEMON line by entering the correct pathname to the
     Concept daemon at C:\concept\flexlm-5.12\win32\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.
 
     Use the "FLEXlm License Manager" to start the "lmgrd" License
     Daemon.  With the explorer, double-click on

        C:\concept\flexlm-5.12\win32\flexlm.cpl
 
     In the "FLEXlm License Manager" go to the "Setup" window and
     fill in the fields:
 
        lmgrd.exe:    C:\concept\flexlm-5.12\win32\lmgrd.exe
        License File  C:\concept\flexlm-5.12\license.dat
        Debug Log:    C:\concept\flexlm-5.12\licence.log
 
     Enable "Start Server at Power-Up"
 
     Go to the "Control" window and start the License Server.
     The press "Status" to display the server status.  If anything
     went wrong, check the logfile C:\concept\flexlm-5.12\licence.log.
 
     If you want to have the FLEXlm License Manager" in the "Control Panel"
     (Start->Settings->Control Panel), then you should copy flexlm.cpl and
     lmgr325c.dll to the "system" directory (on Windows95 C:\windows\system,
     on WindowsNT %SystemRoot%\system32).

     Locate the license file by the environment variable LM_LICENSE_FILE.
     One possibility to define environment variables is to add
     a line like the following to C:\autoexec.bat and reboot afterwards.
 
        set LM_LICENSE_FILE=C:\concept\flexlm-5.12\license.dat
 
     On WindowsNT you can alternatively use the "System Properties" window
     (Start->Settings->Control Panel->System) to set the environment variable
     LM_LICENSE_FILE.

     Please make sure, that the node-locked environment variable
     ceBoxLicenseNLV is undefined (remove it from your C:\autoexec.bat).


Test the FLEXlm installation
----------------------------

Invoke lmtools:

        C:\concept\flexlm-5.12\win32\lmtools
 
If LM_LICENSE_FILE is setup correctly, then there is no need to
specify a "Current License File" in the window.
 
Test the "Checksum", and run "Diagnostics".  The Concept
Engineering vendor daemon is "conceptd".

FLEXlm problems ?
-----------------
    If you run into any FLEXlm problem, then 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 use a MSDOS Command Window to invoke nlview.
E.g. type:
        nlview -symlib C:\concept\nlview-2.8\symlib\generic.edf

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 **


5. Add entries to the "Start" menu
----------------------------------

We expect, that nlview can be invoked from the MSDOS Command
Window successfully.  Here, is a short description how to
add a "Nlview" into the Start->Programs menu.

5.1 Add entries for nlview with "generic" symbol shapes
-------------------------------------------------------

Invoke the explorer for the "Start" menu.  For this select
Start->Settings->Taskbar to pop up the "Taskbar Properties" window.
In that window, choose "Start Menu Programs" and press "Advanced" to
invoke the explorer.  On Windows95, this is directory C:\Windows\Startmenu.
 
Go to subdirectory "Programs" and create a new Folder "Nlview" with four
new entries, for the users guide, the demo tutorial, the demo program,
and the standard nlview program.
 
To create a Folder from the explorer, select File->New->Folder
and specify "Nlview" as folder name.  Then go to this new
folder (now you are in "Programs\Nlview").
 
Create a shortcut for the User Manual:

    Select File->New->Shortcut and in the "Create Shortcut"
    window (that has popd up) specify the shortcut name
    to "Nlview User Manual" and the command line to:
     
        C:\concept\nlview-2.8\doc\user_manual.html
     
Create a shortcut for "Nlview DEMO Tutorial"

    Select File->New->Shortcut.  Specify the shortcut name
    to "Nlview DEMO Tutorial" and the command line to:

        C:\concept\nlview-2.8\demo\doc\tutorial.html
     
Create a shortcut for Nlview DEMO:

    Select File->New->Shortcut.  Specify the shortcut name
    to "Nlview DEMO" and the command line to:

        C:\concept\nlview-2.8\win32\nlview.exe -demo -symlib C:\concept\nlview-2.8\symlib\generic.edf
     
    Here, you should also define a working directory for
    the program.  For this, press the right mouse button
    on the new shortcut and choose "Properties".
    Specify the working directory:
     
        C:\concept\nlview-2.8\demo
     
Create a shortcut for Nlview generic:

    Select File->New->Shortcut.  Specify the shortcut name
    to "Nlview" and the command line to:

        C:\concept\nlview-2.8\win32\nlview.exe -symlib C:\concept\nlview-2.8\symlib\generic.edf
     
    Here, you may also define a working directory (your design data
    directory) as above.
     
To invoke the demo from the "Start" menu, select
Start->Programs->Nlview->Nlview DEMO, and you should see the
nlview main window comming up. In the nlview main window, select
File->Read EDIF or Read Verilog to read one of the included files.
If you want, you can follow the "Nlview DEMO Tutorial".


5.2 Add entries for your symbol libraries
-----------------------------------------
 
Nlview will only display symbol shapes of known cells.  For
unknown cells, nlview displays boxes.  If you want nlview
to support your library, you must create your own symlib
file.  Follow the users manual, chapter 7.
 
Then, create a shortcut for Nlview using your new symlib.

Create a shortcut for Nlview generic:

    Select File->New->Shortcut.  Specify the shortcut name
    to "Nlview YOURLIB" and the command line to:

        C:\concept\nlview-2.8\win32\nlview.exe -symlib C:\concept\nlview-2.8\symlib\YOURLIB.edf
     
    Here, you may also define a working directory (your design data
    directory) as above.
     
 
6. A note about Verilog libraries
---------------------------------

If you are using Verilog and you have one or several verilog file(s)
that only defines library cells,  then you should specify those
files to nlview at startup (because nlview should know the
port directions of all cells).
 
Check the User Manual for a more detailed description of the
verilog command-line options.
 
You can (1) use the MSDOS Command Window to call nlview with the
required options, or (2) invoke nlview from the Start->Programs->Nlview
menu.  For case (2), you should extend the command line:  Like in
section 1, invoke the explorer for the "Start" menu, go to folder
"Programs\Nlview", press the right mouse button on the
shortcut you want to extend and choose "Properties".
 
Extend the command line like:
 
        C:\concept\nlview-2.8\win32\nlview.exe -symlib C:\concept\nlview-2.8\symlib\MYLIB.edf -verilog lib1.v lib2.v lib3.v -endlibs
 
This will make nlview reading the specified Verilog libs (from the
working directory) at startup. When you later use the Read VERILOG
dialog window, you must specify "add" mode (instead of "replace" mode)
to use the verilog lib information from the command line.
Please note: Specifying verilog lib files is independent from (and more
important than) defining symbol shapes (in a symlib file).
