Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run Synopsys ICC commands with a button press of my GUI build with TCL/TK.

621 views
Skip to first unread message

Milind Priyadarshi

unread,
Jan 8, 2016, 1:10:20 AM1/8/16
to
Hello All,

I want to execute a Synopsys ICC commmands : "gui_set_flat_hierarchy_color -color 8" from a button press with the help of a TCL/TK script.
The script is as follows:

proc push_button {} {
gui_set_flat_hierarchy_color -color 8
}
button .but -text "Push Me" -command "push_button"
pack .but

Also when i load "package require Tk" from icc shell, it shows cant find package.

Pls help.

Olivier

unread,
Jan 8, 2016, 5:49:42 AM1/8/16
to

>
> Also when i load "package require Tk" from icc shell, it shows cant find package.
>
> Pls help.

Probably the library is not "Tk", but has another name something as "icc::tk", "blabla_tk", most of the time Tcl/Tk is superseded by another structure in those EDA application.

Olivier.

Milind Priyadarshi

unread,
Jan 9, 2016, 4:08:13 AM1/9/16
to
Thank you sir,,

But still my questions remians, how to load tk in icc compiler tool of synopsys???

Olivier

unread,
Jan 9, 2016, 5:01:19 AM1/9/16
to

>
> But still my questions remians, how to load tk in icc compiler tool of synopsys???

I think you will find more answer by Synopsys ? There are not a lot of ICC here.

Olivier.

Milind Priyadarshi

unread,
Jan 11, 2016, 1:29:06 AM1/11/16
to
In simple words , i want to add Tk package to synopsys tool..

Olivier

unread,
Jan 11, 2016, 3:18:39 AM1/11/16
to

>
> In simple words , i want to add Tk package to synopsys tool..

So a simple answer ( ;-) ) : Some tools of Synopsys, as CosmosScope, have embedded a language names AIM a superset of Tcl/Tk, which contains Tk of course. It embeds all what many want to add to Tcl/Tk : graphs, vectors, matrix, network, ... but not free. Maybe it is already available in your environment ?

Olivier

Milind Priyadarshi

unread,
Jan 11, 2016, 3:42:46 AM1/11/16
to
Hello sir,

After i start GUI from icc_shell, "package require Tk" command shows 8.4. So it means Tk is there. But when i execute the following script :

#!/opt//opt/ActiveTcl-8.6/lib/libtk8.6.a
package require Tk

proc push_button {} {
exec gui_set_flat_hierarchy_color -color 8 # This is ICC synopsys command

}
button .but -text "Push Me" -command "push_button"
pack .but

it shows the following error :

couldn't execute "gui_set_flat_hierarchy_color": permission denied
couldn't execute "gui_set_flat_hierarchy_color": permission denied
while executing
"exec gui_set_flat_hierarchy_color -color 8"
(procedure "push_button" line 2)
invoked from within
"push_button"
invoked from within
".but invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .but"
(command bound to event)

Milind Priyadarshi

unread,
Jan 11, 2016, 3:47:25 AM1/11/16
to
I mean i am synopsys tool is accepting the commands, but why am i not getting permission to execute the commands?

David Zolli - Kroc

unread,
Jan 11, 2016, 4:23:30 AM1/11/16
to
As I wrote in the other thread you started, according what I read there: https://www.reddit.com/r/Tcl/comments/3iazks/how_to_create_gui_in_pure_tcl_not_for_unix_shell/ Tk is already loaded in Synopsys, but you're not allowed to use the main Tk window (.).

This should work for you:

toplevel .vladsTop
button .vladsTop.vladsButton -text "Press This Button" -command {tk_messageBox -message "WORKING"}
pack .vladsTop.vladsButton

--
David

Milind Priyadarshi

unread,
Jan 12, 2016, 1:45:58 AM1/12/16
to
Thank you sir, this is working perfectly with Synopsys tool.
0 new messages