Giter VIP home page Giter VIP logo

openfasoc's Introduction

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

openfasoc's People

Contributors

donn avatar elon-j avatar erictaur avatar leochand101 avatar minghunghw avatar msaligane avatar shuolai avatar tuohangzeng avatar wenbodd avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.