File: xnf2pcf.sh

package info (click to toggle)
verilog 0.8-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,212 kB
  • ctags: 7,045
  • sloc: cpp: 42,249; ansic: 26,293; yacc: 3,452; sh: 2,773; makefile: 1,108
file content (26 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# xnf2pcf

# Converts perfectly good EXT records from an XNF file to
# a .pcf file for the "par" step of the Xilinx toolchain.
# Why on earth is this needed?  Oh, well, the joys of working
# with black-box-ware.

# Usage:  xnf2pcf <design.xnf >design.pcf

# Refer to the resulting .pcf file in the invocation of "par", syntax:
#       par [options] infile[.ncd] outfile pcf_file[.pcf]

# Tested (successfully!) with XNF from Icarus Verilog, see
#   http://www.geda.seul.org/tools/verilog/index.html
# and Xilinx back end tools from Foundation 1.5

# Author: Larry Doolittle  <LRDoolittle@lbl.gov>
# Date:   August 19, 1999

echo "SCHEMATIC START ;"
echo "SCHEMATIC END ;"
echo

awk '/^EXT/{gsub(",",""); printf("COMP \"%s\" LOCATE = SITE \"P%s\" ;\n", $2, $4)}'