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.6.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for cocotbext_waves-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d7e1d90114e9580041f32e760d92914d60b84bd60930d67562b2ca09f199a24 |
|
MD5 | c80784de2c4978d1d847fe57c9cfe3b7 |
|
BLAKE2b-256 | 68df478a376800d614286a3f9b2c20fe1c56ff98193436cb71b0c901710bb81f |