Skip to content

Fully Open Source FASOC generators built on top of OpenROAD

License

Notifications You must be signed in to change notification settings

leochand101/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 automate 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 is inspired from FASoC whcih sits on proprietary tools. (See more about FaSoC at website)

Prerequisites

Please install the following tools with the recommended commit ids for a stable functioning of the flow:

  1. Magic (version:8.3.320)

  2. Netgen (version:1.5.227)

  3. Klayout (version:0.27.10-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.20+70)

  5. OpenROAD (version:2.0_4865)

  6. Open_pdks (version:1.0.328)

  • 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

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

GDS Factory (gdsfactory) - link

LC-DCO Generator (lc-dco) - link

SCPA Generator (cpa-gen) - link

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 OpenROAD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 31.8%
  • Tcl 27.3%
  • SourcePawn 20.8%
  • Makefile 10.7%
  • Verilog 7.0%
  • SystemVerilog 1.7%
  • Other 0.7%