Cadence® system design and verification solutions, integrated under our System Development Suite, provide the simulation, acceleration, emulation, and management capabilities.
System Development Suite Related Products A-Z
Cadence® digital design and signoff solutions provide a fast path to design closure and better predictability, helping you meet your power, performance, and area (PPA) targets.
Full-Flow Digital Solution Related Products A-Z
Cadence® custom, analog, and RF design solutions can help you save time by automating many routine tasks, from block-level and mixed-signal simulation to routing and library characterization.
Overview Related Products A-Z
Driving efficiency and accuracy in advanced packaging, system planning, and multi-fabric interoperability, Cadence® package implementation products deliver the automation and accuracy.
Cadence® PCB design solutions enable shorter, more predictable design cycles with greater integration of component design and system-level simulation for a constraint-driven flow.
An open IP platform for you to customize your app-driven SoC design.
Comprehensive solutions and methodologies.
Helping you meet your broader business goals.
A global customer support infrastructure with around-the-clock help.
24/7 Support - Cadence Online Support
Locate the latest software updates, service request, technical documentation, solutions and more in your personalized environment.
Cadence offers various software services for download. This page describes our offerings, including the Allegro FREE Physical Viewer.
Get the most out of your investment in Cadence technologies through a wide range of training offerings.
This course combines our Allegro PCB Editor Basic Techniques, followed by Allegro PCB Editor Intermediate Techniques.
Virtuoso Analog Design Environment Verifier 16.7
Learn learn to perform requirements-driven analog verification using the Virtuoso ADE Verifier tool.
Exchange ideas, news, technical information, and best practices.
The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information.
It's not all about the technlogy. Here we exchange ideas on the Cadence Academic Network and other subjects of general interest.
Cadence is a leading provider of system design tools, software, IP, and services.
I have written a simple Skill function to automatically add a menu to every new schematic and layout view, based on the following thread and Cadence Tutorial for IC Skill Language Programming 3: /forums/t/17476.aspx?PageIndex=1
I load in the file containing the function definition into my .cdsinit file but the menu does not start appearing until I copy the same load statement into my CIW. Once I do that, the function works just fine and the menus show up as expected for each new window I open.
My virtuoso session does load in the function from .cdsinit file: when I enter addPlotMenu() into CIW, it gives me an error regarding usage (too few arguments), not about an undefined function, so it must be getting loaded in.
Can you help me figure out what the problem might be? I want the menus to show up without having to load in any files through CIW. My code is pasted below.
TrPlot = hiCreateMenuItem(?name 'TrMenuItemPlot?itemText "Plot"?callback "plotFunctionWrapper()")
deRegUserTriggers("schematic" nil 'addPlotMenu)deRegUserTriggers("maskLayout" nil 'addPlotMenu)
Two errors in the code:1. You missed the "hiInsertBannerMenu".2. The "deReUserTriggers" was missing one optional argument which have to be set to "nil".
See my modifications to your code:
In reply to berndfi:
Bernd (and preetgarcha),
Actually, the code was correct. The second argument is a menu trigger, and that should return a list of pulldown menus, and then it's the design editor's responsibility to insert the banner menus.
In fact doing it the way that you've proposed will lead to problems - we've had numerous issues over the years caused by inserting menus in a post install trigger - you tend to find that tools compete with each other and you don't get all the menus.
The original code works for me - the most likely issue is that there is some other code being loaded which does a deUnRegUserTriggers. A long time ago (pre-4.4.6 I think), you could only register a single menu trigger - and so sometimes various PDKs or customizations would unregister any existing triggers first themselves.
You could try adding:
at the end of your code to see if that is being called (you'll need a SKILL Development license for this to work though). You could also use deGetAppInfo("schematic") in the CIW to see whether the trigger is still registered:
(and the same for maskLayout). Report here what you find.
In reply to Andrew Beckett:
I read your initial post from the related thread after I posted my suggestion.In fact the above code form "preetgarcha" does not work for me,maybe because of the reason you described.What is expected to be the trace output, it does not show anything to me?
The trace will only show something if something is actually calling the deUnRegUserTriggers function.
What did the deGetAppInfo() show?
deGetAppInfo("schematic")->userMenuTrigList=> (trigger1 trigger2 addPlotMenu)
Can you do trace(addPlotMenu) and then open a schematic? Does it get called? One possibility is that you have a postInstallTrigger defined which customizes the menus, and this might clobber the menus added by addPlotMenu.
Thanks for the quick response. deUnRegUserTriggers does indeed get called as virtuoso starts up:
Loading /user/pgarcha/.cdsinit...Loading awv.cxt Loading cdf.cxt ||||||||deUnRegUserTriggers(...)||||||||deUnRegUserTriggers --> ...||||||||deUnRegUserTriggers(...)||||||||deUnRegUserTriggers --> ...||||||||deUnRegUserTriggers(...)||||||||deUnRegUserTriggers --> ...
deGetAppInfo("schematic)->userMenuTrigger returns _jazzUserMenuTrigger.
deGetAppInfo("schematic")->userMenuTrigList returns a list with addPlotMenu missing.
Given that I cannot modify the other files to remove the unregistering of user triggers, is there a way to register addPlotMenu again without using the CIW? As per a Cadence Training Module (Introduction to SKILL Language Programming), when the Virtuoso Design Environment starts up, it loads (1) SKILL contexts, (2) .cdsenv, and (3) .cdsinit files in order and then loads (4) other SKILL contexts in response to user activity. Is there anything in between (3) and (4) that can be modified in my local machine to achieve that?
I appreciate your help.
In reply to preetgarcha:
It might just be a case of doing your customization in the right place in the .cdsinit - presumably other stuff is being loaded after your customization which is destroying your setup. If you can reorder it, then you can define yours after the Jazz code has done its thing.
If you mean re-ordering within my local .cdsinit file, then the addPlotMenu load statement is the last one already. But if you mean we can somehow change the order of how files are loaded into the CIW, that would be very useful if I could learn how to do it.
What I understand so far is that my company's .cdsinit file loads the PDK's system.cdsinit file and then a bunch of other harmless functions after. As per the code, system.cdsinit file loads in my local .cdsinit file and then calls triggers to grab userApp, userMenu and such. This is where I believe the deUnRegUserTriggers is being called. I can ask for permission to modify the company's .cdsinit file to load in my .cdsinit file in again after the PDK's system.cdsinit file has finished its work. But I do not want to take a risk and break something in the system for this simple menu, although it will be helpful to my colleagues to plot their schematics and symbols this way. Is there any other way out by changing files local to myself?
I will be looking forward to your reply.