B-ASIC is a Python framework for efficient hardware implementation of static algorithms. It provides a path from algorithm to RTL code while giving the designer full control of every step.
pip install git+https://github.com/b-asic-eda/b-asic.gitRendering graphs requires Graphviz to be installed separately.
A Qt binding is required for GUIs (optional feature) — install either PyQt6 or PySide6:
pip install PyQt6from b_asic import SFG, Delay, Input, Output
# Build the signal flow graph of a 7-tap FIR filter
x = Input(name="x")
d0 = Delay(x)
d1 = Delay(d0)
d2 = Delay(d1)
d3 = Delay(d2)
d4 = Delay(d3)
d5 = Delay(d4)
y = Output(
0.5 * x + 0.25 * d0 + 0.25 * d1 + 0.5 * d2 + 0.25 * d3 + 0.25 * d4 + 0.5 * d5,
name="y",
)
fir = SFG(x, y, name="7-tap FIR")
fir.show()Contributions are very welcome. Bug reports, feature requests, and pull requests are all appreciated. See the contributing guide for how to set up a development environment, run tests, and build the docs.
B-ASIC is distributed under the MIT license.
