Posts

Showing posts with the label cadence design systems

You Want to Name Wires After Your Instance. How?

Image
The video shows an example of an incorrect application (since only one instance name is used - you have to apply the shortcut on a per-instance basis) and then the right one. Click on the image to see it in its original size. Why use this? It's a time-saver for the case of having two DUTs in your test-bench for the sake of comparison. Also, sometimes you have two blocks in your design that are identical, but still need unique controls - for register-bits, etc. You can select some of the labels - no need to select all of them. Find this one and more at  https://github.com/ananthchellappa/SKILL

What Should You Do to Get the Most Out of Your Time and Resources (Simulations)

Image
If you haven't checked out Greg Wilson's presentation , spend 15 minutes on that. It's well worth it. Philosophy Think global, act local Do your top-level sim from day 1. This is the agile methodology. Use simplified views for cells to ”act local” (This top-level approach concept was from a Chinese design manager from NXP-Freescale. Same guy who used to advise making every cell's dimensions multiples of the digital standard-cell, to enable super compact layouts) Block-level sim should have only one Design Under Test (DUT). Don’t ”verify” hookup in a ”block-level sim”. That should always use the actual hookup — i.e., full-chip, with unneeded cells bound-to-open in the Hierarchy Editor (yes, deactivation (SHlFT—DEL) is found to be necessary because of Cadence limitations —slowdown with a large design) Keep thinking flexible. It’s okay to admit a past workflow was inferior and embrace new methodology. It takes moral courage Spectre Use spectre as much as possible (i.e., av...

Be the Chief Operations Officer of Your Group - Watch License Costs

Image
You've heard it before - we budget for the future based on the past. But, do we ask why past usage was so high? Ever logged in the next day to pick up where you left off and found a schematic window in Edit mode - yup, feel guilty! But, going forward, you let the friendly auto-make-read-only daemon come to your rescue. Any schematic or symbol view that's not in read-only mode, will (if necessary), be saved and the changed to Read-Only if it's been more than five minutes since the last edit. Get it here : https://github.com/ananthchellappa/SKILL/blob/main/utils/auto_RO.il

Getting a Nicer View from Your Aging (Reliability) Simulation from Assembler

Image
https://github.com/ananthchellappa/python/blob/master/cadence/transpose_age_CSV You're stuck with the Detail view.. when you run Reliability.. What I asked Cadence: Ideally, we would like to see results in the format Measure fresh stress aged (order not important, fresh, aged, stress also ok) out1 val1 val2 val3 etc But, this is not possible. However, if Detail Transpose worked, then it is trivial to export CSV and use Excel to get the desired view. But, this currently not possible because the stress test values are not showing And chatGPT I am getting CSV output from a tool in the following format: col1_name, col2_name, Output,col3_name, col4_name, etc name1,nameA,out_name1,something,value_name11,.. name1,nameA,out_name2,something,value_name21,... name1,nameA,out_name3,something,value_name31,... .... name1,nameA,out_nameN,something,value_nameN1,... name2,nameA,out_name1,something,value_name12,... .... name2,nameA,out_nameN,something,value_nameN2,... name3,nameB,out_name1,som...

Speeding Up Your Transient Noise Simulation in Spectre (Hint: Dyn Param : isnoisy)

Image
When transient noise is enabled, the simulation runs much slower. My question is, since there may be startup phases that the circuit needs to go through to arrive at the state in which the transient noise analysis is useful, is it possible to tell spectre to introduce the transient noise starting at a specific time? For example, simulation runs till 10 us. Begin transient noise at 5 us. Yes, you just use the Dynamic Parameter feature available in the Analyses form. Thank you Udit. What about the Cadence Online Support Search and Gen AI not offering up this solution when one searches for "is it possible to introduce transient noise into spectre simulation starting from certain timepoint?" Ans: Till fixed, try different wordings. In this case, "how to introduce transient noise during specific time window" *does* serve up the solution

Don't Miss Out! Spectre Version 25 Is Available

Image
Go to downloads.cadence.com for the latest Spectre - v25!

How Are You Supposed to Know to Do "U1E0D" Instead of "Ctrl Alt d" ?

Image
This can be a frustrating one. But, establish a best practice in your group: When a bindkey doesn't work, and the Bindkey Editor shows that it *is* defined as you expect, then, create a NEW bindkey using the bindkey editor - by clicking on the '+' button. Now, in the field where you enter what the bindkey is, you press the key combination of interest and see what you get. My friend's keyboard sends <Key>sacute to Cadence when he does CTRL ALT <Key>s . Go figure. Same keyboard also sends <Key>U1E0D when he does CTRL ALT <Key>d .  But, now that he know this, he can add the needed workaround lines in his file that he loads through his cdsinit https://github.com/ananthchellappa/SKILL

I Want to Save Operating Point Info At Certain Time Points of a Transient Run In Spectre. How to Fill Out the ADE Transient Options Form?

Image
You won't find it written down anywhere, but, you HAVE to have the box checked for "Save Final Op Pt". How are you supposed to know that? IDK. Why Cadence can't after 30 or 40 years give you a tooltip when you enter value into the infotimes field? IDK. So, if you're running to 10 us and you want to be able to look at OP info at 1 us (say) and you DON'T care about final OP (at 10 us), you still have to check that box and enter 1 us in the infotimes field. And you're good to go. Sim done, go to Results > Annotate > Transient Operating Point Info and choose the correct time in the resulting dialog.

A Bindkey to Move the Selected Trace to a New Strip in ViVA

Image
The old way hiSetBindKey( "vivaGraph" "Shift <key>m" "_ddtExecuteAction(awvGetCurrentWindow()->vivaSession \"moveTracesNewStrip\")") And the new way Click to copy Copied!

Is There a Workaround for the Case of a PDK Not Supporting Split Resistor Import Correctly?

Image
Never had a problem with TSMC, but UMC was always a nightmare, as Sunny of Qorvo might attest. Thankfully, Sandeep's SKILL coding skills came to the rescue. Get this file here . You select all the newly imported resistors, do CTRL-M to go back into grouped mode, and then fire the weapon. Problem : in the PDK I was in, import in split mode brought each segment in with W/N (N = number of stripes). In addition, a common problem in most PDKs is that segments brought in in split mode (that is, when the series-factors setting was set to include the variable (in the CDF for the primitive) that refers to (in this case, stripes, or segments - "ser")) are not linked to the schematic instance (cross-selection not working) when user returns to parallel mode (CTRL-M if you have this script). You will see that the R value hasn't been updated. That led to 46926230: As the video shows, the R value is still incorrect.  Is there a simple workaround for this? Some command we can run to...

TRW and the Wrong Way - Changing a Property on All Instances of a Cell

Image
Properties usually apply to primitives (MOSFET, R, C, etc). Your schematic has a few FETs making up a current mirror (say). You want to increase the L of all of those making up the mirror. What's the easiest (right) way and what's the common (wrong) way? Wrong way Assume that the type of FETs (cell from the PDK) making up the diode and output sources are used ONLY in the mirror.  You could select one, press q to bring up the property form and then change to "All" and then make the change. Cost - you'll have to change the "All" back to "only current" - else it's going to work against you when you don't want it to, later.. Another wrong way - select all (in this case, unnecessary, but necessary if there are other components besides the mirror using that primitive) - and use the properties form with the "Apply to" changed to "All selected" The Right Way Install my bindkeys so that you have ALT+SHIFT+Q available to apply...

Setting Pin Test Height to Auto by Default (cdsinit/cdsenv)

Image
Somehow, they missed this one. Luckily, you can do envSetVal("layout" "pinTextAutoHeight" 'boolean t) ; in your .cdsinit or, in your .cdsenv: layout pinTextAutoHeight ‘boolean t Case Abstract Using save defaults of the modified variables, one can find out the settings needed for custom pin layer, size, etc. However, I couldn't find what needs to be set for this one to be "checked". Please share if you can find out how it is to be done through envSetVal (preferred over cdsenv because I don't know if local (proj dir) .cdsenv will be loaded like local .cdsinit).

See if Your Oscillator Stops - By Capturing Last Time Point in the Frequency Waveform

Image
You really wish they had something easier on the eyes, but they done. This is the way to get the x-value of the last point in the waveform. Click to copy Copied!

What Happened to Options > Layout XL in IC23?

Image
Ans : It's in Options > Connectivity

Why Isn't Your Layout Bindkey Working in Layout XL?

Unfortunately, the application type, or name, is "Virtuoso XL". So you might need an additional definition: hiSetBindKey("Layout" "Ctrl <Key>m" "toglImportSplitRseg()") hiSetBindKey("Virtuoso XL" "Ctrl <Key>m" "toglImportSplitRseg()") How do you get the Application type? hiGetAppType(window(enclosed_number))   When you see 12(23) in the lower left corner of a window, use 23 in this command in the CIW

Help - I Get Nothing Out of a Block and a Signal Connected to that Block is Not Available for Plotting

Image
A classic case of having an empty schematic view. You used APS, didn't you? It throws away voltage sources that are connected to nothing. So, check the schematic. Maybe you meant to use the veriloga view.

When the Regular Route to Monte-Carlo Leaves You with Too Many Dead (Crashed) Runs

Image
That's when you use the (thanks Amit S.) Reference Histories approach: Do a run with the setup you want - default Monte-Carlo and kill it Name the run - for your convenience Now, click the Gear icon (1) that's on the same row as the Play and Stop buttons (to the right of this will be "History") In the resulting dialog check the two checkboxes on the top-left (Use reference results, use reference netlist) Now, to the right of the History drop-down, you have an icon that resembles a lock (2). Click it (which unlocks it and make is resemble the familar pencil that represents an "Edit" button) and now you can change the run name from MonteCarlo (3). Put in a meaningful name Hit the (notice how it's turned blue) run button How I feel, using Cadence

Resources Saving Hacks You Don't Want to Miss Out On When Running Monte-Carlo

Image
BLUF : Ensure you turn OFF (uncheck the checkbox) saving of final OP point (if your MC involves transient analysis) and ensure the Simulation > Options > Analog > Check does not have "both" or "file" for destination (disk usage) What's bad (or good) about the default setup? It saves the final Operating Point (OP) in a transient sim It writes assert information to the log file (note, you need it in the sqldb for the Device Checks to be useful) Now, given that the Monte Carlo setup is so nice as to NOT save all (but only explicitly selected) waveforms (even though the setup in ADE says to Save All) unless told to, why can't it do the same with the mostly (in MC) information that's generated from the default setup (see above two bullets)

When You Desperately Need the Numeric ADE Outputs in Selectable Text

Image
You've just done a simulation using the Assembler Debug Environment (the good old ADE-L) and now you want to capture the numbers as text so you can put them in a spreadsheet, or whatever.. In ADE, Outputs > Export.. dump as a CSV file Then, in a terminal: perl -n -e 'if( /^([^,]+),expr,([^,]+),t,.+,t,t?$/ ){ $op = $1; $opp = $1; $ex = $2; $op =~ s/\s/__/g; print "$op = $ex\n"; print q{printf("} . $opp . q{,%s\n",aelSuffixNotation(}.$op.q{))},"\n"; }' /tmp/desired_outs.csv > /tmp/outputs.il After that, you just (in your CIW) loadi "/tmp/outputs.il" Let's break all of that down: The regex in perl is looking for expressions (you don't want signals, etc) : "expr", but it's also looking for those that are set to "Yes, plot".

Don't Miss Out - IC 25.1 Is Available

Image
I can't wait to see what's new and what's been broken.