CocotbExt Wavedrom diagram generator
Project description
Cocotb Waves
Table of Contents
Introduction
This repository contains wavedrom svg generator for cocotb sims.
Installation
Installation from pip (release version, stable):
$ pip install cocotbext-waves
Usage
Example sampling AHB signals using cocotbext-ahb
.
from cocotbext.waves import waveform
...
waves = waveform(
clk=dut.hclk, name="ahb_test", hscale=3, debug=True
)
waves.add_signal(
[
dut.hsel,
dut.haddr,
dut.hburst,
dut.hsize,
dut.htrans,
dut.hwdata,
dut.hwrite,
dut.hready_in,
],
group="MOSI",
)
waves.add_signal(
[
dut.hrdata,
dut.hready,
dut.hresp,
],
group="MISO",
)
...
<Running sim, issuing txns>
...
waves.save()
waves.save_txt()
Output:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cocotbext-waves-0.1.5.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for cocotbext_waves-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95478f605b6d8050c4fb1dc24b9869ad74e5932fdd35a2be7e420a14ea2de47d |
|
MD5 | 4d734ac3741b2375c1e8017ba8cf76be |
|
BLAKE2b-256 | f93ec59fc6dd4b97f800d638402079436c3e14266e02abe072f2cdadaa4812b2 |