This ruby script is a plugin of Google SketchUp to import GDSII formatted layout data.
This plugin requires Ruby GDSII Parser. MAYBE this plugin does not depend on the version of Google SketchUp or the platform. This plugin is checked on Google SketchUp 6, 7 and 8 on Windows.
$stderr.printf("Reading GDS file %s (%d bytes)... \n",gdsfilename,File.size(gdsfilename))
That's all. If you want to uninstall the plugin, please remove GDSII_importer.rb and GDSII.rb.
Since GDSII format does not contain the information of the thickness and the color, you have to describe these information in "process definition file". The format of process definition file is as follows. The line which starts with the character "#" is ignored as comments.
(Example) #Layer name Layer No. Abbreviation Height Thickness Color Alpha METAL1 10 M1 1.0 0.5 #0000ff 0.8
This plugin generates additional layers, i.e., substrate, ILD (Interlayer Dielectric) and passivation. The layer No. of these layers are 256, 257 and 258, respectively.
(Example) SUBSTRATE 256 SUB 0.0 -10 #3333ff 0.1 ILD 257 ILD 0.0 10 #ffffff 1.0 PSSV 258 PSSV 10 2 #ffffff 1.0
Now you can import GDSII file to Google SketchUp. The plugin appears in the menu of Goole SketchUP, "Plugins" -> "GDSII Importer" -> "Import".
It may take several minutes for large GDSII file to import. If the plugin does not function correctly, please re-execute with the "Ruby Console" open. You can open "Ruby Console" window from the menu of Google SketchUP, "Windows" -> "Ruby Console".
The archive includes an example GDSII (INV010.gds), process definition file (proc_itrs65nm.txt) and SketchUp Model (INV010.skp). Please try to import INV010.gds with proc_itrs65nm.txt. You will get the same SketchUp Model as INV010.skp.
To download SketchUp Models, please click the images.
![]() |
![]() |
![]() |
| INV010 | INV-scaling | 65nm-interconnect |
|---|---|---|
| Simple Inverter | Inverters from 1.2um to 22nm technology | Interconnect structure in 65nm technology |
A small script gds2txt.rb parses GDSII file and output the plain text to standard output.
% ruby gds2txt.rb gdsfile.gds
This script requires GDSII.rb in "Ruby GDSII Parser".