From master

This commit is contained in:
Eddie Hung 2019-05-28 09:38:58 -07:00
parent cdedf51c32
commit 5f39c262c2
1 changed files with 1 additions and 1 deletions

View File

@ -132,13 +132,13 @@ do
fn=$(basename $fn) fn=$(basename $fn)
bn=$(basename $bn) bn=$(basename $bn)
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}
else else
"$toolsdir"/../../yosys -f "$frontend $include_opts" -b "verilog" -o ${bn}_ref.v ../${fn} "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "verilog" -o ${bn}_ref.v ../${fn}
frontend="verilog -noblackbox" frontend="verilog -noblackbox"
fi fi
rm -f ${bn}_ref.fir
if [ ! -f ../${bn}_tb.v ]; then if [ ! -f ../${bn}_tb.v ]; then
"$toolsdir"/../../yosys -f "$frontend $include_opts" -b "test_autotb $autotb_opts" -o ${bn}_tb.v ${bn}_ref.v "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "test_autotb $autotb_opts" -o ${bn}_tb.v ${bn}_ref.v