Yes, Cadence Design Systems provides tools for electronic design automation (EDA), and they use several scripting and programming languages to interact with and customize their tools. The primary language for Cadence environments is SKILL, which is a proprietary scripting language designed by Cadence specifically for their tools.
What is SKILL in Cadence?
SKILL is a Lisp-like programming language used in Cadence tools. It is widely used to automate tasks, create custom utilities, manipulate layouts, analyze designs, and perform complex operations within Cadence's design platforms (such as Virtuoso, Allegro, and other tools). If you are using Cadence, SKILL is the go-to language for advanced customization and scripting.
Here are the key aspects of SKILL:
Key Characteristics of SKILL:
-
Lisp-Based Syntax:
- SKILL is derived from Lisp, meaning it uses many Lisp concepts and syntax, such as parentheses around function calls:
(function arg1 arg2 ...).
-
Integration with Cadence Tools:
- SKILL is tightly integrated with Cadence tools, enabling users to script and manipulate the database for custom design tasks and environments.
- It can be used for tasks like layout generation, schematic manipulation, design rule checking (DRC), parameterized cell (PCell) creation, and more.
-
Rapid Prototyping:
- SKILL allows you to quickly write small scripts to automate tasks that might otherwise require significant manual effort.
-
SKILL++:
- A newer object-oriented extension of SKILL, called SKILL++, adds modern programming concepts while maintaining backward compatibility.
-
Database Operations:
- SKILL scripts can directly interact with the Cadence database (CDB) and OpenAccess (OA) to manipulate design elements.
-
Event Handling and Customization:
- You can use SKILL to build custom GUIs, bind scripts to menu items, and control tool behavior dynamically.
What Can You Do with SKILL?
Here are some typical use cases of SKILL in Cadence tools, especially within the Virtuoso environment:
-
Schematic Automation:
- Create and manipulate schematics programmatically.
- Automate repetitive tasks like labeling, copying circuit elements, setting properties, etc.
-
Layout Automation:
- Generate automated parameterized layouts (PCell generation).
- Align or arrange layout geometries.
- Perform rule-based placement or create custom layout utilities.
-
Integration Scripts:
- Build scripts to integrate Cadence with external data formats or processes.
-
Design Rule Checking (DRC) Customization:
- Write custom design rule checking scripts for layout verification.
-
Data Extraction:
- Extract information about netlists, layers, pins, etc., from a design in order to analyze or produce reports.
-
GUI Customization:
- Add custom menu items to Cadence tools to extend their functionality.
Sample SKILL Code:
Here’s a simple SKILL script to print "Hello, World!" in the Cadence log window:
;; Print "Hello, World!" to the Cadence CIW
(progn
(println "Hello, World!")
)
Example: Automating a Layout Task
This script moves all shapes in a specified layout layer by an offset (dx, dy):
procedure(moveLayerShapes(cellView layer dx dy)
let((shapes)
shapes = dbGetTrueOverlaps(cellView layer)
foreach(shape shapes
dbMoveShape(shape dx dy)
) ; end foreach
) ; end let
)
The function moveLayerShapes takes a layout view (cellView), a layer, and an offset (dx, dy). It moves all the shapes in the specified layer by the given offset.
Learning SKILL:
If you're new to SKILL, here are some recommendations to get started:
-
Cadence Documentation:
- Refer to the SKILL Reference Manual provided in Cadence's installation directory (
virtuoso.help or application help).
- The document includes syntax, examples, and APIs specifically tailored to your Cadence tool.
-
Online Tutorials:
- Search for online guides, such as SKILL programming tutorials or Lisp-based scripting tutorials.
-
Cadence Community Forum:
-
Experiment and Practice:
- Use Cadence’s Command Interpreter Window (CIW) to interactively try SKILL commands and test scripts.
SKILL's Role in Cadence Tools:
Here are some Cadence tools where SKILL is heavily used:
-
Virtuoso IC Layout and Schematic Editor:
SKILL scripts allow automation of tasks (e.g., generating layouts, manipulating schematics, running custom checks).
-
Allegro PCB Design:
- SKILL is used to automate PCB layout tasks.
-
Assura and Calibre Integration:
- Automation scripts can be written to execute and manage verification flows (DRC, LVS, etc.).
-
Analog Design Environment (ADE):
- SKILL can be used to customize the ADE environment for circuit simulations and results processing.
SKILL vs Other Cadence Scripting Tools
While SKILL is the primary scripting tool, Cadence also supports:
-
TCL (Tool Command Language):
Some Cadence tools (like Innovus for place-and-route) prefer TCL scripting over SKILL.
-
Other Open Languages:
You can call Python or Shell Scripts externally to work alongside Cadence tools (though less tightly integrated than SKILL).
Concluding Thoughts:
If you'd like specific SKILL code examples or help with a Cadence-related task, feel free to provide details! SKILL programming can unlock the full potential of automation and customization in your design process.