[go: up one dir, main page]

0% found this document useful (0 votes)
63 views4 pages

Sky130 Ngspice Magic Installation Final

Uploaded by

Abhishek agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views4 pages

Sky130 Ngspice Magic Installation Final

Uploaded by

Abhishek agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

EE671: VLSI DESIGN 2024-2025

Skywater 130 PDK, Ngspice and Magic Installa on


PART1: INSTALLATION OF WSL on Windows machine

1. On Windows machine the installa on must be done via WSL. For Linux users, WSL can
skipped and you can proceed with Part2.
2. For windows 11 machine, from the search bar turn windows feature on and off. Enable
Virtual machine pla orm and Windows Subsystem for Linux. Restart your machine.

For Windows 10 machine, this is not required.

3. Now, Open terminal in administra ve mode.


4. Note: On Windows, make sure your Username doesn’t have any space. If so then change.

5.

6. Now we will install Linux distribu on by typing the below command


wsl --install -d Ubuntu-18.04
It will ask for username and password. Create one and make sure to note it and save for
future.

You can type “exit” to come out of the linux environment back to your Powershell.
Restart your machine

7. Now, again open terminal (run as administrator) and type the below commands
 wsl --update
 wsl --shutdown
 wsl
EE671: VLSI DESIGN 2024-2025

8. Now type the command

 sudo apt-get update

 sudo apt upgrade

 sudo apt install build-essential

9. Now below you can see that I have browed to my User loca on.

Now Let’s begin installa on of PDK and Tools.

PART2: INSTALLATION OF SKYWATER 130 PDK, Ngspice and Magic

1. I have created a folder “new_pdk_sky” as shown below. Browse to Open_PDK website , go to


Download and
git clone https://github.com/RTimothyEdwards/open_pdks

2. Now we need to install Magic. So we will clone it’s git repo.


h ps://github.com/RTimothyEdwards/magic.git

3. Now we need to install the dependencies of magic. So, first we need to be the root user
EE671: VLSI DESIGN 2024-2025

A er this type the below command


 apt install m4 libx11-dev tcl-dev tk-dev libcairo2-dev

4. A er this we will logout from the root and install magic as shown below. Browse inside the
magic directory and type the command
 ./configure

5. A er this type the commands


 make
 sudo make install

6. Once completed, Open magic and check.

7. Close the magic window. Now browse to open_pdks folder and type the below commands
one by one.

./configure --enable-sky130-pdk --enable-sram-sky130


make
sudo make install
make veryclean

I am showing a sample screenshot of one of the commands below.

Just for your informa on, this will do the following:


 Automa cally pull the Google/SkyWater SKY130 PDK libraries from github
 Automa cally pull the 3rd-party alphanumeric layout library
 Automa cally pull the 3rd-party library for the xschem schema c entry and
schema c capture tool.
 Build and install all libraries to /usr/local/share/pdk/sky130A/.
 Build and install common scripts to /usr/local/share/pdk/bin/.
 Remove all staging files

8. Once done, browse to the directory new_pdk_sky and install ngspice

9. Create a folder ngspice_simula ons and create a file test1.cir as shown below.
EE671: VLSI DESIGN 2024-2025

10. Copy the below code inside test1.cir

11. Save the file and run as shown below

You should be able to see the below result

You might also like