UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 2843

FPGA Express v1.2: Script to convert EXT records to SIG records for module generation

説明

Keywords: FPGA, Express, FPGA Express, EXT, SIG, convert

Urgency: Standard

General Description:

When FPGA Express v1.2 is used as a module generator, the XNF generated by
FPGA Express incorrectly contains EXT records when the "Do not insert I/O"
option is selected. These EXT records must be replaced with SIG records if
the XNF from FPGA Express is used as a module in a larger design.

This problem has been fixed in FGPA Express 2.0.

ソリューション

1

A script (ext2sig.pl) in Perl was wrote which can covert the EXT records of a
XNF file into SIG records. Perl for Windows 95 or Perl for Windows NT will be
required to run this script.

Perl is a public domain software tool which can be found on the Web. A search
via the search engine of your choice can list many sites which provide Perl
for Windows 95 and/or NT. One such site is:

http://www.ActiveState.com

2

If you do not want to type the contents of the Perl script ext2sig.pl, it can
downloaded from:

http://www.xilinx.com/txpatches/pub/swhelp/synopsys/ext2sig.zip


Contents of Perl script(ext2sig.pl) which converts
XNF EXT records to SIG records:

rename ("$ARGV[0]","$ARGV[0].org");
open (SIGFILE,"$ARGV[0].org");
open (NEWFILE, "> $ARGV[0]");
while(<SIGFILE>) {

if (s/^EXT/SIG/){
print NEWFILE $_;
}
else {
print NEWFILE $_;
}

}
close(NEWFILE);
close(SIGFILE);

3

Take the file ext2sig.pl and place it in the same directory as the XNF file
you want to change. To use the script, type the following at the DOS prompt:

perl ext2sig.pl <xnffilename>.xnf

where <xnffilename> is the name of the XNF. ext2sig will create a copy of
your original file with the extension .org. A file of the same name as the
input file to ext2sig will be created.

For example, let's say you have a file called module.xnf generated by FPGA
Express. Copy module.xnf and ext2sig.pl into the same directory. In the
directory that contains module.xnf and ext2sig.pl, type at the DOS prompt:

perl ext2sig module.xnf

After running this command, you will have a file called module.xnf and another
file called module.xnf.org. module.xnf has all EXT records converted to SIG
records. module.xnf.org is your original file.
AR# 2843
作成日 09/19/1997
最終更新日 04/16/1999
ステータス アーカイブ
タイプ 一般