autotest.sh to define _AUTOTB when test_autotb
authorEddie Hung <eddie@fpgeh.com>
Fri, 28 Jun 2019 21:18:56 +0000 (14:18 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 28 Jun 2019 21:56:22 +0000 (14:56 -0700)
tests/tools/autotest.sh

index 7b64b357f8c033049058221a3044e5de450d8d05..4d34786282f205483a595a2dafd60caa5257ab06 100755 (executable)
@@ -157,7 +157,7 @@ do
                fi
 
                if [ ! -f ../${bn}_tb.v ]; then
-                       "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "test_autotb $autotb_opts" -o ${bn}_tb.v ${bn}_ref.${refext}
+                       "$toolsdir"/../../yosys -f "$frontend $include_opts -D_AUTOTB" -b "test_autotb $autotb_opts" -o ${bn}_tb.v ${bn}_ref.${refext}
                else
                        cp ../${bn}_tb.v ${bn}_tb.v
                fi