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.7.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for cocotbext_waves-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 466a0c9f9e71af9e61faeee0026baa4626264d01da7b36485d10bb3a4d42d487 |
|
MD5 | 00039ae19a5c9565180dedb83703316b |
|
BLAKE2b-256 | 07fa4b131cc39ccc4868ea8bf2ce9fd7a6d29f549ce2685d99469c2de4d049a6 |