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:
commit
8455d1f4ff
3 changed files with 60 additions and 8 deletions
20
tests/various/script.ys
Normal file
20
tests/various/script.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue