1
0
mirror of synced 2026-04-29 05:16:49 +00:00

Merge pull request #1150 from YosysHQ/eddie/script_from_wire

Add "script -select [selection]" to allow commands to be taken from wires
This commit is contained in:
Eddie Hung
2019-07-02 10:20:42 -07:00
committed by GitHub
3 changed files with 60 additions and 8 deletions

20
tests/various/script.ys Normal file
View File

@@ -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