All Projects → VLSIDA → Openram

VLSIDA / Openram

Licence: bsd-3-clause
An open-source static random access memory (SRAM) compiler.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Openram

Gitpass
Open Source Your Password (Mismanagement)!
Stars: ✭ 113 (-52.72%)
Mutual labels:  magic
Mlv App
All in one MLV processing app that is pretty great. Download:
Stars: ✭ 150 (-37.24%)
Mutual labels:  magic
Yagmail
Send email in Python conveniently for gmail using yagmail
Stars: ✭ 2,169 (+807.53%)
Mutual labels:  magic
Python And Oop
Object-Oriented Programming concepts in Python
Stars: ✭ 123 (-48.54%)
Mutual labels:  magic
Magicallife
A 2d game that aspires to be similar to Rimworld, with more depth, magic, and RPG concepts.
Stars: ✭ 145 (-39.33%)
Mutual labels:  magic
Opendominion
A text-based, persistent browser-based strategy game (PBBG) in a fantasy war setting
Stars: ✭ 155 (-35.15%)
Mutual labels:  magic
Cuesheet
A framework for writing Spark 2.x applications in a pretty way
Stars: ✭ 86 (-64.02%)
Mutual labels:  magic
Abracadabra
Automated refactorings for VS Code (JS & TS) ✨ It's magic ✨
Stars: ✭ 204 (-14.64%)
Mutual labels:  magic
Simplemagic
Simple file magic number and content-type library which provides mime-type determination from files and byte arrays
Stars: ✭ 146 (-38.91%)
Mutual labels:  magic
File Type
Detect the file type of a Buffer/Uint8Array/ArrayBuffer
Stars: ✭ 2,386 (+898.33%)
Mutual labels:  magic
Bewitchment
Mod inspired by Witchery
Stars: ✭ 128 (-46.44%)
Mutual labels:  magic
Sqrape
Simple Query Scraping with CSS and Go Reflection (MOVED to Gitlab)
Stars: ✭ 144 (-39.75%)
Mutual labels:  magic
Hitrava
Convert your Huawei Health sport activities and import them in Strava.
Stars: ✭ 156 (-34.73%)
Mutual labels:  magic
Skywater Pdk
Open source process design kit for usage with SkyWater Technology Foundry's 130nm node.
Stars: ✭ 1,765 (+638.49%)
Mutual labels:  magic
Mtgjson
MTGJSON build scripts for Magic: the Gathering
Stars: ✭ 191 (-20.08%)
Mutual labels:  magic
Lipo
👄 Free image manipulation API service built on top of Sharp (an alternative to Jimp, Graphics Magic, Image Magick, and PhantomJS)
Stars: ✭ 101 (-57.74%)
Mutual labels:  magic
Tangram
WebGL map rendering engine for creative cartography
Stars: ✭ 1,964 (+721.76%)
Mutual labels:  magic
Magic
Create your .Net Core/Angular/Database CRUD Web apps by simply clicking a button
Stars: ✭ 214 (-10.46%)
Mutual labels:  magic
Aegis.cpp
Discord C++ library for interfacing with the API. Join our server:
Stars: ✭ 198 (-17.15%)
Mutual labels:  magic
Z.js
🦄 Hide text via Unicode's ZW(N)Js
Stars: ✭ 161 (-32.64%)
Mutual labels:  magic

OpenRAM

Python 3.5 License: BSD 3-clause

Master: Pipeline Status Coverage Download

Dev: Pipeline Status Coverage Download

An open-source static random access memory (SRAM) compiler.

What is OpenRAM?

OpenRAM is an award winning open-source Python framework to create the layout, netlists, timing and power models, placement and routing models, and other views necessary to use SRAMs in ASIC design. OpenRAM supports integration in both commercial and open-source flows with both predictive and fabricable technologies.

Documentation

Please take a look at our presentation We have created a detailed presentation that serves as our documentation. This is the most up-to-date information, so please let us know if you see things that need to be fixed.

Basic Setup

Dependencies

The OpenRAM compiler has very few dependencies:

  • Ngspice 26 (or later) or HSpice I-2013.12-1 (or later) or CustomSim 2017 (or later)
  • Python 3.5 or higher
  • Python numpy (pip3 install numpy to install)
  • Python scipy (pip3 install scipy to install)

If you want to perform DRC and LVS, you will need either:

You must set two environment variables:

  • OPENRAM_HOME should point to the compiler source directory.
  • OPENERAM_TECH should point to a root technology directory.

Environment

For example add this to your .bashrc:

  export OPENRAM_HOME="$HOME/openram/compiler"
  export OPENRAM_TECH="$HOME/openram/technology"

You may also wish to add OPENRAM_HOME to your PYTHONPATH:

  export PYTHONPATH="$PYTHONPATH:$OPENRAM_HOME"

We include the tech files necessary for SCMOS SCN4M_SUBM. The SCMOS spice models, however, are generic and should be replaced with foundry models. If you are using FreePDK45, you should also have that set up and have the environment variable point to the PDK. For example add this to your .bashrc:

  export FREEPDK45="/bsoe/software/design-kits/FreePDK45"

You may get the entire FreePDK45 PDK here. If you are using SCMOS, you should install Magic and Netgen. We have included the most recent SCN4M_SUBM design rules from Qflow.

Basic Usage

Once you have defined the environment, you can run OpenRAM from the command line using a single configuration file written in Python.

For example, create a file called myconfig.py specifying the following parameters for your memory:

# Data word size
word_size = 2
# Number of words in the memory
num_words = 16

# Technology to use in $OPENRAM_TECH
tech_name = "scn4m_subm"

# You can use the technology nominal corner only
nominal_corner_only = True
# Or you can specify particular corners
# Process corners to characterize
# process_corners = ["SS", "TT", "FF"]
# Voltage corners to characterize
# supply_voltages = [ 3.0, 3.3, 3.5 ]
# Temperature corners to characterize
# temperatures = [ 0, 25 100]

# Output directory for the results
output_path = "temp"
# Output file base name
output_name = "sram_{0}_{1}_{2}".format(word_size,num_words,tech_name)

# Disable analytical models for full characterization (WARNING: slow!)
# analytical_delay = False

You can then run OpenRAM by executing:

python3 $OPENRAM_HOME/openram.py myconfig

You can see all of the options for the configuration file in $OPENRAM_HOME/options.py

Unit Tests

Regression testing performs a number of tests for all modules in OpenRAM. From the unit test directory ($OPENRAM_HOME/tests), use the following command to run all regression tests:

   python3 regress.py

To run a specific test:

   python3 {unit test}.py 

The unit tests take the same arguments as openram.py itself.

To increase the verbosity of the test, add one (or more) -v options:

   python3 tests/00_code_format_check_test.py -v -t freepdk45

To specify a particular technology use "-t " such as "-t freepdk45". The default for a unit test is scn4m_subm. The default for openram.py is specified in the configuration file.

Porting to a New Technology

If you want to support a enw technology, you will need to create:

  • a setup script for each technology you want to use
  • a technology directory for each technology with the base cells

We provide two technology examples for SCMOS and FreePDK45. Each specific technology (e.g., FreePDK45) should be a subdirectory (e.g., $OPENRAM_TECH/freepdk45) and include certain folders and files:

  • gds_lib folder with all the .gds (premade) library cells:
    • dff.gds
    • sense_amp.gds
    • write_driver.gds
    • cell_6t.gds
    • replica_cell_6t.gds
    • dummy_cell_6t.gds
  • sp_lib folder with all the .sp (premade) library netlists for the above cells.
  • layers.map
  • A valid tech Python module (tech directory with __init__.py and tech.py) with:
    • References in tech.py to spice models
    • DRC/LVS rules needed for dynamic cells and routing
    • Layer information
    • Spice and supply information
    • etc.

Get Involved

Further Help

License

OpenRAM is licensed under the BSD 3-clause License.

Contributors & Acknowledgment

  • Matthew Guthaus from VLSIDA created the OpenRAM project and is the lead architect.
  • James Stine from VLSIARCH co-founded the project.
  • Many students: Hunter Nichols, Michael Grimes, Jennifer Sowash, Yusu Wang, Joey Kunzler, Jesse Cirimelli-Low, Samira Ataei, Bin Wu, Brian Chen, Jeff Butera

If I forgot to add you, please let me know!


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].