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: cdlinGuiDisplay inside procedure...
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
sroehrig
Posts: 3
Online: User is Offline
10/01/2007 12:39 AM  
I am trying to do a skill script for the automation of the import of CDL netlists to schematic views. For this, I open the CDLImport dialog with the skill function cdlinGuiDisplay( ) and fill it with some values processed by the script. This works fine as long as the script is just loaded and run.

In order to make the set of processed cells/netlists controlable by the user, I tried to define the whole flow as a  procedure so that the target library and source netlists can be specified as arguments.

In that case, the cdlinGuiDisplay( ) function opens the CDLImport dialog but then the procedure does not progress until the dialog is manually closed. In case it is closed by the "OK" button the CDL Import is even executed twice (once for the manual interaction and once for the script).

Can you tell me what I am doing wrong (and if there is a possibility to avoid this behaviour)?

The code looks in principal like this:

procedure( cdl2schematic( )

  ... code ...

  cdlinGuiDisplay( )
  hiiSetCurrentForm('cdlInGuiForm)
  cdlInGuiForm->paramFile->value = "/"
  _cdlInParamFileLoadCB( )
  hiFormDone( cdlInGuiForm )

  ... code ...

)

Thanks for any help in advance!
Sebastian
sroehrig
Posts: 3
Online: User is Offline
10/01/2007 2:21 AM  
Just noticed that there is a copy/paste error in the quoted code. It should say

cdlInGuiForm->paramFile->value = "[my path][my file]"

in line 7.
adbeckett
Posts: 248
Online: User is Offline
10/01/2007 4:09 AM  
The problem is that many forms in DFII are blocking - this means that any code which displays the form will block until the form is OK'd or canceled. This can be changed, but only at the time the form is created - so it isn't possible in this case.

So there are two approaches here.

1. Create the template files for "nino" and invoke that using ipcBeginProcess to do the import.
2. Write a function which will fill in the form field, and so on (i.e. everything after the cdlinGuiDisplay), and then
call this using hiRegTimer("myFunction()" 0) just before calling cdlinGuiDisplay. This means that as soon
as the toplevel returns, it will execute myFunction, which can then fill in the form and OK it.

Regards,

Andrew.
sroehrig
Posts: 3
Online: User is Offline
10/01/2007 7:14 AM  
Thanks for the quick reply! Approach #1 perfectly solves my problem. It is (of course ;-)) even better than my original approach as I did not really intend to open the GUI but did not see another solution for getting the CDL import feature to work from within the IC environment. Invoking the nino command via "system" or "csh" caused me some headaches but the ipc approach is perfect.

Just for curiosity: with approach #2, would I (the end user) still have to close the form manually? To be honest I do not understand what "as soon as the toplevel returns" means here. Does it mean as soon as the procedure in which cdlinGuiDisplay is invoked returns? I assume not, because then it would not enhance the situation ;-)

Anyway, thanks for the help! Cheers,
Sebastian
sagirameshraju
Posts: 9
Online: User is Offline
2/11/2008 8:50 PM  
As you already have the solution Iam just proposing another approach which may be more easy.
Instead of hiFormDone( cdlInGuiForm ) try using _cdlInCB()


procedure( cdl2schematic( )

... code ...

cdlinGuiDisplay( )
hiiSetCurrentForm('cdlInGuiForm)
cdlInGuiForm->paramFile->value = "/"
_cdlInParamFileLoadCB( )
[b] hiFormDone( cdlInGuiForm ) ------------> _cdlInCB() [/b]

... code ...

)

Sagi Ramesh Raju
Posting to forums is available to community members only.
Login or Register

Forums > Custom IC > Shared code - SKILL > cdlinGuiDisplay inside procedure...


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.