nicolasayotte/Matla​bGDSPhotonicsToolbo​x

A library of functions to facilitate the design of Photonics Integrated Circuits GDS layouts
3.8K Downloads
Updated 27 Feb 2017

Matlab GDS Photonics Toolbox
============================
This is a Matlab library of functions to facilitate the design of Photonics Integrated Circuits GDS layouts that I have developped with Alexandre D. Simard during my PhD.
This is oriented towards intuitive and adaptable creation of GDS layout files for fabrication in different facilities across the world. The toolbox creates a GDS based on a general layer map, but can be set up to export to any other layer map once the design is done.

Nicolas Ayotte and Alexandre D. Simard have used this library to efficiently create multiple layouts for different fabrication facilities across the world with successful results.

Features
--------
- Relative orientation group waveguide routing including turns, tapers, s-bends and the possibility to customize inter-waveguide distance at any point.
- Access to the travelled distance (physical or optical) of any waveguide offering a quick way to measure your devices.
- Possibility of referencing premade structures (fiber couplers, directional couplers, detectors, etc.)
- Possibility of referencing custom structures created on the fly.
- Premade functions for microrings, Bragg gratings, multi-mode interferometer, contra-directional couplers, output array of fiber couplers, etc.
- Tutorial project with many cells showcasing the features.
- A PDF presentation presenting the library's purpose and principles.
- Intuitive relative cell placement in the master floorplan for easy teamwork.
- Relative and scalable routing solution.
- Includes functions to export to other layer maps, including boolean operations on the layers.
- Easy scripting language (i.e.: Matlab).

It is strongly encouraged to get the free software KLayout to look at your GDS files:
http://www.klayout.de/

Suggested first steps
---------------------
- Look through the PDF presentation
- (Optional) Run the command "mex -setup" to install a C compiler in matlab.
- Run the makemex.m function in the main folder to compile all the C functions needed for the library.
- Open the tutorial project folder: Project - New Project
- Go through the Cells script, run them, look at the resulting .gds files.
- Look at the Cell_RoutingWG.m script that places the cell in the floorplan.
- Read at the ProjectDefinition.m file.
- Run the Main.m to merge the gds cells and export to the ouput layer map.
- Duplicate the Project folder and make your own!

License
---------
Copyright © 2014 Nicolas Ayotte and Alexandre D. Simard. MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Cite As

Nicolas Ayotte (2024). nicolasayotte/MatlabGDSPhotonicsToolbox (https://github.com/nicolasayotte/MatlabGDSPhotonicsToolbox), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Functions/Basic

Functions/Component

Functions/GDSII Library

Functions/GDSII Library/Basic

Functions/GDSII Library/Basic/@gds_element

Functions/GDSII Library/Basic/@gds_element/private

Functions/GDSII Library/Basic/@gds_library

Functions/GDSII Library/Basic/@gds_structure

Functions/GDSII Library/Basic/funcs

Functions/GDSII Library/Basic/gdsio

Functions/GDSII Library/Boolean

Functions/GDSII Library/Elements

Functions/GDSII Library/Structures

Functions/Utils

Functions/Utils/Data validation & formatting

Functions/Utils/Info functions

Functions/Utils/Layer Map functions

Functions/Utils/Library creation functions

Images

Library

Project - New Project

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.2.0.0

CheckForLargePolygons added to the library to cut polygons larger than 8191 vertices resulting from boolean operations

1.1.0.0

Version 2.0 - Improved stability, new tutorials, boolean operations, new options in PlaceRect, PlaceArc and PlaceSBend. Added a PlaceARef, compact u-turn, a multi-mode interferometer, a Mach-Zehnder interferometer, and a CDC.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.