diff options
author | hermitsoft <hermisu@mail.com> | 2017-03-10 02:09:46 +0100 |
---|---|---|
committer | hermitsoft <hermisu@mail.com> | 2017-03-10 02:09:46 +0100 |
commit | e832acc445f64d1f9379eef8ef01576ccc0494b6 (patch) | |
tree | 429c136200b76a4a3621e71f62c608365998b142 /icefuzz/tests/io_latched_384.sh | |
parent | dacf221f3b61603b5d1998ca0afca125a5b18d50 (diff) | |
download | icestorm-e832acc445f64d1f9379eef8ef01576ccc0494b6.tar.gz icestorm-e832acc445f64d1f9379eef8ef01576ccc0494b6.tar.bz2 icestorm-e832acc445f64d1f9379eef8ef01576ccc0494b6.zip |
icefuzz data and test scripts for LP384-CM49
Diffstat (limited to 'icefuzz/tests/io_latched_384.sh')
-rw-r--r-- | icefuzz/tests/io_latched_384.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/icefuzz/tests/io_latched_384.sh b/icefuzz/tests/io_latched_384.sh new file mode 100644 index 0000000..04ea00f --- /dev/null +++ b/icefuzz/tests/io_latched_384.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -ex + +mkdir -p io_latched_384.work +cd io_latched_384.work + +pins=" + A1 A2 A3 A4 A5 A6 A7 + B1 B2 B3 B4 + C1 C2 C4 C5 C6 C7 + D1 D2 D3 D4 D6 D7 + E2 E6 E7 + F1 F2 F3 F4 F5 F6 F7 + G1 G3 G4 G6 +" +pins="$( echo $pins )" + +for pin in $pins; do + pf="io_latched_384_$pin" + cp ../io_latched.v ${pf}.v + read pin_latch pin_data < <( echo $pins | tr ' ' '\n' | grep -v $pin | sort -R; ) + { + echo "set_io pin $pin" + echo "set_io latch_in $pin_latch" + echo "set_io data_out $pin_data" + } > ${pf}.pcf + ICEDEV=lp384-cm49 bash ../../icecube.sh ${pf}.v + ../../../icebox/icebox_vlog.py -SP ${pf}.psb ${pf}.asc > ${pf}.ve +done + |