mirror of https://github.com/YosysHQ/yosys.git
Add a quick abc9 test
This commit is contained in:
parent
7b026c4bc3
commit
ef1a1402bc
|
@ -0,0 +1,6 @@
|
|||
module top(input [1:0] a, output [1:0] b, output c, output d, output e);
|
||||
assign b = a;
|
||||
assign c = ^a;
|
||||
assign d = ~c;
|
||||
assign e = d;
|
||||
endmodule
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ev
|
||||
|
||||
../../../yosys -p 'abc9 -lut 4; check; select -assert-count 2 t:$lut; select -assert-none c:* t:$lut %n %i' abc9.v
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
for x in *_runtest.sh; do
|
||||
echo "Running $x.."
|
||||
if ! bash $x &> ${x%.sh}.log; then
|
||||
tail ${x%.sh}.log
|
||||
echo ERROR
|
||||
exit 1
|
||||
fi
|
||||
done
|
|
@ -8,3 +8,11 @@ for x in *_runtest.sh; do
|
|||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
for d in */; do
|
||||
if [ -x $d/run-test.sh ]; then
|
||||
cd $d
|
||||
bash run-test.sh
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue