UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Reply

TCL suggestions... (removed blocking keywords in post title-Austin)

Highlighted
Observer
Posts: 21
Registered: ‎04-04-2013

TCL suggestions... (removed blocking keywords in post title-Austin)

[ Edited ]

so far I thought that in tcl

 

set var [f x]

 

means: evaluate f(x) and assign the returnvalue to var. Yet for some reason I get the following errormessage (see the bottom):

 

set buffer [get_sites BUFHCE_X1Y0]
BUFHCE_X1Y0
set pin [get_site_pins -of_objects $buffer -filter {DIRECTION==OUT}]
BUFHCE_X1Y0/O
set node [get_nodes -of_objects $pin]
CLK_HROW_BOT_R_X182Y26/CLK_HROW_CK_HCLK_OUT_R0
get_nets -of_objects $node
WARNING: [Vivado 12-1023] No nets matched for command 'get_nets -of_objects [get_nodes -of_objects [get_site_pins -of_objects [get_sites BUFHCE_X1Y0] -filter DIRECTION==OUT]]'.

 

How does `get_nets` know how these variables where defined? This looks like a fair amount of magic to me, where understanding it could help with unleashing the full potential of the tool.

Explorer
Posts: 176
Registered: ‎09-07-2011

Re: TCL suggestions... (removed blocking keywords in post title-Austin)

set var [f x] works like you expect.

 

The other stuff is probably Xilinx magic.    I don't think get_nets knows about your variables, but it seems to know the literal arguments passed to it.

 

Even though the get_*  commands return a  string to the console, it seems like behind the scenes Vivado maintains object meta data that we don't see.    

 

 

 

 

Xilinx Employee
Posts: 89
Registered: ‎04-24-2013

Re: TCL suggestions... (removed blocking keywords in post title-Austin)

Hi,

 

This forum post may be of interest to you.

 

https://forums.xilinx.com/t5/Vivado-TCL-Community/TCL-get-broken-in-combination-with-foreach/td-p/799063

 

Best Regards
Aidan

 

 

------------------------------------------------------------------------------------------------------------------
Please mark the Answer as "Accept as solution" if this answered your question
Give Kudos to a post which you think is helpful and may help other users
------------------------------------------------------------------------------------------------------------------