mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-08 18:31:51 +00:00
Add test
This commit is contained in:
parent
edc3780723
commit
369652d4b9
16
tests/techmap/techmap_replace.ys
Normal file
16
tests/techmap/techmap_replace.ys
Normal file
|
@ -0,0 +1,16 @@
|
|||
read_verilog <<EOT
|
||||
module sub(input i, output o, input j);
|
||||
foobar _TECHMAP_REPLACE_(i, o, j);
|
||||
wire _TECHMAP_REPLACE_.asdf = i ;
|
||||
endmodule
|
||||
EOT
|
||||
design -stash techmap
|
||||
|
||||
read_verilog <<EOT
|
||||
module top(input i, output o);
|
||||
sub s0(i, o);
|
||||
endmodule
|
||||
EOT
|
||||
|
||||
techmap -map %techmap
|
||||
select -assert-any w:s0.asdf
|
Loading…
Reference in a new issue