diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-02 10:20:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 10:20:42 -0700 |
commit | 8455d1f4ffb942c802b65e20748e54a123e08df0 (patch) | |
tree | d669e55bec513884bbb28cd3a18f92702784f20f /tests | |
parent | 0447794c51ce1b77c2bd846ad5c09637f42f8612 (diff) | |
parent | 81a717e9b767792f64535757f905a5061c627fbd (diff) | |
download | yosys-8455d1f4ffb942c802b65e20748e54a123e08df0.tar.gz yosys-8455d1f4ffb942c802b65e20748e54a123e08df0.tar.bz2 yosys-8455d1f4ffb942c802b65e20748e54a123e08df0.zip |
Merge pull request #1150 from YosysHQ/eddie/script_from_wire
Add "script -select [selection]" to allow commands to be taken from wires
Diffstat (limited to 'tests')
-rw-r--r-- | tests/various/script.ys | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/various/script.ys b/tests/various/script.ys new file mode 100644 index 000000000..66b7b5caa --- /dev/null +++ b/tests/various/script.ys @@ -0,0 +1,20 @@ +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"; + endmodule + + module other; + wire [1023:0] _DELETE = "cd; delete c:bar"; + endmodule +EOT + +script -scriptwire w:_RUNME* + +select w:_DELETE +script -scriptwire +select -assert-count 1 t:foo |