Crates.io | librstb |
lib.rs | librstb |
version | 0.1.1 |
source | src |
created_at | 2021-12-11 21:44:53.69842 |
updated_at | 2022-07-30 14:15:35.251783 |
description | Write HDL-Testbenches in Rust. |
homepage | |
repository | https://github.com/benbr8/rstb |
max_upload_size | |
id | 496344 |
size | 264,516 |
The rstb - Rust Test Bench - library aims to provide an easy to use Rust interface to HDL simulators which implement a VPI or VHPI interface.
It is heavily inspired by, the awesome and feature rich cocotb which uses Python to the same purpose.
So why bother? Turns out Rust is ideally suited for this task. It
When comparing to Python, tests in Rust are more verbose and writing them is a bit more of a hassle because of the static typing and borrow checking, but test execution is a lot faster (~80x speedup with simple D-Flipflop example).
Trigger
s)crate-type = ["cdylib"]
to Cargo.toml
as with the examples using cargo build --release
.run_questa.sh
/run_icarus.sh
/run_cadence.sh
)Run it on gitpod (using Icarus Verilog): https://gitpod.io/#https://github.com/benbr8/rstb_examples