Skip to content

mabrains/klayout_lib_manager

Repository files navigation

KLayout Library Manager

License

Introduction

This setup enables KLayout to register external GDS files as libraries, making them available for reference.

Prerequisites

  • klayout 0.29.11+

📁 Directory Structure

├── example_libs/                       # Folder containing examples for GDS libraries
├── libs.json                           # JSON mapping of library_name → GDS path
├── load_libs.rb                        # Ruby script to load and register the libraries
└── README.md                           # This documentation file

🚀 Usage

Launch KLayout in GUI mode by running the following script:

klayout -rm library_manager.rb

Example for json file:

{
  "gf180mcu_fd_sc_mcu7t5v0": "example_libs/gf180mcu_fd_sc_mcu7t5v0.gds",
  "gf180mcu_fd_sc_mcu9t5v0": "example_libs/gf180mcu_fd_sc_mcu9t5v0.gds",
  "gf180mcu_fd_io": "example_libs/gf180mcu_fd_io.gds"
}

After running the script, you should see the following output in the terminal confirming successful registration of libraries from libs.json:

Fig. 1. Command-line Output of Registered External GDS Libraries

After loading, the libraries will appear in the Library palette under the names defined in libs.json.

You can then create a new layout and instantiate cells from these libraries by dragging them from the palette.
This allows reuse of added cells without embedding them into your GDS design.

Fig. 2. Instantiating a Cell from a Loaded Library in KLayout

About Mabrains

Mabrains was founded to achieve the main purpose to change the world of Chip Design using AI. Empowering the world with a new methodologies and techniques that would disrupt the status quo in the EDA industry.

We have contributed in developing many PDKs for Open Source Tools. For more information, please refer to Mabrains-Github.

Contact-Us

Requests for more information about Generic PDK and other open source technologies can be submitted via this web form.

About

Loading Libraries for Klayout Tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages