diff --git a/cells/klayout/pymacros/README.md b/cells/klayout/pymacros/README.md index 882d5558..feb46387 100644 --- a/cells/klayout/pymacros/README.md +++ b/cells/klayout/pymacros/README.md @@ -1,3 +1,35 @@ -# Pymacros (Pcells) +# Klayout PCells implementation. + +You could use those PCells either in 2 ways: +1. Use volare built PDK directly from: https://github.com/efabless/volare +2. Use the PDK from this primitive library for testing purposes. + +## Using PCells from Volare +Please refer to Volare documentation at: https://github.com/efabless/volare/blob/main/Readme.md + +## Using PCells from this repo directly. +To use the PDK from this repo directly, you need to do the following: +1. Go to following folder in the repo `cells/klayout` and then run the following command: +```bash +export KLAYOUT_HOME=`pwd` +``` +2.(optional step to enable GUI menu for running DRC/LVS) You will need to run the following commands as well from inside `cells/klayout` folder: +```bash +ln -s ../../rules/klayout/drc +ln -s ../../rules/klayout/lvs +ln -s ../../rules/klayout/macros +ln -s ../../tech/klayout/gf180mcu.lyt +ln -s ../../tech/klayout/gf180mcu.lyp +``` +3. Go to any location where you want to start designing, and open klayout using the following command: +```bash +klayout -e +``` +4. Create a new layout for testing. +5. Press on insert instance. +6. Go to the instance menu and select "GF180MCU" library from the library list. +7. Select the search botton and it will give the list of PCells that is available in the library. +8. Select any cell and it will show the cell. +9. Go to the PCell tap and change the parameters as needed to change the layout of the PCells. + -Contains klayout pcells generator. diff --git a/models/ngspice/testing/README.md b/models/ngspice/testing/README.md index 2205747f..8f3c709a 100644 --- a/models/ngspice/testing/README.md +++ b/models/ngspice/testing/README.md @@ -6,34 +6,31 @@ Explains how to run GF180nm models-ngspice regression. ```text πŸ“¦testing - ┣ πŸ“œMakefile - ┣ πŸ“œREADME.md - ┣ πŸ“¦regression - ┣ πŸ“¦smoke_test - ┣ πŸ“¦180MCU_SPICE_Models + ┣ πŸ“œMakefile (Makefile to setup test cases) + ┣ πŸ“œREADME.md (This file) + ┣ πŸ“¦sc_regression/gf180mcu_fd_sc_mcu7t5v0 (Standard cells regression that simulates the standard cells using different voltage stimulus.) + ┣ πŸ“¦regression (This is the regression folder that has a test case per device.) + ┣ πŸ“¦smoke_test (An inverter design that simulates in all corners to make sure that all corners will work with no issue.) + ┣ πŸ“¦180MCU_SPICE_Models (Foundry measurement data used for model calibration.) ``` ## Prerequisites At a minimum: - -- Git 2.35+ - Python 3.6+ -- ngspice-36+ - -### On Ubuntu, you can just +- ngspice-37+ -`apt install -y build-essential python3` - -- Check this [ngspice](http://ngspice.sourceforge.net/download.html) for ngspice installation. +Our test environment has the following: +- Python 3.9.12 +- ngspice-37 ## Regression Usage -To make a full test for GF180nm models-ngspice, you could use the following command in testing directory: +- To make a full test for GF180nm models-ngspice, you could use the following command in testing directory: -```bash -make all -``` + ```bash + make all + ``` - You could also check allowed targets in the Makefile, using the following command: @@ -43,9 +40,51 @@ make all ## **Regression Outputs** -- The resulting files are in `regression//` with name of `` that contains: +After running regression, you should find the following in the folder `run__