blob: aceef4eb57dbcfab126ddf1a39f7650d140f082d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
topdir=../..
. $topdir/testenv.sh
run_yosys -q -p "ghdl negdff.vhdl -e; write_ilang negdff.ilang"
fgrep -q "cell \$dff" negdff.ilang
fgrep -q "CLK_POLARITY 0" negdff.ilang
fgrep -q "WIDTH 1" negdff.ilang
run_yosys -q -p "ghdl dff.vhdl -e; write_ilang dff.ilang"
fgrep -q "CLK_POLARITY 1" dff.ilang
fgrep -q "WIDTH 1" dff.ilang
run_yosys -q -p "ghdl adff.vhdl -e; opt; write_ilang adff.ilang"
fgrep -q 'cell $adff' adff.ilang
fgrep -q 'ARST_POLARITY 1' adff.ilang
fgrep -q "ARST_VALUE 1'1" adff.ilang
fgrep -q 'CLK_POLARITY 1' adff.ilang
fgrep -q 'WIDTH 1' adff.ilang
run_yosys -q -p "ghdl negadff.vhdl -e; write_ilang negadff.ilang"
fgrep -q 'cell $adff' negadff.ilang
fgrep -q 'ARST_POLARITY 1' negadff.ilang
fgrep -q "ARST_VALUE 1'0" negadff.ilang
fgrep -q 'CLK_POLARITY 0' negadff.ilang
fgrep -q 'WIDTH 1' negadff.ilang
clean
echo OK
|