1
0
mirror of synced 2026-05-04 15:17:27 +00:00
Files
YosysHQ.yosys/tests/various/tcl_apis.tcl
2024-11-04 16:18:50 +01:00

17 lines
358 B
Tcl

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