#!/bin/bash # using Xilinx ISE to display RTL schematics if [ ! -f "$1" ]; then echo "Usage: $0 " >&2 exit 1 fi prjdir="$(dirname $0)/rtlview.tmp" mkdir -p "$prjdir" cp "$1" "$prjdir"/schematic.v cp "$(dirname $0)"/../../techlibs/common/blackbox.v "$prjdir"/blackbox.v cd "$prjdir" if fuser -s ise.out; then echo "ISE already running. Re-create RTL schematic from GUI." exit 1 fi xilver=$( ls -v /opt/Xilinx/ | grep '^[0-9]' | tail -n1; ) cat > rtlview.xise << EOT
EOT set -- case "$( uname -m )" in x86_64) . /opt/Xilinx/$xilver/ISE_DS/settings64.sh ;; *) . /opt/Xilinx/$xilver/ISE_DS/settings32.sh ;; esac ise rtlview.xise > ise.out 2>&1 & echo "ISE is now starting up. Create RTL schematic from GUI."