Add failing test
authorEddie Hung <eddie@fpgeh.com>
Thu, 29 Aug 2019 02:58:58 +0000 (19:58 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 29 Aug 2019 02:58:58 +0000 (19:58 -0700)
tests/various/hierarchy_defer.ys [new file with mode: 0644]

diff --git a/tests/various/hierarchy_defer.ys b/tests/various/hierarchy_defer.ys
new file mode 100644 (file)
index 0000000..170bb8c
--- /dev/null
@@ -0,0 +1,18 @@
+read -vlog2k <<EOT
+module first;
+endmodule
+
+(* top *)
+module top(input i, output o);
+sub s0(i, o);
+endmodule
+
+module sub(input i, output o);
+assign o = ~i;
+endmodule
+EOT
+
+hierarchy -auto-top
+select -assert-any top
+select -assert-any sub
+select -assert-none foo