Skip to content

Commit

Permalink
Update graphics.adoc
Browse files Browse the repository at this point in the history
testing symbols in wavedrom

Signed-off-by: Kersten Richter <[email protected]>
  • Loading branch information
kersten1 authored Jun 7, 2024
1 parent a3a2128 commit da92152
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/graphics.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -541,3 +541,36 @@ At the time of this writing, we have noticed the following unexpected results du
* Some, but not all, unicode that works in AsciiDoc (see <<useful-unicode>> ) actually breaks the Wavedrom diagram build, and other unicode does not break the Wavedrom diagram build but still doesn't render properly.
* Latexmath appears to not work at all in Wavedrom diagrams.
* After struggling to understand why various options that we explored for an acceptable &#8800; in Wavedrom diagrams and discovering the above rather confusing results, we decided to use `!=` as a workaround. With the fact that both Asciidoctor and Wavedrom are evolving, and also the fact that bytefield is being considered as an alternative diagrams rendering solution, it seems possible that this workaround will be temporary.
==== testing wavedrom
the first test
[wavedrom, ,svg]
....
{reg: [
{bits: 2, name: 'op', type: 8, attr: ['2', 'C0','C0','C0','C0','C0']},
{bits: 3, name: 'rs2&prime;', type: 3, attr: ['3', 'src','src','src','src','src']},
{bits: 2, name: 'imm', type: 2, attr: ['2', 'offset[2|6]','offset[7:6]','offset[7:6]','offset[2|6]','offset[7:6]']},
{bits: 3, name: 'rs1`', type: 3, attr: ['3', 'base','base','base','base','base']},
{bits: 3, name: 'imm', type: 3, attr: ['3', 'offset[5:3]','offset[5:3]','offset[5|4|8]','offset[5:3]','offset[5:3]']},
{bits: 3, name: 'funct3', type: 8, attr: ['3', 'C.SW','C.SD','C.SQ','C.FSW','C.FSD']},
], config: {bits: 16}}
....
The second test
[wavedrom, ,svg]
....
{reg: [
{bits: 2, name: 'op', type: 8, attr: ['2', 'C0','C0','C0','C0','C0']},
{bits: 3, name: 'rs2 &prime;', type: 3, attr: ['3', 'src','src','src','src','src']},
{bits: 2, name: 'imm', type: 2, attr: ['2', 'offset[2|6]','offset[7:6]','offset[7:6]','offset[2|6]','offset[7:6]']},
{bits: 3, name: 'rs1`', type: 3, attr: ['3', 'base','base','base','base','base']},
{bits: 3, name: 'imm', type: 3, attr: ['3', 'offset[5:3]','offset[5:3]','offset[5|4|8]','offset[5:3]','offset[5:3]']},
{bits: 3, name: 'funct3', type: 8, attr: ['3', 'C.SW','C.SD','C.SQ','C.FSW','C.FSD']},
], config: {bits: 16}}
....

0 comments on commit da92152

Please sign in to comment.