How to save PrimeTime command output into a variable in TCL?

Status
Not open for further replies.

majd229

Member level 2
Joined
Jul 21, 2017
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
392
Hello,
I've used a few EDA tools with their TCL commanders in the past and now exploring PrimeTime.... the regular method seems to not work, not sure why. Can someone explain what's happening?

eg:

% get_pins -filter {is_clock_pin}
{"instance_x/pinX", "instance_y/pinY"}

#initialize p as 0...
% set p 0

% foreach p [get_pins -filter {is_clock_pin}] { puts $p }
_sel244


im trying to print each clock pin in that array.. however all i get is "_sel244". Not sure what this means. Can someone help?

Thanks.
 

use "echo [get_object_name $p]"
 

use "echo [get_object_name $p]"

Thank you.

foreach p [get_pins -filter {is_clock_pin}] { puts "[get_object_name $p]\n" }
instX/pinX instX/pinY

They are now printed as 1 single variable, however if I do this command:
% get_pins -filter {is_clock_pin}
{"instX/pinX", "instX/pinY"}


I get an array structure thats comma separated, how can i have my $p loop through each single value inside the output instead of considering the whole output as 1 value?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…