Wavedrom waves and registers for the terminal
Project description
Wavedrom ASCII
An ASCII (actually Unicode) representation of Wavedrom waves and bitfields.
Comparison
Example Wavedrom JSON:
{
"signal": [
{
"name": "clk",
"wave": "p......"
},
{
"name": "bus",
"wave": "x.34.5x",
"data": "head body tail"
},
{
"name": "wire",
"wave": "0.1..0."
}
]
}
Wavedrom image:
ASCII representation:
┌────┐ ┌────┐ ┌────┐ ┌────┐ ┌────┐ ┌────┐ ┌────┐
clk ┘ └────┘ └────┘ └────┘ └────┘ └────┘ └────┘ └────
────────────────────╥─────────╥───────────────────╥─────────╥─────────
bus XXXXXXXXXXXXXXXXXXXX║ head ║ body ║ tail ║XXXXXXXXX
────────────────────╨─────────╨───────────────────╨─────────╨─────────
┌─────────────────────────────┐
wire ────────────────────┘ └───────────────────
The Bitfield example from Wavedrom:
Will be rendered as:
31 2928 262524 2019 1514 1211 7 6 0
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│ nf │ mop │v│ lumop │ rs1 │width│ vd │0 0 0 0 1 1 1│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wavedrom-ascii-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for wavedrom_ascii-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 418601213da2e6addd7af4451d5843b95e37b059c854d8e713da154536ffc1ff |
|
MD5 | d49f9e38ef577dcc331f5b1fb2c7ec13 |
|
BLAKE2b-256 | 671767967c3685ce5dfefc94091ea27a3bc40822112129699587c346cc7cb037 |