Debian Codegraph @

legacy/lut4.sh

raw symbols SCIP
1 function loopscip-shell shell shell-project 0.0.0 loop(). {
2 cpscip-shell system . . cp. -r lut4 lut4_$1
3 cd lut4_$1
4 for row in $1 $2
5 do
6 for col in {2..46}
7 do
8 for cls in {0..3}
9 do
10 for lut in A B
11 do
12 location="R${row}C${col}[${cls}][${lut}]"
13 if [[ ! -f "../data/fs/$location.fs" ]]; then
14 sedscip-shell system . . sed. s/LOCATION/$location/ lut4.cst.mk > lut4.cst
15 ~/bin/gowin/IDE/bin/gw_sh run.tcl
16 mvscip-shell system . . mv. impl/pnr/lut4.fs ../data/fs/$location.fs
17 fi
18 if [[ ! -f "../data/bits/$location.json" ]]; then
19 python ../indices.py ../empty.fs ../data/fs/$location.fs > ../data/bits/$location.json
20 fi
21 done
22 done
23 done
24 done
25 }
26
27 set -x
28 cd empty
29 ~/bin/gowin/IDE/bin/gw_sh run.tcl
30 cd ..
31 cpscip-shell system . . cp. empty/impl/pnr/empty.fs .
32
33 mkdirscip-shell system . . mkdir. -p data/fs
34 mkdirscip-shell system . . mkdir. -p data/bits
35 #R2C2
36 #R27C46
37 loopscip-shell shell shell-project 0.0.0 loop(). 2 3 &
38 loopscip-shell shell shell-project 0.0.0 loop(). 4 5 &
39 loopscip-shell shell shell-project 0.0.0 loop(). 6 7 &
40 loopscip-shell shell shell-project 0.0.0 loop(). 8 9 &
41 loopscip-shell shell shell-project 0.0.0 loop(). 10 11 &
42 loopscip-shell shell shell-project 0.0.0 loop(). 12 13 &
43 loopscip-shell shell shell-project 0.0.0 loop(). 14 15 &
44 loopscip-shell shell shell-project 0.0.0 loop(). 16 17 &
45 loopscip-shell shell shell-project 0.0.0 loop(). 18 19 &
46 loopscip-shell shell shell-project 0.0.0 loop(). 20 21 &
47 loopscip-shell shell shell-project 0.0.0 loop(). 22 23 &
48 loopscip-shell shell shell-project 0.0.0 loop(). 24 25 &
49 loopscip-shell shell shell-project 0.0.0 loop(). 26 27 &
50 cd ..
51