Quantcast
Channel: Mentor Graphics Communities : Document List - All Communities
Viewing all 299 articles
Browse latest View live

DESIGNrev scripts, a few basic templates

$
0
0

Wondering how to use DESIGNrev Tcl commands with scripts in batch mode?

 

Here are some very simple templates you can use to get started.

 

 

For command-line execution with user input:

 

#===================================

# user input from command line

if {$argc != 1} {

  puts "Error: wrong # of arguments"

  exit

}

set input [lindex $argv 0]

set L [layout create $input]

#add Tcl code here

#===================================

 

Save as a .tcl file and execute with:

 

$MGC_HOME/bin/calibredrv <filename>.tcl  <layout_filename>

 

 

 

 

For command-line execution with layout name hard-coded into the tcl script:

 

#===================================

# Use if layout name is known

set L [layout create lab2.gds]

#add tcl code here

#===================================

 

Save to a file and execute in batch mode from the command line in a terminal window with:

 

$MGC_HOME/bin/calibredrv <filename.tcl>

 

Or, if DESIGNrev is currently running, execute from the DESIGNrev Tcl shell as:

 

% source <filename.tcl>

 

 

 

For Tcl shell execution if layout is currently open in DESIGNrev:

 

#===================================

#Use if layout is currently open in DESIGNrev

set cwb [find object -class cwbWorkBench]

set L [$cwb cget -_layout]

#add tcl code here

#===================================

 

Save to a file with the .tcl extension and execute from DESIGNrev Tcl shell as:

 

% source <filename.tcl>

 

 

 

For more details and examples see the Calibre DESIGNrev Reference Manual.

 

For downloadable examples of DESIGNrev Tcl go to Supportnet, select the Downloads tab and select "Calibre_Utilities,Examples,Scripts_and_Interface_Software" under Related Downloads.

 

Content © Copyright 1995-2012 Mentor Graphics Corp, All rights reserved.

Product names are trademarks and/or ® registered trademarks of their respective owners.


Creating a Tcl script from DESIGNrev session transcript

$
0
0

Here are some steps showing how to create a Tcl script based on operations and edits that have been done in a DESIGNrev session,

 

On the DESIGNrev pulldown menu, select:

 

     File > Save Edit Transcript

 

This will write the current DESIGNrev session as Tcl commands to a file. Here's a screen shot showing that menu.

 

 

 

For more information, please see:

 

Calibre DESIGNrev User's Manual

   > Invoking Calibre DESIGNrev

      > Invoking in Interactive GUI Mode

         > Batch Mode Execution of Edit Transcripts

 

Content © Copyright 1995-2012 Mentor Graphics Corp, All rights reserved.

Product names are trademarks and/or ® registered trademarks of their respective owners.

How to get the file handle of the layout in DESIGNrev (for use in a Tcl script)

$
0
0

Getting the file handle of the layout currently visible in DESIGNrev is frequently needed for use in Tcl batch scripts. Here's an example showing one way to create a layout file handle in DESIGNrev.

 

To get the file handle of the layout currently visible in DESIGNrev, start by getting the handle of the cwbWorkBench object which provides access to information contained in the application. This handle can be accessed with the following:

 

   find objects -class cwbWorkBench

 

The handle of the layout can now be accessed using the cwbWorkBench object handle with the following:

 

   <cwbWorkBench object handle name> cget -_layout

 

Here is an example code snippet that uses this method to get the layout handle and output all cells found in the layout:

 

   set wb [find objects -class cwbWorkBench]

   set L [ $wb cget -_layout]

   set allcells [$L cells]

   puts $allcells

 

 

Content © Copyright 1995-2012 Mentor Graphics Corp, All rights reserved.

Product names are trademarks and/or ® registered trademarks of their respective owners.

Display just the polygons of a certain net in a DESIGNrev layout

$
0
0

It's possible within the DESIGNrev layout viewer to select a net and view it.

 

(This is different than using the NET operation in DRC or ERC rulechecks to create output that is then viewed using RVE and DESIGNrev)

 

Select a piece of the net then do the following:

 

1) Right click on a portion of the net and select Extract Net.

 

2) Right click on that portion again and select Filter Net.

 

A filter will be created for that net, it also contains the layers used on that net.

 

The default initial selection is set to show the polygons on the layers on the net, and not show other polygons on those layers.

 

For example, assume net1 has just layer M1. Filter Net will have:

 

M1

net1

net1.M1

 

The M1 layer will be hidden.

 

The other 2 layers will be shown. (note that they only contain data for net1)

 

To show all of M1 also, double click on it in the Layers palette.

 

(This assumes that DESIGNrev net connectivity statements are already being used. For more on that see "Extracting a Connected Net" in the DESIGNrev User's Manual)

 

 

Content © Copyright 1995-2012 Mentor Graphics Corp, All rights reserved.

Product names are trademarks and/or ® registered trademarks of their respective owners.

Setting user preferences for DESIGNrev

$
0
0

User preferences for DESIGNrev can be set by using pulldown menu choices. Use any selection on the Options tab to bring up the Preferences dialog. The changes are saved to a file. The default path and filename for this file is:

 

   ~/.calibrewb_workspace/preferences

 

If you like, you can make changes manually to that file using a text editor.

 

A few related notes:

  • If the MGC_CWB_CONFIG_DIRS environment variable is set in the shell environment then the default location for the preferences file isn't used.
  • If your user preference files are removed, you will lose your personal settings. If you are experiencing difficulties in DESIGNrev and you want to see if your user preferences are part of the problem you can temporarily rename your preference file and restart DESIGNrev to see if that has any effect.

 

More information and details are available in the Calibre DESIGNrev Layout Viewer User's Manual.

 

 

Content © Copyright 1995-2012 Mentor Graphics Corp, All rights reserved.

Product names are trademarks and/or ® registered trademarks of their respective owners.

Set up DESIGNrev for OpenAccess Input

$
0
0

The following shows the setup needed to open an OpenAccess design in DESIGNrev

 

1) Before launching DESIGNrev set the following environment variables:

  

CDS_INST_DIR

   <path to Cadence installation>

  

LD_LIBRARY_PATH

  

OA_HOME      PATH

   <paths to OpenAccess libraries>

 

     Example:

 

     setenv CDS_INST_DIR /installation_trees/cadence/IC6.15.11_Lnx86

     setenv LD_LIBRARY_PATH $CDS_INST_DIR/tools/lib/64bit:$CDS_INST_DIR/tools/lib

     setenv OA_HOME $CDS_INST_DIR/share/oa/

     setenv PATH  $CDS_INST_DIR/bin:$CDS_INST_DIR/share/oa/bin:$CDS_INST_DIR/tools/bin:

               $CDS_INST_DIR/tools/dfII/bin:$PATH

 

2) Open DESIGNrev and select

     File>Open Database:

Using DESIGNrev to report all layers in GDS/OASIS file

$
0
0

You can use the "layout peek" command in DESIGNrev to output design layers.

 

For instance, the example below shows the design contains layer 1 datatype 1 and  layer 2 datatype 0.

 

>calibredrv -a puts [layout peek a.gds -layers]
{1 1} {2 0}

 

The "layout peek" command is documented in the "Calibre DESIGNrev Referance Manual", Chapter "Batch Commands for Layout Manipulation".

Find cells referenced but undefined in a layout

$
0
0

Use the -undefcells switch in DESIGNrev to list cells referenced but not defined.

 

For instance,

>calibredrv  -a puts [layout peek design.gds -undefcells]


Load Calibre Menu in Virtuoso

$
0
0

Add one of the following lines to the default Cadence startup file (.cdsinit), depending on your installation:

 

• Standard installation  (Virtuoso 5.x and earlier)
  load( strcat( getShellEnvVar("CALIBRE_HOME")"/shared/pkgs/icv/tools/queryskl/calibre.skl" ))

 

• OpenAccess installation (Virtuoso 6.x and later)
  load( strcat( getShellEnvVar("CALIBRE_HOME")"/shared/pkgs/icv/tools/queryskl/calibre.OA.skl" ))

 

For more information see the Calibre Interactive and Calibre RVE User's Manual under
Interfacing With Layout and Schematic Viewers>Cadence Virtuoso>Creating an Interface to Cadence Virtuoso

Clips feature more accurately shares exact coordinate windows in Workbench or DesignRev

$
0
0
  • A way to more accurately share exact coordinate windows in WORKbench using Clips feature.

(Not to be confused with SVRF command "LAYOUT WINDOW CLIP YES")

 

  • Sometimes it is difficult to share coordinates of a desired window in WORKbench.

 

  • Some people send a single centered coordinate, but not the size of the window, and the problem area may or may not be in the center of the window.
  • Some people send a jpeg snapshot that may or may not include the coordinate fields, and when they do include them, the recipient has to manually type them in, introducing increased error possibility
  • Others may send coordinate pairs as text which is more accurate, but still is not as efficient as the feature method offered here.

 

To use this feature, center the problem area in your Workbench screen.

Before starting, select View > Show Clips Palette. This causes the Clips tab to appear in the Cells list on the left.

  1. Click on the Clips tab in the “Cells” window.
  2. Click on the “+” sign to add a saved clip location

steps1-2.jpg

 

You have now identified this window as “Clip 1”.  In the picture below, I have added another location “Clip2” also.

       3. Once you have all the clips you want, click on the save button:

step3.jpg

 

It will prompt you with a save file location with <filename>.clips. Click OK.

 

If you then send the <filename>.clips file with your testcase, you ensure a better chance that I will be looking at the exact same windows as you.

 

If you receive a clips file to use, place it in your working directory and click on the little folder (“open”) next to the save button. Then navigate to the <filename>.clips file and select it.  The clip names will appear under the clips tab.  Double click on one to view the clip window.

 

Note that you can also create clips using the "Clips" icon in the top right of the WORKbench editor (not shown here), without using the Clips tab.

Disable automatic redraw in DESIGNrev

$
0
0

Starting with the Calibre 2012.1 release there is no need to halt or disable automatic refresh.
There is new DESIGNrev drawing behavior that does not block the user interface so that drawing happens entirely in the background.

Cell map for Layout Export

$
0
0

Is there a cell map option in the Calibre Integration GUI?

There is a setup entry available in Calibre Interactive when OPENACCESS is selected as the layout system. The option is available under (for example, DRC):  
DRC Options>Database>Milkyway/OpenAccess/LEFDEF>Mapping Files

layout filemerge from command line

$
0
0

The following is an example of a script that will merge 2 layout files using the DESIGNrev Tcl batch commands that accept user input.

 

The usage is as follows:
$MGC_HOME/bin/calibredrv <filename>.tcl <input1 gds file> <input2 gds file> <output gds file>

# Copyright © Mentor Graphics Corporation 2010 All Rights Reserved.
# THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION
# WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS
# LICENSORS AND IS SUBJECT TO LICENSE TERMS.
#
# DISCLAIMER OF WARRANTY:  Unless otherwise agreed in writing,
# Mentor Graphics software and associated files are provided "as is"
# and without warranty.  Mentor Graphics has no obligation to support
# or otherwise maintain software.  Mentor Graphics makes no warranties,
# express or implied with respect to software including any warranty
# of merchantability or fitness for a particular purpose.
#
# LIMITATION OF LIABILITY: Mentor Graphics is not liable for any property
# damage, personal injury, loss of profits, interruption of business, or for
# any other special, consequential or incidental damages, however caused,
# whether for breach of warranty, contract, tort (including negligence),
# strict liability or otherwise. In no event shall Mentor Graphics'
# liability exceed the amount paid for the product giving rise to the claim.
#
#Purpose: merge 2 layouts
#
if {$argc != 3} {
  puts "Error: wrong # of arguments"
  puts "Usage: calibredrv layout_filemerge.tcl <input1 gds file> <input2 gds file> <output gds file>"
  exit
}
set input1 [lindex $argv 0]
set input2 [lindex $argv 1]
set output [lindex $argv 2]

layout filemerge -in $input1 -in $input2 -out $output -append

puts "Done merging layout files."

Path converted to polygon in Calibre DESIGNrev

$
0
0

The default behavior is to convert paths to polygons on reading the layout into Calibre DESIGNrev.

 

To keep paths from being converted, do one of the following:

A) In Calibre DESIGNrev use File > Open Layout with Options, then unselect "Convert paths to polygons" before using OPEN.

B) Set the following variable in the local .calibrewb_workspace/preferences file prior to invoking DESIGNrev.

     prefs_load_pathsToPolygons 0

 

See the "Controlling the Data You See" and "Defining User Preferences" setions of the Calibre DESIGNrev User's Manual.

Rotate a layout by 90 degree


Create your own custom drop down menu for DRV

Understanding FlatNet (flat net) structure

Understanding FlatNet (flat net) structure

How to get started with the Report builder

$
0
0

Introduction

Introduced in VeSys 2014.1, the Report Builder found under the Tools menu allows users to create their own simple reports. The action requires an open design and then it can be launched. Once launched the user can select from the list of available objects to report on, which differs between VeSys Design an VeSys Harness and you can add/remove columns and specify the desired attributes or properties.

 

Once finished the report can be saved and re-edited at any stage. It will be automatically deployed and is immediately available under Tools--> reports.

 

Movie

The following movie introduces the concept of reports in VeSys and then guides you through the initial stages of creating your first report using the Report Builder.

 

 

Attribute Note:

In addition to the attributes seen on the pill objects from their pull down menu it is also possible to define 'user specified' attributes, the names of these can be checked in the $VESYS_HOME\doc\plugin\api\AttributeList.html file against each object type. Note the object type is prefixed with an 'IX' E.G for connectors look for IXConnector.

How do I simulate using Eldo with variable parameters?

$
0
0

A customer asked, I can simulate varying parameters for Resistors, Capacitors, and Inductors, how can I run multiple simulations using a transformer?

 

Good Question!  Under the multiple simulations tab, there is a drop down for "Global Parameters" but to get a parameter to be displayed it first has to be defined.  Define a parameter using the Netlist Header setup icon (the second icon in the HLA toolbar).  For this example I defined the following: .PARAM WINDINGA=2  The line consists of 3 parts.

     The command - .PARAM  (note the period)

     The variable - WINDINGA

     The default value - 2

Next on the circuit, for the jtran transformer, the property A defines the turns ratio.  Instead of a number use the parameter WINDINGA.

HLA Parameter.png

Now netlist the design, and select the simulation tab.  Now that the Global Parameter is displayed, it is available for use,  I selected a Linear step with 5 points, 1 to 5.

hla simulation.png    

Now the fun part, simulate and the output appears for further analysis in EZWave!  Have fun simulating!

hla ezwave.png

Viewing all 299 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>