Fix tests
authorClifford Wolf <clifford@clifford.at>
Sun, 21 Apr 2019 09:40:20 +0000 (11:40 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 21 Apr 2019 09:40:20 +0000 (11:40 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
tests/tools/autotest.sh
tests/various/hierarchy.sh

index f3dac504ed5677abade0bd80aa30f219cc6e3602..bb9c3bfb5f863c340aba134f8a2fbb67dd102bdf 100755 (executable)
@@ -7,7 +7,7 @@ use_modelsim=false
 verbose=false
 keeprunning=false
 makejmode=false
-frontend="verilog"
+frontend="verilog -noblackbox"
 backend_opts="-noattr -noexpr -siminit"
 autotb_opts=""
 include_opts=""
@@ -137,7 +137,7 @@ do
                        egrep -v '^\s*`timescale' ../$fn > ${bn}_ref.${ext}
                else
                        "$toolsdir"/../../yosys -f "$frontend $include_opts" -b "verilog" -o ${bn}_ref.v ../${fn}
-                       frontend="verilog"
+                       frontend="verilog -noblackbox"
                fi
 
                if [ ! -f ../${bn}_tb.v ]; then
index d33a247be4ba832407724ff03eca92dcc56ffc43..9dbd1c89f3c13f66c33cb1603523af5ec58ca14f 100644 (file)
@@ -53,6 +53,7 @@ echo -n "  no explicit top - "
     module noTop(a, y);
       input a;
       output [31:0] y;
+      assign y = a;
     endmodule
   EOV
   hierarchy -auto-top