2025-10-12 16:08:34 +00:00
2021-11-25 13:39:55 +01:00
2022-05-11 16:15:21 +02:00
2025-10-12 16:08:34 +00:00
2022-05-11 16:15:21 +02:00
2025-10-12 16:08:34 +00:00
2022-12-03 19:40:29 +01:00
2025-10-12 15:25:21 +00:00

libreda-python

Work-in-progress

Python binding for libreda-db.

Install

Create a Python virtual environment:

python -m venv myPythonEnv
source myPythonEnv/bin/activate

# Install maturin (build tool for Rust-based Python packages)
pip install maturin

Download and install libreda-python:

# LibrEDA consists of many Rust libraries. The workspace bundles them together.
git clone --recursive https://codeberg.org/LibrEDA/libreda-rs-workspace libreda
cd libreda/libreda-python

# Install in development mode.
maturin develop

Run a Python shell and import libreda:

python
import libreda as db

chip = db.Chip()
my_cell = chip.create_cell("A")

# Write verilog.
writer = db.io.VerilogWriter()
writer.write_netlist(chip, "output.v")

# Read verilog.
reader = db.io.VerilogReader()
netlist = reader.read_netlist("output.v")
Description
No description provided
Readme 196 KiB
Languages
Rust 93.9%
Python 6.1%