The files from this repository can be downloaded and used by the following commands :-
sudo apt install -y git
git clone https://github.com/vsdip/avsdbgp_3v3_sky130_v2.git
The circuit implementation of Bandgap reference IP avsdbgp_3v3 is simulated using Ngspice to analyse its performance according to the Design Specifications provided.
sudo apt-get install -y ngspice
After successful installation, to invoke Ngspice type the following command on the terminal window.
ngspice <circuit file to be simulated>
To simulate the files for Pre- Layout simulations
cd avsdbgp_3v3_sky130_v2/Pre_Layout_Simulations/Circuits/
ngspice temp_avsdbgp_3v3.cir
ngspice vdd_variation_avsdbgp_3v3.cir
ngspice Temp_coeff_avsdbgp_3v3.cir
ngspice voltage_coeff_avsdbgp_3v3.cir
ngspice Start_up_avsdbgp_3v3.cir
ngspice enable_current.cir
The Layout for the circuit was done using Magic Layout editor tool. To observe the layout, install magic using the following commands :-
sudo wget "http://opencircuitdesign.com/magic/archive/magic-8.3.122.tgz"
tar -xvzf magic-8.3.122.tgz
cd magic-8.3.122
sudo ./configure
sudo make
sudo make install
After successful installation, type:-
cd avsdbgp_3v3_sky130_v2/Layout/
magic -T ../libs/sky130A.tech BGR.mag
To simulate the files for Post-Layout simulations using ngspice :-
cd avsdbgp_3v3_sky130_v2/Post_Layout_Simulations/Circuits/
ngspice temp_avsdbgp_3v3.spice
ngspice vdd_variation_avsdbgp_3v3.spice
ngspice Temp_coeff_avsdbgp_3v3.spice
ngspice voltage_coeff_avsdbgp_3v3.spice
ngspice Start_up_avsdbgp_3v3.spice