Perl で gdsii
実行環境
  Active Perl
     更新するには
ppm
  ppm
  DownLoad
  実行
Help
   perldoc GDS2
Examples
  basic-lines
  simple
  simple-sref
  aref
  circle
  circle-inverted
  sample-arc
  donut
  Inverted-Donuts
  Donuts_Combination
  Hello-World
  CP-array
  text2gds.pm
  rotate.pm
  rotate-rectangle
  arc.pm
  line-and-space-180
  triangle-array-nega
  sq_sleeve.pm
  TriangleGridStep
  triangle-array-nega-CP
  CirclesArray-SQ
  LargeCircles
  MA6-Alignment-mark.pm
  Alignment-Place
  Triangle-Grid
  Triangle-Grid-Wide
  ellipsis-polygons
  inscribe_polygon
  inscribe_polygon.pm
  inscribe_polygon-ellipsis.pm
  sleeving-by-square-sample
  sleeving-by-square.pm

Perl Perl/GDSII page
Download (as "Alignment-Place.txt")

Alignment-Place

#!/usr/bin/perl -w
# GDSII generation 
#
use GDS2;
use strict;
use Getopt::Std;
require './5800-MA6-Alignment-mark.pm';

our(@ARGV);
our(%opts);

my $DEBUG = 1;
sub usage() {
    print <<USAGE;
$0
USAGE
}

## --------------------------------------------
##          M A I N  R O U T I N E 
## --------------------------------------------

my ($gds2File);

my $filename = $0;
   $filename =~ s/\.txt$//;                     # ---  Strip '.txt' part
   $filename =~ s/[0-9]+.//;                     # ---  Strip '.txt' part
   $filename .= '.gds';                     # ---  Strip '.txt' part

print 'output name: '. $filename, "\n";
unlink $filename;

$gds2File = new GDS2(-fileName=> '>'. $filename);
$gds2File -> printInitLib(-name=>'LibraryName');

# Prepare primitive structure for 5 size of Holes
# --------------------------------------------------

# -------------------------------------------------------


AlignmentMark::AlignmentMark(1,2,11, $gds2File);

$gds2File -> printBgnstr(-name => 'TOP');


$gds2File -> printSref(
    -name => 'alignment-mark',
    -xy   => [0, 0]);
$gds2File -> printEndstr; 
$gds2File -> printEndlib(); 
__END__
Last Update: Mon, 21 Feb 2022 10:13:01 GMT 1.66 2008/03/08