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.2.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for wavedrom_ascii-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f25ca864c1130fa42e5cf5af475ad907ddba72bacd2602e7230cc9b7908f756 |
|
MD5 | b6c304b14f689dae7447ed3eff28731a |
|
BLAKE2b-256 | dd9adaf457d2ba64c7ac705f523d87b3c297a4ee39b7d69b8517fbb015fd7c82 |