From master
authorEddie Hung <eddie@fpgeh.com>
Tue, 28 May 2019 16:38:58 +0000 (09:38 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 28 May 2019 16:38:58 +0000 (09:38 -0700)
tests/tools/autotest.sh

index 1825990a9fc976ac076726b4b4bcab38298d27b0..920474a846ae2318d8aafabb4e0b68d290f3a323 100755 (executable)
@@ -132,13 +132,13 @@ do
                fn=$(basename $fn)
                bn=$(basename $bn)
 
+               rm -f ${bn}_ref.fir
                if [[ "$ext" == "v" ]]; then
                        egrep -v '^\s*`timescale' ../$fn > ${bn}_ref.${ext}
                else
                        "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "verilog" -o ${bn}_ref.v ../${fn}
                        frontend="verilog -noblackbox"
                fi
-               rm -f ${bn}_ref.fir
 
                if [ ! -f ../${bn}_tb.v ]; then
                        "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "test_autotb $autotb_opts" -o ${bn}_tb.v ${bn}_ref.v