jamesldalton / BAG2_cds_ff_mpt

BAG2 workspace for fake PDK (cds_ff_mpt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BAG2_cds_ff_mpt

BAG2 setup for cds_ff_mpt (cadence generic PDK for finfet and multi-patterned technology)

Python setup

BAG2 works with Python 3 (Python 3.6+ is recommended). We strongly recommend using Anaconda Python in a custom install location, as it contains most required packages and offer simple installation process. In addition to the default Anaconda packages, the following needs to be installed/changed (through either conda or pip):

  1. shapely
  2. rtree
  3. tornado (downgrade to 4.5.3 for the bootcamp demo).

Installation

  1. Download cds_ff_mpt PDK from Cadence Support and install it.

  2. Clone BAG2_cds_ff_mpt repo.

    $ git clone https://github.com/ucb-art/BAG2_cds_ff_mpt.git
    
  3. Clone all dependent git submodules. Run the following commands:

    $ git submodule update --init --recursive
    

    If you are running the xbase demo, DO NOT check out master branches of submodules.

  4. (non-BWRC users) Update the symbolic link cds_ff_mpt/workspace_setup/PDK to point to the cds_ff_mpt PDK installation location; the cds_ff_mpt_v_0.5 folder.

  5. (non-BWRC users) Update cds_ff_mpt/workspace_setup/{.cshrc, .bashrc} to point to your tools locations. The tools needed by this demo are:

    • Virtuoso ICADVM 181
    • PVS 15.1
  6. (non-BWRC users) Update cds_ff_mpt/workspace_setup/{.cshrc_bag, .bashrc_bag} to point to the Anaconda Python installation location used to run BAG. See BAG_framework documentation on how to install Anaconda Python for BAG.

  7. (non-BWRC users) Update cds_ff_mpt/corners_setup.sdb, which sets up model files and process corners for BAG, to point to the correct model file location.

  8. (non-BWRC users) in cds_ff_mpt/workspace_setup/.cdsinit, change the editor variable to point to your variable editor.

  9. (non-BWRC users) in cds_ff_mpt/workspace_setup/.cdsinit.personal, in the last command where it sets the simulation data directory (the projectDir variable), change it to a suitable location.

  10. Create a new folder for temporary BAG files in the main BAG2_cds_ff_mpt folder:

    mkdir BAGTMP
    
  11. Create a new cds.lib and add the following to the file:

    INCLUDE $BAG_WORK_DIR/cds.lib.core
    

Running BAG

Once you finish setting up the workspace, try to run the demo as follows:

  1. in the directory, run the following command

    $ source .cshrc
    

    to set up environment variables for running BAG/Virtuoso. This needs to be done everytime you start a new terminal. If You use bash, you source .bashrc instead.

  2. start virtuoso

    $ virtuoso &
    
  3. in the terminal, run

    $ ./start_tutorial.sh
    

    this will start a Jupyter notebook with interactive modules. Just follow through each module in sequence.

About

BAG2 workspace for fake PDK (cds_ff_mpt)

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%