This repository contains practice materials for designing and simulating operational amplifiers (opamps) using the Skywater 130nm (Sky130) process with xschem and magic tools.
-
Clone the repository
First, clone the repository to your local machine:git clone https://github.com/gilangfajrul/sky130_gff_opamp-practice.git
-
Navigate to the xschem directory
Change into thexschem/
directory:cd xschem/
-
Open the schematic
Open theop_tb.sch
schematic in xschem:xschem op_tb.sch
-
Edit the symbols
Click on the symbol you want to edit, then presse
to open the symbol editor. -
Create the layout
Layout your schematic using magic tools in themag/
directory:magic -d XR
There are additional scripts and tools that can help with transistor analysis and netlisting:
-
Copy the
transistor_modes.py
script
Copy thetransistor_modes.py
file into your netlist directory (usually located at~/.xschem/simulations/
). -
Run the script
Use Python to run the script with your.lis
file:python3 transistor_modes.py op5_tb.lis