-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd403fd
commit 8888b9c
Showing
2 changed files
with
303 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...tsite-guide/40-write-content/60-advanced-formatting/70-digital-timing/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Digital Timing | ||
|
||
To create a digital timing diagram (wave form), add text inside a fenced code block with the `wavedrom` identifier. | ||
|
||
GitSite uses [wavedrom](https://github.com/wavedrom/wavedrom) to render digital timing diagrams. Wavedrom is an open source, JavaScript-based library that makes it easy to render digital timing diagrams into SVG vector graphics. | ||
|
||
```wavedrom | ||
{ signal: [ | ||
{ name: "clk", wave: "p.....|..." }, | ||
{ name: "data", wave: "x.345x|=.x", data: ["head", "body", "tail", "data"] }, | ||
{ name: "req", wave: "0.1..0|1.0" }, | ||
{}, | ||
{ name: "ack", wave: "1.....|01." } | ||
]} | ||
``` | ||
|
||
```wavedrom | ||
{ signal: [ | ||
{ name: "clk", wave: "p.....|..." }, | ||
{ name: "data", wave: "x.345x|=.x", data: ["head", "body", "tail", "data"] }, | ||
{ name: "req", wave: "0.1..0|1.0" }, | ||
{}, | ||
{ name: "ack", wave: "1.....|01." } | ||
]} | ||
``` | ||
|
||
You can specify the alignment by `align=center`. | ||
|
||
```alert type=tip | ||
Use the [wavedrom online editor](https://wavedrom.com/editor.html) to edit your digital timing digram. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters