An open API service indexing awesome lists of open source software.

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

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:

![reg vl](https://svg.wavedrom.com/github/wavedrom/wavedrom/master/test/reg-vl.json5)

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│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
```