Thursday, January 08, 2009     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: Override or hook read-only function - how?
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
shirsch
Posts: 1
Online: User is Offline
2/22/2006 11:18 AM  
This is more in the nature of a general Skill question, but this topic seems to be the most active, so forgive the intrusion.

Does anyone know if there's a means to hook or override native code function objects? For example, if I wanted to log all invocations of the various ipc* functions it would be handy to be able to place a routine of my own in the control flow, grab and log the args and then pass control to the "real" ipc routine.

All the ipc* functions show up as being read-only and any attempt at assigning a new function to the symbol results in an error.

Any input or insight will be appreciated.

Steve
AshCan
Posts: 20
Online: User is Offline
2/22/2006 1:23 PM  
Here is an example that may be useful.
The ipc356_out command is called when you select File -> Export -> IPC356 from the main Allegro menu. You want to do something a little different then the generic ipc356_out function.

First you would need to build the function you do wish to execute (some special extracta routines or specialized database reads, perhaps using a customized form UI). Let's say that you call this compiled Skill function "my_IPC_out".

You can use the axlCmdRegister utility to "create" a user-defined Allegro command or, in this case, you would use this utility to redefine the existing Allegro command.

axlCmdRegister("ipc356_out" 'my_IPC_out)

Now when you enter ipc356_out from the Allegro command line the compiled function "my_IPC_out is executed. If you want to call the custom function from the Allegro menu you could ....

axlCmdRegister("ipc356_private" 'my_IPC_out)

and then modify your Allegro menu from ....
MENUITEM "IP&C 356...", "ipc356 out"
to ....
MENUITEM "IP&C 356...", "ipc356_private"
AshCan
Posts: 20
Online: User is Offline
2/22/2006 1:25 PM  
Or you could just use:
axlCmdRegister("ipc356 out" 'my_IPC_out)
and make no Allegro menu changes.
Dave Elder
Moderator
Posts: 150
Online: User is Offline
2/22/2006 1:43 PM  
I think the function you are after is clearFnWriteProtect

However, this will not work with system functions, such as ipcBeginProcess. I doubt that you can (or would want to) hijack these commands directly.

Dave Elder
Tait Electronics
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > Override or hook read-only function - how?


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.