Start with a Linux system with version: “Ubuntu 22.04.4 LTS” fresh.
(Kindly note: Open your Linux Terminal, then copy and paste each of these commands step by step.)
It is necessary to update the system, for this, open a terminal in the desktop/home and give command:
Now, we will be installing all the required tools in a new folder. To create that folder type:
Now, change the directory from desktop to the newly created folder by running the command:
Example: mkdir -p chip_design
cd chip_design
Next step is to install all the necessary supporting libraries for the installation of open-source tools for Ubuntu LTS version.
Check whether .local/bin is included in $PATH:
If it’s not there, then add it to your path before starting the install by adding this to your ~/.bashrc file:
Once the installation of all the prerequisites is done, we can proceed with the installation of individual tools one by one. First, we are going to install Xschem. For that, open a terminal and run the following commands:
To run Xschem:
Next, we will be installing Magic. For that, open a terminal in our installation folder and run the following commands:
Next is the installation of Ngspice. Before installing Ngspice, just update the system by:
Then run the following commands:
(Once the zip file is downloaded, extract the ngspice-43 folder and then run the following commands)
When successful, check the version using:
Next comes the most time-consuming part of the installation process, i.e., the installation of Open_PDKs. Once again start by updating the system:
Thereafter run the following commands:
Copy the .magicrc file and paste it in the magic directory:
Next, install LVS tool to perform Layout versus Schematic check using the command:
Next, install the tool KLayout to have a look at the GDS file using command:
In order to generate the GDS file for our digital design, we need to have OpenLane installed. For the same, Docker needs to be installed. Use the following commands to install and run Docker tests:
Note: After installing Docker, run "docker run hello-world" to test if Docker runs without root/sudo permissions. If it requires root permissions, you will get an error regarding docker.sock in /var/run. You need to change this file permission by running the following:
Inside the working directory (chip_design here), clone the following and install OpenLane:
In order to run different digital designs, Icarus Verilog serves as a means. Further, in order to cross-verify the output GTKWave needs to be installed so as to verify the simulation results.
1) Installation of Iverilog:
2) Installation of GTKWave:
To install GTKWave, first update the system using:
Then, run the following command:
We can see the GTKWave window by calling it on the respective terminal.
3) Installation of KLayout:
Now, KLayout can be opened by calling “klayout”. Sometimes, Wayland errors may occur. At such instances, run the command:
Now, try running KLayout and see if the window appears.