Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: TCL/TK with Skill
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
stanley j
Posts: 0
Online: User is Offline
9/24/2004 2:18 AM  
I just started writing Skill programs on ConceptHDL. I am looking for some help on how to create/use UI forms. Any suggestion as to where should I start? I am thinking to do the UI forms in TCL/Tk & try and use the forms inside skill program.
skyhawk
Posts: 0
Online: User is Offline
9/24/2004 5:44 AM  
Stanley,

Could you provide a brief description of what product the forms in SKILL you reference apply? This topic may move to either the Allegro or Concept forums depending on its applicability.
Andy_Kulik
Posts: 0
Online: User is Offline
9/24/2004 8:07 AM  
Not sure what your question is, but it is very easy to use tcl/tk within skill and therefore other cdn apps such as Allegro DE HDL (formerly known as ConceptHDL). contact me directly if you like a copy of the white paper I presented at ICU2003.

Below is a very simple example of an tcl app that performs zoom functions in concept. Note that you need to install tcl/tk. you can get it at www.tcltk.com

=======================================================
;;set ConceptSKILL global variables
verbose = cnSetRunOptions(?result cnOUT_VERBOSE ?display cnOUT_VERBOSE)
silent = cnSetRunOptions(?result cnOUT_SILENT ?display cnOUT_SILENT)

(defun tclInterp (childID data)
;; send the command you recieved to concepthdl
cnSendCommand(cnhandle, data)
;; send the command back to tcl app
;; this is just to see that the data got to skill
ipcWriteProcess(childID data)

)
;; add the dfII/bin path to the path environment variable
;; otherwise the ipc server will not launch when ipcBeginProcess is invoked.
sprintf( dfii_bin_path ""%s\\tools\\dfII\\bin"" getShellEnvVar(""CDSROOT""))
setShellEnvVar( sprintf(nil ""path=%s;%s"" getShellEnvVar(""path"") , dfii_bin_path ) )

cnhandle = cnmpsImport()
tclp = ipcBeginProcess(""wish tcl_skill.tcl"" """" 'tclInterp )

=========================================================

Here is the tcl program (name it tcl_skill.tcl
otrherwise the ipcBeginProcess call will do nothing):

=========================================================

#!/usr/bin/sh
#\
exec wish ""$0"" ""$@""
# prog below used to send data to skill on stdout
proc TCLSkill_Send {command} {
set list [file channels]
puts stdout $command
flush stdout
}
# prog used to display recieved data
proc TCLSkill_Recv {} {
set response [read stdin]
while {! [info complete $response]} {
append response [read stdin]
}
# print the reponse in the text widget
.t insert end ""R> $response""
.t yview moveto 1

}
button .b1 -text ""zoom in"" -command [list TCLSkill_Send ""zoom in""]
button .b2 -text ""zoom out"" -command [list TCLSkill_Send ""zoom out""]
button .b3 -text ""zoom fit"" -command [list TCLSkill_Send ""zoom fit""]
grid .b1 -in . -row 0 -column 0 -sticky nswe -padx 10 -pady 10
grid .b2 -in . -row 1 -column 0 -sticky nswe -padx 10 -pady 10
grid .b3 -in . -row 2 -column 0 -sticky nswe -padx 10 -pady 10
text .t -width 50 -height 10
grid .t -in . -row 3 -column 0 -sticky nswe
update
update idletasks

# configure stdin channel so we can recieve data and deal with it to....
fconfigure stdin -buffering none -blocking 0 -translation auto
fileevent stdin readable ""TCLSkill_Recv""
wm title . ""TCL/Skill""

Hope this helps
Andy


Message was edited by: Andy_Kulik
stanley j
Posts: 0
Online: User is Offline
9/24/2004 9:15 PM  
I am talking about ConceptHDL
stanley j
Posts: 0
Online: User is Offline
9/24/2004 9:37 PM  
Hi Andy,

Thanks for your reply. It gives me a good starting point for me to learn TCL/TK interfacing with Skill for CONCEPTHDL. I can't find your email id....Could you please attach the white paper in your reply. There is ""Attach Files"" button.

Thanks for your help.

Stanley
Andy_Kulik
Posts: 0
Online: User is Offline
9/26/2004 10:00 AM  
Hi Stanley,

I attached the paper, slides and sample project I used.
Let me know if you need anything else. I am more than happy to help out.

Andy

PS: Just noticed that the zip file was corrupted after uploading it. MAy be Cadence support can check their upload functions. The paper has my contact info in case you need the example project.......


Message was edited by: Andy_Kulik
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > PCB Design > TCL/TK with Skill


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.