Answers Database


XNFMERGE ERROR 220 may be caused by multiple periods in filenames


Record #263

Problem Title:
XNFMERGE ERROR 220 may be caused by multiple periods in filenames


Problem Description:
If XNFMERGE is run on a design that contains a filename that
contains more than one period, such as design.a.b.c, it will
fail with an error similar to the one shown below.

XNFMERGE Ver. 5.x
(c) Copyright 1987-1994 Xilinx Inc. All rights reserved

List of files read
     Read file design.xnf
ERROR 220: Can't open file 'block.a'.
Netlist written to file design.xff


Solution 1:

XNFMERGE does not correctly handle file names that contain more
  than one period (it cannot find them). Such file names are
often generated by synthesis tools, such as Mentor Graphics'
Autologic tool. There are several possible workarounds for this
problem:


* If possible, have the source design flattened before XNFMerge is run. This can be done in Autolo gic, for example, by selecting Optimize ->
    Set Opt Constraints -> Set Hier Controls -> Flatten: Yes.

* For each symbol or schematic that contains a period in its name, rename
    it so that there are no periods.

* Edit the each of the .xnf files adding the .xnf extension to the TYPE
    field. The TYPE field is the third comma-separated field in a line that
    begins with SYM, in the .xnf file. An example of this follows:

       line from .xnf PRIOR to editing:

       SYM, I$216, BLOCK.A, SCHNM=BLOCK.A

       line from .xnf AFTER editing:

       SYM, I$216, BLOCK.A.XNF, SCHNM=BLOCK.A

* A script exists called fixsyms. When run on a design it will fix
    the TYPE symbol references, effectively ridding the file of the
    multiple periods. It is accompanied by two awk scripts,
    getbsyms.awk and getsyms.awk. The script is available on the
    Xilinx BBS as fixsyms.zip, or can be emailed from Xilinx Techical
    support. This script will only run on workstations.

       To run fixsyms on a design, first translate the design to .xnf and with
       the fixsyms script and the two awk scripts in the working directory
       type:

       fixsyms design.xnf

       fixsyms will traverse the design, pushing into each of the .xnf files
       used in the design and will add the .xnf extension to the TYPE field.
       fixsyms is a c-shell script for the workstation.

**** Note to Xilinx tech support, others please ignore ****

The email files are:
~craigr/bin/fixsyms/fixsyms
~craigr/bin/fixsyms/getbsyms.awk
~craigr/bin/fixsyms/getsyms.awk








End of Record #263 - Last Modified: 04/01/97 07:29

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