Previous journal: | Next journal: |
---|---|
0175-2023-11-20.md | 0177-2023-11-27.md |
Add this to ~/.bashrc
:
alias magicsky='magic -d OGL -rcfile $PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrc'
Then do: source ~/.bashrc
Running magicsky
(or just magic -d OGL
) will probably flash it up and then it dies again. The TCL console would be displaying an error about OGL being unsupported. We need to recompile Magic with OpenGL support.
Following http://opencircuitdesign.com/magic/install.html with some help from Z2A Part 0 Manual Install...
sudo apt install mesa-common-dev libglu1-mesa-dev
cd ~/asic_tools
git clone git://opencircuitdesign.com/magic magic-ogl
cd magic-ogl
git checkout 8.3.413 # Why are we using this version from July?
./configure --with-opengl
make
sudo make install
magic --version
# 8.3.413
Now magicsky
should work.
- In xschem, export design as netlist...
- Simulation => LVS => LVS netlist: Top level is a .subckt
- Click 'Netlist' button. Creates:
/home/zerotoasic/.xschem/simulations/01_inverter.spice
- Launch
magicsky
- File => Import SPICE
- Select
01_inverter.spice
- Shift-Z to zoom out
Shift-H adds labels to a selected symbol.
When I 'Import SPICE', I see these errors: