3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +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
commit 8455d1f4ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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