layout filemerge from command line

Document created by bill_drezen on Sep 20, 2012
Version 1Show Document
  • View in full screen mode

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."

Attachments

    Outcomes