diff options
author | William D. Jones <thor0505@comcast.net> | 2021-02-08 01:43:06 -0500 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-12 10:36:59 +0000 |
commit | 2b54e87548befa65ce058d23aec82d389190ba55 (patch) | |
tree | e6766be9ec2bf5d6188cca8f72825f9c27c642e3 /machxo2 | |
parent | a3a38b0536a59be8f2fd7afd1914989d0ed23da7 (diff) | |
download | nextpnr-2b54e87548befa65ce058d23aec82d389190ba55.tar.gz nextpnr-2b54e87548befa65ce058d23aec82d389190ba55.tar.bz2 nextpnr-2b54e87548befa65ce058d23aec82d389190ba55.zip |
machxo2: Verilog examples using OSCH cannot be simulated in mitertest.sh. Remove show from mitertest.sh.
Diffstat (limited to 'machxo2')
-rw-r--r-- | machxo2/examples/mitertest.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/machxo2/examples/mitertest.sh b/machxo2/examples/mitertest.sh index f2c7ba57..06b99125 100644 --- a/machxo2/examples/mitertest.sh +++ b/machxo2/examples/mitertest.sh @@ -5,6 +5,11 @@ if [ $# -lt 3 ]; then exit -1 fi +if grep -q "OSCH" $1.v; then + echo "$1.v uses blackbox primitive OSCH and cannot be simulated." + exit -2 +fi + case $2 in "pack") NEXTPNR_MODE="--pack-only" @@ -17,7 +22,7 @@ case $2 in ;; *) echo "nextpnr_mode string must be \"pack\", \"place\", or \"pnr\"" - exit -2 + exit -3 ;; esac @@ -30,7 +35,7 @@ case $3 in ;; *) echo "solve_mode string must be \"sat\", or \"smt\"" - exit -3 + exit -4 ;; esac @@ -72,7 +77,6 @@ ${NEXTPNR:-../../nextpnr-machxo2} $NEXTPNR_MODE --1200 --package QFN32 --no-iobs ${YOSYS:-yosys} -p "read_verilog -lib +/machxo2/cells_sim.v read_json ${2}${1}.json clean -purge - show -format png -prefix ${2}${1} write_verilog -noattr -norename ${2}${1}.v" if [ $3 = "sat" ]; then |