Return to Support Page
 homesearchagentssupportask xilinxmap

Answers Database


M1.3/M1.4,Workview Office : Adding custom functions to ViewDraw (EDIFNETO/EDIFNETI/LogiBLOX)


Record #1985

Product Family:  Software

Product Line:  ViewLogic

Problem Title:
M1.3/M1.4,Workview Office : Adding custom functions to ViewDraw
(EDIFNETO/EDIFNETI/LogiBLOX)



Problem Description:
Keywords: M1.3, M1.4, Functional, Timing,  Simulation, Viewlogic, Workview
	  Office, EDIFNETO, EDIFNETI, LogiBLOX, ViewDraw

Urgency: HOT

The Tools menu in ViewDraw can be customized to include Xilinx M1-specific
functionality.	For example, when this command is run from a DOS box:

custmenu c:\xilinx\viewlog\data\viewblox.txt

two new commands appear in the Tools menu:

Tools -> Add LogiBLOX
Tools -> Change LogiBLOX

Note:  To use these commands, make sure you have a valid set of libraries for
an M1 design, including the LogiBLOX library.  See (Xilinx Solution 1893) for
more detailed information.

To view or modify commands, select Tools -> Customize...

You can select the Common Menu and remove unwanted/unlicensed commands.


A file exists on the Xilinx FTP site that will automatically set up the
features described in the following three Solutions.  The file is located at
ftp://ftp.xilinx.com/pub/swhelp/viewlogic/xvdrawm1.zip.

Within this ZIP file are two script .TXT files, an executable (vfuncsim.exe),
and a readme.txt.

Place vfuncsim.exe in the WVOFFICE directory, the XILINX\BIN\NT directory, or
some other directory that is referenced in your PATH.

From an MS-DOS session, run one the following commands:

custmenu xvdrawNT.txt
    (for Windows NT 4.0 users only)

custmenu xvdraw95.txt
    (for Windows 95 4.0 users only)

After running this command, open ViewDraw and check the Tools menu.  In the
User section, you will see three new commands that are described in the
three solutions.

NOTE:  There is a bug with custmenu with Workview Office 7.4 and Windows NT.
See (Xilinx Solution 3401) for details.


Solution 1:

Menu Text:  Write Xilinx EDIF

Command (for Windows NT):  cmd.exe
Command (for Windows 95):  command.com

Arguments:  edifneto -l xilinx $BLOCKNAME


If the current schematic is called DESIGN.1, this command will create a
DESIGN.EDN file that can be taken to the Xilinx M1 Design Manager.  Note that
the  -l xilinx	option has been called as required for Xilinx designs.

Also note the slight difference in the way that a command prompt is called for
Windows NT versus Windows 95.



Solution 2:

Menu Text:  Xilinx Timing EDIFNETI

Command (for Windows NT):  cmd.exe
Command (for Windows 95):  command.com

Arguments:  edifneti time_sim.edn


This command will read in the Timing Simulation Data that can be produced by
the Xilinx M1 Core Technology tools.  TIME_SIM.1 will be written into the
project WIR directory, along with a bunch of XBA#.1 files.  Follow this step
with Tools -> Create Digital Netlist, filling in the Design Name field with
TIME_SIM.1, to run a Viewlogic Timing Simulation.

With these two commands added to ViewDraw, use of the EDIF Interface GUI will
not be required for Xilinx designs.  Note the slight difference in the way
that a command prompt is called for Windows NT versus Windows 95.



Solution 3:

Menu Text:  Xilinx Functional Simulation

Command:  vfuncsim.exe

Arguments:  $BLOCKNAME


To functionally simulate most Xilinx M1 designs, including designs containing
LogiBLOX, you will simply use VSM or "Create Digital Netlist" to create a .VSM
file.  However, certain design elements will require some processing before
the simulation netlist can be created.	These elements include:

- ABEL Modules
- EDIF or XNF instantiations (without a corresponding schematic)
- XC3000 CLB and IOB primitives (defined by attributes)
- ROM primitives (contents described by an INIT attribute)
- XC4000E/EX RAM primitives with INIT attributes

Designs with these elements must be processed by the following programs:

- EDIFNETO   (to write out the EDIF (.EDN) file)
- NGDBUILD   (compiles the design to one complete netlist (.NGD) file)
- NGD2EDIF   (writes a new .EDN file, FUNC_SIM.EDN)
- EDIFNETI   (reads FUNC_SIM.EDN back into the Viewlogic environment)

and then VSM can be run on FUNC_SIM.1, the wir file created by EDIFNETI.

VFUNCSIM.EXE will run all five of these programs on the current design.
After running this program, simply open ViewSim and load the FUNC_SIM.VSM file
and run your simulation.  You will need to run the following command in
ViewSim to annotate the values your schematic:

SCHEMNAM <design>

where <design> is the top level schematic of your design.


NOTE:  There is a bug in Workview Office 7.4's EDIFNETI.  This Functional
Simulation Flow will not work until the patch described in
(Xilinx Solution 3081) is downloaded.



End of Record #1985

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Xilinx Expert Journals!

© 1998 Xilinx, Inc. All rights reserved
Trademarks and Patents