https://github.com/zegervdv/wavedrom-ascii
Wavedrom waves and bitfields for the terminal
https://github.com/zegervdv/wavedrom-ascii
python terminal wavedrom
Last synced: 10 months ago
JSON representation
Wavedrom waves and bitfields for the terminal
- Host: GitHub
- URL: https://github.com/zegervdv/wavedrom-ascii
- Owner: zegervdv
- License: mit
- Created: 2020-08-23T08:05:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-28T20:20:19.000Z (about 4 years ago)
- Last Synced: 2025-08-14T18:52:53.074Z (10 months ago)
- Topics: python, terminal, wavedrom
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wavedrom ASCII
An ASCII (actually Unicode) representation of [Wavedrom](https://github.com/wavedrom/wavedrom) waves and bitfields.
## Comparison
Example Wavedrom JSON:
``` 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│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
```