mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
Use ABC to convert from AIGER to Verilog
This commit is contained in:
parent
ebe29b6659
commit
abc40924ed
|
@ -146,9 +146,10 @@ do
|
||||||
rm -f ${bn}_ref.fir
|
rm -f ${bn}_ref.fir
|
||||||
if [[ "$ext" == "v" ]]; then
|
if [[ "$ext" == "v" ]]; then
|
||||||
egrep -v '^\s*`timescale' ../$fn > ${bn}_ref.${ext}
|
egrep -v '^\s*`timescale' ../$fn > ${bn}_ref.${ext}
|
||||||
|
elif [[ "$ext" == "aig" ]] || [[ "$ext" == "aag" ]]; then
|
||||||
|
"$toolsdir"/../../yosys-abc -c "read_aiger ../${fn}; write ${bn}_ref.v"
|
||||||
else
|
else
|
||||||
"$toolsdir"/../../yosys -f "$frontend $include_opts" -b "verilog" -o ${bn}_ref.v ../${fn}
|
cp ../${fn} ${bn}_ref.${ext}
|
||||||
frontend="verilog -noblackbox"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f ../${bn}_tb.v ]; then
|
if [ ! -f ../${bn}_tb.v ]; then
|
||||||
|
|
Loading…
Reference in a new issue