aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-06-28 13:39:46 -0700
committerEddie Hung <eddie@fpgeh.com>2019-06-28 13:39:46 -0700
commit0c4689c41aba0d342710bd625e1fdb44e147d005 (patch)
tree643ec2499d554ac39597e83a4f2301460e05410e /tests
parent544352fd8f030c1e31adc9479504d4d4896b4253 (diff)
parent4e1a4927e29d1b571b88d9be80a0ff2e0716d5fb (diff)
downloadyosys-0c4689c41aba0d342710bd625e1fdb44e147d005.tar.gz
yosys-0c4689c41aba0d342710bd625e1fdb44e147d005.tar.bz2
yosys-0c4689c41aba0d342710bd625e1fdb44e147d005.zip
Merge remote-tracking branch 'origin/eddie/script_from_wire' into xc7mux
Diffstat (limited to 'tests')
-rw-r--r--tests/various/script.ys17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/various/script.ys b/tests/various/script.ys
new file mode 100644
index 000000000..6044ad9b3
--- /dev/null
+++ b/tests/various/script.ys
@@ -0,0 +1,17 @@
+read_verilog -formal <<EOT
+ module top;
+ foo bar();
+ foo asdf();
+ winnie the_pooh();
+
+ wire [1023:0] _RUNME0 = "select -assert-count 2 t:foo";
+ wire [1023:0] _RUNME1 = "select -assert-count 1 t:winnie";
+ wire [1023:0] _DELETE = "delete c:bar";
+ endmodule
+EOT
+
+script -select w:_RUNME*
+
+select w:_DELETE
+script -select
+select -assert-count 1 t:foo