mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-28 23:17:57 +00:00
Test new Tcl methods
This commit is contained in:
parent
cba9460cba
commit
23922faecc
3 changed files with 28 additions and 0 deletions
16
tests/various/tcl_apis.tcl
Normal file
16
tests/various/tcl_apis.tcl
Normal file
|
@ -0,0 +1,16 @@
|
|||
yosys read_verilog tcl_apis.v
|
||||
|
||||
if {[rtlil::get_attr -string -mod top foo] != "bar"} {
|
||||
error "bad top module attribute"
|
||||
}
|
||||
|
||||
if {[rtlil::get_attr -bool top w dont_touch] != 1} {
|
||||
error "bad w wire attribute"
|
||||
}
|
||||
|
||||
if {[rtlil::get_param -int top inst PARAM] != 4} {
|
||||
error "bad parameter"
|
||||
}
|
||||
|
||||
rtlil::set_attr -true -mod top marked
|
||||
yosys select -assert-any A:marked
|
Loading…
Add table
Add a link
Reference in a new issue