Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top