Fix the debugger to finish correctly.
[iverilog.git] / xnf2pcf.sh
blobabac1aa9c578622cbcfe0f7e76d1ff3827aa5304
1 #!/bin/sh
3 # xnf2pcf
5 # Converts perfectly good EXT records from an XNF file to
6 # a .pcf file for the "par" step of the Xilinx toolchain.
7 # Why on earth is this needed? Oh, well, the joys of working
8 # with black-box-ware.
10 # Usage: xnf2pcf <design.xnf >design.pcf
12 # Refer to the resulting .pcf file in the invocation of "par", syntax:
13 # par [options] infile[.ncd] outfile pcf_file[.pcf]
15 # Tested (successfully!) with XNF from Icarus Verilog, see
16 # http://www.geda.seul.org/tools/verilog/index.html
17 # and Xilinx back end tools from Foundation 1.5
19 # Author: Larry Doolittle <LRDoolittle@lbl.gov>
20 # Date: August 19, 1999
22 echo "SCHEMATIC START ;"
23 echo "SCHEMATIC END ;"
24 echo
26 awk '/^EXT/{gsub(",",""); printf("COMP \"%s\" LOCATE = SITE \"P%s\" ;\n", $2, $4)}'