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.
Sorry if this question has been answered before but my search didn't reveal anything. I am having trouble with the following lines in my script:
ocnWaveformTool( 'wavescan )
simulator( 'spectre )
;frequency of the sine wave input [Hz]
freq = 2
printf("Frequency: %L\n", freq)
tduration = 1*(1/freq)
printf("Duration: %L\n", tduration)
The output of the file is:
I think that when I calculate tduration using (1/freq), it fails to get the value of "freq". If I replace "freq" with its numeric value 2, then duration is 0.5 as expected.
In a related note, Cadence also complains when I try to use the following code:
analysis('tran ?start "0" ?stop tduration)
But if I replace tduration with its numeric value, the analysis runs fine.
Is there some special way to access the values of variables in Ocean that I'm not aware of?
Two things I should mention:
(i) If I declare all my variables as design variables and use VAR(""), there are no problems whatsoever. However, this seems like an excessive and tedious solution.
(ii) I am saving my script as an .ocn file and then typing Load("FileName.ocn") in the CIW to run the script. Not sure if this has any bearing on the current situation.
Any advice is appreciated!
The problem appears to be that you are performing integer division in your code, hence 1/2 yields 0. You can force your hand by doing something like 1.0/freq - this should solve your problem here.
I have not looked into your second issue, but I see that the start is "0" and the tduration is just 1e-3, so perhaps you could try a string for the second argument, e.g. sprintf(nil "%g" tduration) ?
sprintf(nil "%g" tduration)
Hope this helps!