mirror of https://github.com/YosysHQ/yosys.git
Added mapping to techlibs/xilinx7 testbench (exposes EDIF backend todos)
This commit is contained in:
parent
5059b31660
commit
6685ad436e
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
XILINX_DIR=/opt/Xilinx/14.5/ISE_DS/ISE/
|
XILINX_DIR=/opt/Xilinx/14.2/ISE_DS/ISE/
|
||||||
|
|
||||||
../../yosys - <<- EOT
|
../../yosys - <<- EOT
|
||||||
# read design
|
# read design
|
||||||
|
@ -20,6 +20,7 @@ XILINX_DIR=/opt/Xilinx/14.5/ISE_DS/ISE/
|
||||||
|
|
||||||
# write netlist
|
# write netlist
|
||||||
write_verilog -noattr testbench_synth.v
|
write_verilog -noattr testbench_synth.v
|
||||||
|
write_edif testbench_synth.edif
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
iverilog -o testbench_gold counter_tb.v counter.v
|
iverilog -o testbench_gold counter_tb.v counter.v
|
||||||
|
@ -35,7 +36,14 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$*" = "-clean" ]; then
|
if [ "$*" = "-map" ]; then
|
||||||
rm -f testbench_{synth.v,{gold,gate}{,.txt}}
|
set -x
|
||||||
|
$XILINX_DIR/bin/lin64/edif2ngd testbench_synth.edif
|
||||||
|
$XILINX_DIR/bin/lin64/ngdbuild -p xc7k70t testbench_synth
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$*" = "-clean" ]; then
|
||||||
|
rm -rf netlist.lst _xmsgs/
|
||||||
|
rm -f testbench_{synth,gold,gate}*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue