| # PDK, Tools & Pre-requisites Installation |
| In order to get the [caravel_fulgor_opamp](https://github.com/diegohernando/caravel_fulgor_opamp) project running several tools and files need to be installed. To simplify the installation and to make sure you fullfill all the pre-requisites an [install_pdk.sh](install_pdk.sh) script is provided. To run the script just type on the console: |
| |
| ```bash |
| ./install_pdk.sh |
| ``` |
| |
| This script does the following: |
| - Installs all the packages needed to use the opensource tools and the [Google-Skywater 130nm Open Source PDK](https://github.com/google/skywater-pdk) |
| - Clones & installs the [Google-Skywater 130nm Open Source PDK](https://github.com/google/skywater-pdk) |
| - Installs the schematic caputre tool [XSCHEM](https://xschem.sourceforge.io/stefan/index.html) |
| - Installs XSCHEM symbol library for the Google-Skywater 130nm Open Source PDK. |
| - Installs the simualtion engine [ngspcie](http://ngspice.sourceforge.net/) |
| - Installs the layout desing tool [magic](http://opencircuitdesign.com/magic/index.html) |
| - Installs the layput desing tool [klayout](https://www.klayout.de/) |
| - Installs the LVS check tool [netgen](http://opencircuitdesign.com/netgen/index.html) |
| - Installs the [Open_PDKs](http://opencircuitdesign.com/open_pdks/index.html) |
| - Installs the [pre-check tool](https://github.com/efabless/open_mpw_precheck) for the Efabless/Skywater/Google [Caravel](https://github.com/efabless/caravel) project. |
| |
| # General Purpose Open Source Operational Amplifier (OpAmp) |
| This project is a test chip, which contains several two stages operationals amplifiers with Miller compensation. This is an all analog desing implemented on the [Google-Skywater 130nm Open Source PDK](https://skywater-pdk.readthedocs.io/en/latest/). It is an Open Source project under[Apache License 2.0](LICENSE). |
| |
| The OpAmp desing is located in an Open Source SoC Harness obtained from the [efabless](https://efabless.com/) [Caravel Project](https://github.com/efabless/caravel). |
| |
| # Running the Tools |
| ## Xschem |
| To run xschem and be able to simulate the OpAmp's test benches the following commands need to be run: |
| |
| ```bash |
| cd caravel_fulgor_opamp/xschem |
| xschem |
| ``` |
| In the xschem folder it is found the [xschemrc](xschem/xschemrc) file, where the paths to the xschem libraries are defined. |
| |
| ## Magic |
| To run magic and be able to edit or desing a layout the following commands need to be run: |
| |
| ```bash |
| cd caravel_fulgor_opamp |
| magic -rcfile mag/dh.magicrc |
| ``` |
| The [dh.magicrc](mag/dh.magicrc) file specifies where the open_pdk layout libraries are located. If magic is used without the -rcfile specification, the sky130 library won't be loaded. |
| |
| |
| # OpAmp Desing |
| ## General Specifications: |
| - V_{dd} |
| - I_{ref} |
| - Power Consumption |
| - DC Gain |
| - Bandwidth |
| - Chip Area |
| |
| # CIIC Harness |
| |
| A template SoC for Google SKY130 free shuttles. It is still WIP. The current SoC architecture is given below. |
| |
| <p align=”center”> |
| <img src="/doc/ciic_harness.png" width="75%" height="75%"> |
| </p> |
| |
| ## Managment SoC |
| The managment SoC runs firmware that can be used to: |
| - Configure Mega Project I/O pads |
| - Observe and control Mega Project signals (through on-chip logic analyzer probes) |
| - Control the Mega Project power supply |
| |
| The memory map of the management SoC can be found [here](verilog/rtl/README) |
| |
| ## Mega Project Area |
| This is the user space. It has limited silicon area (TBD, about 3.1mm x 3.8mm) as well as a fixed number of I/O pads (37) and power pads (10). See [the Caravel premliminary datasheet](doc/caravel_datasheet.pdf) for details. |
| The repository contains a [sample mega project](/verilog/rtl/user_proj_example.v) that contains a binary 32-bit up counter. </br> |
| |
| <p align=”center”> |
| <img src="/doc/counter_32.png" width="50%" height="50%"> |
| </p> |
| |
| The firmware running on the Management Area SoC, configures the I/O pads used by the counter and uses the logic probes to observe/control the counter. Three firmware examples are provided: |
| 1. Configure the Mega Project I/O pads as o/p. Observe the counter value in the testbench: [IO_Ports Test](verilog/dv/caravel/user_proj_example/io_ports). |
| 2. Configure the Mega Project I/O pads as o/p. Use the Chip LA to load the counter and observe the o/p till it reaches 500: [LA_Test1](verilog/dv/caravel/user_proj_example/la_test1). |
| 3. Configure the Mega Project I/O pads as o/p. Use the Chip LA to control the clock source and reset signals and observe the counter value for five clock cylcles: [LA_Test2](verilog/dv/caravel/user_proj_example/la_test2). |