Fixed vivado related xsthammer bugs
authorClifford Wolf <clifford@clifford.at>
Fri, 5 Jul 2013 17:33:42 +0000 (19:33 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 5 Jul 2013 17:33:42 +0000 (19:33 +0200)
tests/xsthammer/report.sh
tests/xsthammer/run-vivado.sh
tests/xsthammer/xl_cells.v

index 868239078b44ebfcfc7fe239c430731b8452fdc8..d6ddd86286a4599c07010ae93f51db5dbae31b86 100644 (file)
@@ -32,6 +32,11 @@ cat ../../xl_cells.v ../../cy_cells.v > cells.v
 echo -n > fail_patterns.txt
 for p in syn_vivado syn_quartus syn_xst syn_yosys rtl; do
 for q in syn_vivado syn_quartus syn_xst syn_yosys rtl; do
+       if test -f result.${q}.${p}.txt; then
+               cp result.${q}.${p}.txt result.${p}.${q}.txt
+               continue
+       fi
+
        {
                echo "read_verilog -DGLBL $p.v"
                echo "rename $job ${job}_1"
index e8f574858f686fc366f2bd0a36510486a1b436d6..26a287d121e192f9d148c963283005009be95d16 100644 (file)
@@ -12,10 +12,11 @@ set -e
 mkdir -p vivado vivado_temp/$job
 cd vivado_temp/$job
 
+sed 's/^module/(* use_dsp48="no" *) module/;' < ../../rtl/$job.v > rtl.v
 cat > $job.tcl <<- EOT
-       read_verilog ../../rtl/$job.v
+       read_verilog rtl.v
        synth_design -part xc7k70t -top $job
-       write_verilog ../../vivado/$job.v
+       write_verilog -force ../../vivado/$job.v
 EOT
 
 /opt/Xilinx/Vivado/2013.2/bin/vivado -mode batch -source $job.tcl
index 3c1e77d2e1b8c7255f0b91dd20bb401e9927754d..cfb2102fd98906e2a304102b14034863e7be3cfb 100644 (file)
@@ -88,6 +88,12 @@ output O;
 assign O = S ? I1 : I0;
 endmodule
 
+module MUXF8(O, I0, I1, S);
+input I0, I1, S;
+output O;
+assign O = S ? I1 : I0;
+endmodule
+
 module VCC(P);
 output P;
 assign P = 1;