diff options
Diffstat (limited to 'icefuzz/tests/colbuf_logic_lm4k.sh')
-rw-r--r-- | icefuzz/tests/colbuf_logic_lm4k.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/icefuzz/tests/colbuf_logic_lm4k.sh b/icefuzz/tests/colbuf_logic_lm4k.sh new file mode 100644 index 0000000..d1dc681 --- /dev/null +++ b/icefuzz/tests/colbuf_logic_lm4k.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -ex + +mkdir -p colbuf_logic_lm4k.work +cd colbuf_logic_lm4k.work + +glb_pins="A3 A4 D2 E2 E5 G3" + +for y in {1..32}; do +for y in {1..20}; do + pf="colbuf_logic_lm4k_${x}_${y}" + gpin=$( echo $glb_pins | tr ' ' '\n' | sort -R | head -n1; ) + cat > ${pf}.v <<- EOT + module top (input c, d, output q); + SB_DFF dff ( + .C(c), + .D(d), + .Q(q) + ); + endmodule + EOT + echo "set_location dff $x $y 0" > ${pf}.pcf + echo "set_io c $gpin" >> ${pf}.pcf + ICEDEV=lm4k-cm49 bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1 + ../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp + rm -rf ${pf}.tmp +done; done + |