autotest.sh to define _AUTOTB when test_autotb
authorEddie Hung <eddie@fpgeh.com>
Fri, 28 Jun 2019 21:18:56 +0000 (14:18 -0700)
committerDavid Shah <dave@ds0.me>
Tue, 9 Jul 2019 17:46:18 +0000 (18:46 +0100)
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