Skip to content

Fully Open Source FASOC generators built on top of open-source EDA tools

License

Notifications You must be signed in to change notification settings

cczw123/OpenFASOC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFASoC

OpenFASoC: Fully Open-Source Autonomous SoC Synthesis using Customizable Cell-Based Synthesizable Analog Circuits

https://readthedocs.org/projects/openfasoc/badge/?version=latest

OpenFASOC is focused on open-source automated analog generation from user specification to GDSII with fully open-sourced tools. This project is led by a team of researchers at the University of Michigan and is inspired by FASoC, which sits on proprietary tools. (See more about FaSoC at website)

  • Temperature sensor -
  • LDO -

Prerequisites

Install all the prerequisites using dependencies.sh script provided in the home location of this project (where this README.rst file is found). Supports CentOS7 and Ubuntu20.

(Or) Please install the following tools by building the tools manually from their code base with the recommended commit ids for stable functioning of the flow:

  1. Magic (version:8.3.414)

  2. Netgen (version:1.5.255)

  3. Klayout (version:0.28.6-1)

    • Please use this command to build preferably: ./build.sh -option '-j8' -noruby -without-qt-multimedia -without-qt-xml -without-qt-svg
  4. Yosys (version:0.31+13)

  5. OpenROAD (version:2.0_6895)

  6. Open_pdks (version:1.0.428)

  • open_pdks is required to run drc/lvs check and the simulations
  • After open_pdks is installed, please update the open_pdks key in common/platform_config.json with the installed path, down to the sky130A folder
  1. Xyce (version: 7.6)
  • Once the Xyce installation is complete, please make sure to add Xyce binary to $PATH environment variable.

Other notice:

  • Python 3.7 is used in this generator.
  • All the required tools need to be loaded into the environment before running this generator.

Design Generation

Generators

Temperature Sensor (temp-sense-gen) - link

A fully automated SoC generator that uses an all-digital temperature sensor architecture, that relies on a new subthreshold oscillator (achieved using the auxiliary cell “Header Cell“) for realizing synthesizable thermal sensors.

Block Architecture:
  • Temperature-sensitive ring oscillator and stacked zero-VT devices.
https://github.com/idea-fasoc/OpenFASOC/blob/main/openfasoc/generators/temp-sense-gen/readme_imgs/tempSensor-BA.png

LDO Generator (ldo-gen) - link

The main idea behind a Digital LDO is the use of an array of small power transistors that operate as switches. The use of power transistors as switches facilitates low VDD power management and process scalability which makes Digital LDOs a good potential candidate for power management as we go to lower nodes. With the “Unit Power Switch” as the auxiliary cell, an automatic LDO design tool “LDO_GEN” is developed as part of this project.

Block Architecture:
  • Synchronous Digital LDO with optional stochastic flash ADC.
https://github.com/idea-fasoc/OpenFASOC/blob/main/openfasoc/generators/ldo-gen/readme_images/LDO-BA.png

DC-DC Generator (dcdc-gen) - link

For synthesizable on-chip power management circuits, we use the “2:1 SC Cell” auxiliary cell for implementing a switched-capacitor (SC) based DC-DC converter. By varying the number of auxiliary cells, we can achieve a wide range of conversion ratios with fine-grain resolution. It operates similarly to a successive approximation analog to digital converter (SAR ADC). Furthermore, since the total structure is simply composed of auxiliary cells, it is ideal for the proposed flow of automating the analog block design.

Cryo Generator (cryo-gen) - link TBA

GDS Factory (gdsfactory) - link TBA

LC-DCO Generator (lc-dco) - link TBA

SCPA Generator (cpa-gen) - link TBA

Our fully open-source flow only supports the temperature sensor generation so far. We are working on adding additional generators in the near future.

The generators are located inside openfasoc/generators/, the target for temperature sensor generation is sky130hd_temp and located inside openfasoc/generators/temp-sense-gen, the following parameters are supported:

  • --specfile: input specifications where the min/max temperature for the temp sensor are specified
  • --outputDir: output folder where the gds/def results will be exported
  • --platform: only sky130hd platform is supported for now
  • --clean: clean flow folder and start a fresh design flow
  • --mode: support verilog/macro/full modes, macro mode runs through APR/DRC/LVS steps to generate macros, full mode completes macro generation + simulations
  • --nhead: specify a fixed number of headers (optional)
  • --ninv: specify a fixed number of inverters (optional)

Look more into "getting-started" section on how to run the OpenFASOC flow

Spice Simulation Flow

To run the simulation, please edit your local model file in common/platform_config.json:

  • simTool: simulation tool, only ngspice is supported for now -- We plan to support Xyce in the future
  • simMode: partial (recommended to reduce runtime) or full, partial simulation only includes headers and cells in low voltage domain to calculate the frequency errors, full simulation includes the internal counter (full simulation is slow using ngspice and is still being tested)
  • nominal_voltage: the nominal voltage of the specified technology, it is used to set a supply voltage in the simulation testbench
  • model_file: the path to the top model lib file
  • model_corner: the corner used in the simulation
  • an example of the common/platform_config.json looks like:
{
  "simTool": "ngspice",
  "simMode": "partial",
  "platforms": {
    "sky130hd": {
      "nominal_voltage": 1.8,
      "model_file": "~/open_pdks/pdks/sky130A/libs.tech/ngspice/sky130.lib.spice",
      "model_corner": "tt"
    }
  }
}

Tapeouts and testing setup

Please refer to our testing setup in our tapeouts and testing setup section.

Citation

If you find this tool useful in your research, we kindly request to cite our papers:

About

Fully Open Source FASOC generators built on top of open-source EDA tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 34.4%
  • Tcl 28.0%
  • SourcePawn 19.5%
  • Makefile 10.5%
  • Verilog 5.0%
  • SystemVerilog 1.5%
  • Other 1.1%