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
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 ;"
26 awk '/^EXT/{gsub(",",""); printf("COMP \"%s\" LOCATE = SITE \"P%s\" ;\n", $2, $4)}'