Skip to content

Fully Open Source FASOC generators built on top of OpenROAD

License

Notifications You must be signed in to change notification settings

tuohangzeng/OpenFASOC

 
 

Repository files navigation

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

The FASoC Program is focused on developing a complete system-on-chip (SoC) synthesis tool from user specification to GDSII with fully open-sourced tools.

See more on our website.

Prerequisites

Please build the following tools:

Magic https://github.com/RTimothyEdwards/magic

Netgen https://github.com/RTimothyEdwards/netgen

Klayout https://github.com/KLayout/klayout
Please use this command to build preferably: ./build.sh -option '-j8' -noruby -without-qt-multimedia -without-qt-xml -without-qt-svg

Yosys https://github.com/The-OpenROAD-Project/yosys

OpenROAD https://github.com/The-OpenROAD-Project/OpenROAD (commid id: 7ff7171)

open_pdks https://github.com/RTimothyEdwards/open_pdks

  • 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

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)
  1. Clone the OpenFASOC repository
git clone [email protected]:idea-fasoc/OpenFASOC.git
  1. Go to the temperature sensor generation folder
cd OpenFASOC/generators/temp-sense-gen
  1. Modify the test.json or the targets in Makefile based on the requirements, then run the flow. The sky130hd_temp target generates a tempsensor macro, the sky130hd_temp_full target runs the full mode and finishes macro generation + simulations.
make sky130hd_temp 
  1. The outputs will be stored in the outputDir folder specified in Makefile

Please contact [email protected] if you have any questions.

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.

Things to improve

To improve our tools, flow, and QoR. The following limitations are currently being addressed:

  • In OpenROAD tools:
    • Add the power pins extraction in OpenROAD tool
    • LEF modification for NDR needs to be within the tool (no additional script)
    • write_cdl bug fix in source code
    • fence aware placement step needs to be added
    • ioplacment step is now skipped at placement and is set to random palcement by default at floorplaning so it doesn't put power pins of additional voltage domains at the edge
  • add the spice simulation flow and modeling
  • add sky130_fd_sc_hs support

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 34.5%
  • Tcl 32.1%
  • Makefile 13.7%
  • Verilog 11.2%
  • MATLAB 4.2%
  • SystemVerilog 3.0%
  • Other 1.3%