Cadence® system design and verification solutions, integrated under our System Development Suite, provide the simulation, acceleration, emulation, and management capabilities.
Verification 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.
The Cadence Academic Network helps build strong relationships between academia and industry, and promotes the proliferation of leading-edge technologies and methodologies at universities renowned for their engineering and design excellence.
Participate in CDNLive
A huge knowledge exchange platform for academia to network with industry. We are looking for academic speakers to talk about their research to the industry attendees at the Academic Track at CDNLive EMEA and Silicon Valley.
Come & Meet Us @ Events
A huge knowledge exchange platform for academia. We are looking for academic speakers to talk about their research to industry attendees.
Americas University Software Program
Join the 250+ qualified Americas member universities who have already incorporated Cadence EDA software into their classrooms and academic research projects.
EMEA University Software Program
In EMEA, Cadence works with EUROPRACTICE to ensure cost-effective availability of our extensive electronic design automation (EDA) tools for non-commercial activities.
Apply Now For Jobs
If you are a recent college graduate or a student looking for internship. Visit our exclusive job search page for interns and recent college graduate jobs.
Cadence is a Great Place to do great work
Learn more about our internship program and visit our careers page to do meaningful work and make a great impact.
Get the most out of your investment in Cadence technologies through a wide range of training offerings.
Overview All Courses Asia Pacific EMEANorth America
Instructor-led training [ILT] are live classes that are offered in our state-of-the-art classrooms at our worldwide training centers, at your site, or as a Virtual classroom.
Online Training is delivered over the web to let you proceed at your own pace, anytime and anywhere.
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 want to a skill function that can return multiple values.
Could anybody please tell how it can be done.
Looks like you might be used to Perl, but one way to do this in SKILL is to return a list of values, but you would have to assign them to variables outside of the function call in a more manual way. Here's a brief outline:
procedure(skillfunction(x y z)
let( (ret1 ret2)
;; do some function on these parameters
ret1 = x + 2*y
ret2 = y - z
;; this next line is the return value of the function
retlist = skillfunction(10 20 5)
a = car(retlist)
b = cadr(retlist)
Something like that. Function arguments are separated by whitespace. If you have more than a couple of variables then you might consider a more general approach, for example using a table structure for storage in named slots.
Hopefully this is helpful to you.
In reply to skillUser:
Returning multiple values as a list is a clean way to do this, but you can also use the destructuringBind function (new in IC615) to destructure the list contents and assign to variables (local to the scope of the destructuringBind function). This example uses the function that Lawrence wrote above to illustrate this:
destructuringBind((a b) skillfunction(10 20 5) printf("a=%L b=%L\n" a b))
You can use this with other interesting list structures - for example, imagine that you have an instance id from the database - you can do:
area=destructuringBind(((llx lly) (urx ury)) instId~>bBox ; compute the area of the bBox (urx-llx)*(ury-lly))
Cool, eh? (OK, so I'm easily impressed)
In reply to Andrew Beckett:
Thanks for the sharing.
Dear Lawrence & Andrew,
Thanks a lot.
Andrew: It is really nice. But is this feature available in IC5141.
In reply to RFStuff:
In IC5141 you could use the following for the simple (non-nested list) case:
(defmacro CCFsimpleMultiAssign (listOfVars listValue @rest body) `(apply (lambda ,listOfVars ,@body) ,listValue) )
and then use CCFsimpleMultiAssign instead of destructuringBind in my first example. This won't work for the second bBox example - it would need a more complex macro (I threw the above together pretty quickly).
destructuringBind is wicked magic that should be studied in IC615. It is very useful, especially since you can return keyed values, optional values and @rest values.
Before IC615, you could return the values as a disembodied property list (DPL). It is a list of key value pairs that begins with a nil:
list( nil key1 "value1" key2 2.0 key3 list( "Value" "number" 3 ) )
myDPL = callingMyFunction(....)
myDPL->key1 => "value1"
myDPL->key2 => 2.0
myDPL->key3 => list("Value" "number" 3)
In reply to theopaone:
You know you are in trouble if you dream in SKILL.
In my last post, I made an error and realized it last night. The key values in a DPL must be symbols. In the example, they are variables and the code may fail but will definately not work the way it was written. The DPL should be written as:
list( nil 'key1 "value1" 'key2 2.0 'key3 list( "Value" "number" 3 ) )
The keys must be quoted to be symbols.
In reply to B Bruekers:
Which IC version are you using? I just checked this in IC617. I get this:
INFO (VAR5): Unrecognized global variables:WARN GLOB (VAR8): areaINFO (VAR0): set in Scheme: in function/file forumDest.ils, line 2WARN GLOB (VAR8): bboxINFO (VAR0): used in Scheme: in function/file forumDest.ils, line 2INFO (VAR0): set in Scheme: in function/file forumDest.ils, line 1
If I surround with a let (for area and bbox) I then get:
UNUSED VAR (Unused): forumDest.ils, line 1 : variable area does not appear to be referenced. (assigned only)
If I then put println(area) at the end of the let, I get no warnings.
From a quick check, it works in IC616 ISR5 onwards - before that I get similar messages to you. The rule for SKILL Lint to deal with destructuringBind hadn't been correctly added until then, by the looks of things.