Skip to main content

MBIST wrapper and fault-flow generator

Project description

autombist

autombist automatically generates MBIST integration artifacts for OpenRAM-generated SRAM macros. It builds a March C-oriented MBIST wrapper around your memory interface, emits the required MBIST RTL files, and creates outputs under out/ by default.

The generated artifacts can be synthesized with Yosys or other synthesis tools. autombist also supports fault simulation by injecting stuck-at faults (SA0 and SA1) and validating behavior through Cocotb with Icarus Verilog.

What It Generates

For each memory in your config, autombist generates a module directory under out/<memory_name>/ with:

  • MBIST wrapper Verilog
  • Required MBIST RTL support files
  • Optional saboteur wrapper for fault injection (--test mode)
  • Optional fault masks and a local simulation Makefile (--test mode)

Prerequisites

  1. Python 3.10+
  2. OpenRAM-generated memory and matching config file
  3. For fault simulation:
    • Icarus Verilog (iverilog) installed system-wide
    • Cocotb installed in your Python environment

Installation

Install from the repository root:

python -m pip install .

For development:

python -m pip install -e .

If the package is published to PyPI, you can install directly with:

python -m pip install autombist

Basic Generation

Generate MBIST outputs using the default output directory (out):

autombist --config config.yml --out out

If --out is omitted, out/ is used by default.

Fault Simulation Flow

Generate fault-enabled artifacts (saboteur + fault masks + module Makefile):

autombist --config config.yml --out out --test --faults 50 --seed 1234

This command injects random SA0/SA1 faults into the memory model and writes fault files to:

out/<memory_name>/faults/

Then run simulation from the generated module directory:

cd out/<memory_name>
make

For verbose simulation output:

make debug

Synthesis

Use the generated wrapper and MBIST RTL files in your synthesis flow (for example, Yosys or equivalent EDA tools).

CLI Help

autombist --help
autombist --version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autombist-0.3.1.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autombist-0.3.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file autombist-0.3.1.tar.gz.

File metadata

  • Download URL: autombist-0.3.1.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for autombist-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4eeac06a5535b896404efbba42171e8b4564fc3932a960fdd2bfa3ef9cdcbb29
MD5 035e57afe09496203dee5bec39ec905c
BLAKE2b-256 2aa7629b235459f37977a7ff7e9f045f19d2539b4dba36b348e3751e2d9f98ea

See more details on using hashes here.

File details

Details for the file autombist-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: autombist-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for autombist-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00ee79139132ae587d2d5f90ee8446a7b12722f11249e93c2b603ebeef81839b
MD5 f37c0f0c9369a110346940e44303cf3f
BLAKE2b-256 5d3d1d8acc463261971b317aaa97641fc5f908fd51356b07e5439486920b7643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page