Xilinx / RapidWright

Build Customized FPGA Implementations for Vivado
http://www.rapidwright.io
Other
284 stars 109 forks source link

Getting the "tied value" of a node #32

Closed daveshah1 closed 5 years ago

daveshah1 commented 5 years ago

If you click on a VCC or GND node in Vivado, a "Tied value" item appears in the property pane thus: Screenshot from 2019-05-29 16-35-27

Would it be possible to add a function in RapidWright to get this (if there isn't one already that I've missed?) For now it seems like looking for "VCC_WIRE" or "GND_WIRE" in the node name should work, but this doesn't feel like the cleanest solution.

clavin-xlnx commented 5 years ago

Yes, this is a good idea. These attributes also show up using the report_property [get_nodes <node>] Tcl command with attributes IS_GND and IS_VCC. I'm working on the 2019.1.0 RapidWright release now and I will update the device database files to include this information.

daveshah1 commented 5 years ago

I see that Node.isTiedToGnd() and Node.isTiedToVcc() functions have been added in 2019.1 and are working for me. Thanks!