Renamed IceBox .txt files to .asc files

This commit is contained in:
Clifford Wolf 2016-01-01 15:08:41 +01:00
parent ed545ce4ce
commit 804e47d8ff
27 changed files with 41 additions and 41 deletions

View File

@ -61,8 +61,8 @@ arachne-pnr</a> (this example targets the iCEstick development board):
</p>
<pre style="padding-left: 3em">yosys -p "synth_ice40 -blif rot.blif" rot.v
arachne-pnr -d 1k -p rot.pcf rot.blif -o rot.txt
icepack rot.txt rot.bin
arachne-pnr -d 1k -p rot.pcf rot.blif -o rot.asc
icepack rot.asc rot.bin
iceprog rot.bin</pre>
<h2>Where are the Tools? How to install?</h2>
@ -263,16 +263,16 @@ And run them through Yosys, Arachne-PNR and IcePack:
</p>
<pre style="padding-left: 3em">$ yosys -p 'synth_ice40 -top top -blif example.blif' example.v
$ arachne-pnr -d 1k -o example.txt -p example.pcf example.blif
$ icepack example.txt example.bin
$ arachne-pnr -d 1k -o example.asc -p example.pcf example.blif
$ icepack example.asc example.bin
</pre>
<p>
We would get something like the following <span style="font-family:monospace">icebox_explain</span> output:
</p>
<pre style="padding-left: 3em">$ icebox_explain example.txt
Reading file 'example.txt'..
<pre style="padding-left: 3em">$ icebox_explain example.asc
Reading file 'example.asc'..
Fabric size (without IO tiles): 12 x 16
.io_tile 0 10
@ -308,8 +308,8 @@ buffer sp4_h_r_24 local_g3_0</pre>
And something like the following <span style="font-family:monospace">icebox_vlog</span> output:
</p>
<pre style="padding-left: 3em">$ icebox_vlog -p example.pcf example.txt
// Reading file 'example.txt'..
<pre style="padding-left: 3em">$ icebox_vlog -p example.pcf example.asc
// Reading file 'example.asc'..
module chip (output y, input b, input a);

View File

@ -7,10 +7,10 @@ all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.txt: $(PIN_DEF) %.blif
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(DEVICE) -o $@ -p $^
%.bin: %.txt
%.bin: %.asc
icepack $< $@
prog: $(PROJ).bin
@ -21,6 +21,6 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).txt $(PROJ).bin
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin
.PHONY: all prog clean

View File

@ -7,10 +7,10 @@ all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.txt: $(PIN_DEF) %.blif
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(DEVICE) -o $@ -p $^
%.bin: %.txt
%.bin: %.asc
icepack $< $@
prog: $(PROJ).bin
@ -21,6 +21,6 @@ sudo-prog: $(PROJ).bin
iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).txt $(PROJ).bin
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin
.PHONY: all prog clean

View File

@ -22,7 +22,7 @@ mode_8k = False
def usage():
print("""
Usage: icebox_chipdb [options] [bitmap.txt]
Usage: icebox_chipdb [options] [bitmap.asc]
-8
create chipdb for 8k device

View File

@ -23,7 +23,7 @@ fixup_mode = False
def usage():
print("""
Usage: icebox_colbuf [options] [input.txt [output.txt]]
Usage: icebox_colbuf [options] [input.asc [output.asc]]
-c
check colbuf bits

View File

@ -21,7 +21,7 @@ import re
if len(sys.argv) != 3:
print("""
Usage: icebox_diff bitmap1.txt bitmap2.txt
Usage: icebox_diff bitmap1.asc bitmap2.asc
""")
sys.exit(0)

View File

@ -25,7 +25,7 @@ print_all = False
def usage():
print("""
Usage: icebox_explain [options] [bitmap.txt]
Usage: icebox_explain [options] [bitmap.asc]
-b
print config bit names for each config statement

View File

@ -32,7 +32,7 @@ modname = "chip"
def usage():
print("""
Usage: icebox_vlog [options] [bitmap.txt]
Usage: icebox_vlog [options] [bitmap.asc]
-s
strip comments from output

View File

@ -8,8 +8,8 @@ for id; do
if test -f $id.pcf; then icebox_vlog_opts="$icebox_vlog_opts -p $id.pcf"; fi
if test -f $id.psb; then icebox_vlog_opts="$icebox_vlog_opts -P $id.psb"; fi
../icepack/iceunpack $id.bin $id.txt
../icebox/icebox_vlog.py $icebox_vlog_opts $id.txt > $id.ve
../icepack/iceunpack $id.bin $id.asc
../icebox/icebox_vlog.py $icebox_vlog_opts $id.asc > $id.ve
yosys -p "
read_verilog $id.v

View File

@ -198,5 +198,5 @@ cp "$1.tmp"/outputs/bitmap/top_bitmap_glb.txt "$1.glb"
cp "$1.tmp"/outputs/placer/top_sbt.pcf "$1.psb"
cp "$1.tmp"/outputs/netlist/top_sbt.v "$1.vsb"
cp "$1.tmp"/outputs/netlist/top_sbt.sdf "$1.sdf"
$scriptdir/../icepack/iceunpack "$1.bin" "$1.txt"
$scriptdir/../icepack/iceunpack "$1.bin" "$1.asc"

View File

@ -23,7 +23,7 @@ pins="
echo "set_io y ${pin}" >> ${id}.pcf
echo; echo "${id}.exp:"
echo " ICEDEV=hx1k-cb132 bash ../icecube.sh ${id} > ${id}.log 2>&1"
echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new"
echo " ../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new"
echo " rm -rf ${id}.tmp"
echo " mv ${id}.exp.new ${id}.exp"
done

View File

@ -22,7 +22,7 @@ pins="
echo "set_io y ${pin}" >> ${id}.pcf
echo; echo "${id}.exp:"
echo " ICEDEV=lp1k-qn84 bash ../icecube.sh ${id} > ${id}.log 2>&1"
echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new"
echo " ../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new"
echo " rm -rf ${id}.tmp"
echo " mv ${id}.exp.new ${id}.exp"
done

View File

@ -21,7 +21,7 @@ pins="
echo "set_io y ${pin}" >> ${id}.pcf
echo; echo "${id}.exp:"
echo " ICEDEV=hx1k-tq144 bash ../icecube.sh ${id} > ${id}.log 2>&1"
echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new"
echo " ../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new"
echo " rm -rf ${id}.tmp"
echo " mv ${id}.exp.new ${id}.exp"
done

View File

@ -21,7 +21,7 @@ pins="
echo "set_io y ${pin}" >> ${id}.pcf
echo; echo "${id}.exp:"
echo " ICEDEV=hx1k-vq100 bash ../icecube.sh ${id} > ${id}.log 2>&1"
echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new"
echo " ../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new"
echo " rm -rf ${id}.tmp"
echo " mv ${id}.exp.new ${id}.exp"
done

View File

@ -33,7 +33,7 @@ pins="
echo "set_io y ${pin}" >> ${id}.pcf
echo; echo "${id}.exp:"
echo " ICEDEV=hx8k-ct256 bash ../icecube.sh ${id} > ${id}.log 2>&1"
echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new"
echo " ../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new"
echo " rm -rf ${id}.tmp"
echo " mv ${id}.exp.new ${id}.exp"
done

View File

@ -32,7 +32,7 @@ for pin in $pins; do
echo "set_io pin $pin" > ${pf}.pcf
echo "set_io clk $gpin" >> ${pf}.pcf
bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done

View File

@ -44,7 +44,7 @@ for pin in $pins; do
echo "set_io pin $pin" > ${pf}.pcf
echo "set_io clk $gpin" >> ${pf}.pcf
ICEDEV=hx8k-ct256 bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done

View File

@ -23,7 +23,7 @@ for y in {1..16}; do
echo "set_location dff $x $y 0" > ${pf}.pcf
echo "set_io c $gpin" >> ${pf}.pcf
bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done; done

View File

@ -23,7 +23,7 @@ for y in {1..32}; do
echo "set_location dff $x $y 0" > ${pf}.pcf
echo "set_io c $gpin" >> ${pf}.pcf
ICEDEV=hx8k-ct256 bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done; done

View File

@ -51,7 +51,7 @@ for y in {1..16}; do
echo "set_io oc 1" >> ${pf}.pcf
echo "set_io c $gpin" >> ${pf}.pcf
bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done; done

View File

@ -51,7 +51,7 @@ for y in {1..32}; do
echo "set_io oc 1" >> ${pf}.pcf
echo "set_io c $gpin" >> ${pf}.pcf
ICEDEV=hx8k-ct256 bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
rm -rf ${pf}.tmp
done; done

View File

@ -23,6 +23,6 @@ for pin in $pins; do
echo "set_io data_out $pin_data"
} > ${pf}.pcf
bash ../../icecube.sh ${pf}.v
../../../icebox/icebox_vlog.py -SP ${pf}.psb ${pf}.txt > ${pf}.ve
../../../icebox/icebox_vlog.py -SP ${pf}.psb ${pf}.asc > ${pf}.ve
done

View File

@ -18,7 +18,7 @@ for pin in $pins; do
echo "module top (output pin); assign pin = 1; endmodule" > ${pf}.v
echo "set_io pin $pin" > ${pf}.pcf
bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
../../../icebox/icebox_explain.py ${pf}.txt > ${pf}.exp
../../../icebox/icebox_explain.py ${pf}.asc > ${pf}.exp
done
set +x

View File

@ -49,7 +49,7 @@ for OUTTYPE in 0000 0110 1010 1110 0101 1001 1101 \
EOT
bash ../../icecube.sh ${pf}.v > ${pf}.log 2>&1
fi
python3 ../../../icebox/icebox_vlog.py -P ${pf}.psb ${pf}.txt > ${pf}_out.v
python3 ../../../icebox/icebox_vlog.py -P ${pf}.psb ${pf}.asc > ${pf}_out.v
iverilog -D"VCDFILE=\"${pf}_tb.vcd\"" -DINTYPE=${INTYPE} -o ${pf}_tb \
-s testbench ../test_pio_tb.v ${pf}.v ${pf}_out.v $lattice_simlib 2> /dev/null
./${pf}_tb > ${pf}_tb.txt

View File

@ -20,11 +20,11 @@ uninstall:
test0 test1 test2 test3 test4 test5 test6 test7 test8 test9: icetime
test -f $@_ref.v || python3 mktest.py $@
./icetime -P tq144 -p $@.pcf $@.txt $@_out.v
./icetime -P tq144 -p $@.pcf $@.asc $@_out.v
yosys $@.ys
run0 run1 run2 run3 run4 run5 run6 run7 run8 run9: icetime
./icetime -P tq144 -p $(subst run,test,$@).pcf $(subst run,test,$@).txt $(subst run,test,$@)_out.v
./icetime -P tq144 -p $(subst run,test,$@).pcf $(subst run,test,$@).asc $(subst run,test,$@)_out.v
show0 show1 show2 show3 show4 show5 show6 show7 show8 show9: icetime
bash show.sh $(subst show,test,$@)

View File

@ -1137,7 +1137,7 @@ void make_interconn(const net_segment_t &src, FILE *graph_f)
void help(const char *cmd)
{
printf("\n");
printf("Usage: %s [options] input.txt [output.v]\n", cmd);
printf("Usage: %s [options] input.asc [output.v]\n", cmd);
printf("\n");
printf(" -p <pcf_file>\n");
printf(" -P <chip_package>\n");
@ -1194,7 +1194,7 @@ int main(int argc, char **argv)
} else
help(argv[0]);
printf("// Reading input .txt file..\n");
printf("// Reading input .asc file..\n");
read_config();
printf("// Reading chipdb file..\n");

View File

@ -9,7 +9,7 @@ yosys -p '
show -prefix equiv_graph -format dot a:equiv_region!=0 %co2 a:equiv_region!=0 %ci2
' $1.il
./icetime -P tq144 -p $1.pcf $1.txt $( sed 's,_gate$,,; s,.*_,-g ,;' < equiv_graph.segs ) > /dev/null
./icetime -P tq144 -p $1.pcf $1.asc $( sed 's,_gate$,,; s,.*_,-g ,;' < equiv_graph.segs ) > /dev/null
{
egrep -v '^}' icetime_graph.dot