generated from riscv/docs-spec-template
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace bounds decoding ascii art with bytefield diagram
- Loading branch information
1 parent
643f546
commit 0f172e7
Showing
3 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
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
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,16 @@ | ||
[bytefield] | ||
---- | ||
(defattrs :plain [:plain {:font-family "M+ 1p Fallback" :font-size 25}]) | ||
(def row-height 80) | ||
(def row-header-fn nil) | ||
(def left-margin 100) | ||
(def right-margin 100) | ||
(def boxes-per-row 32) | ||
(draw-column-headers {:height 50 :font-size 22 :labels (reverse ["0" "" "" "" "" "" "" "" "" "" "E" "" "" "" "" "" "" "" "" "" "E+MW" "" "" "" "" "" "" "" "" "" "" "MXLEN-1"])}) | ||
|
||
(draw-box "a[MXLEN - 1:E + MW] + cb" {:span 12}) | ||
(draw-box "B[MW - 1:0]" {:span 10}) | ||
(draw-box "0" {:span 10}) | ||
|
||
(draw-box "MXLEN" {:span 32 :borders {}}) | ||
---- |
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,16 @@ | ||
[bytefield] | ||
---- | ||
(defattrs :plain [:plain {:font-family "M+ 1p Fallback" :font-size 25}]) | ||
(def row-height 80) | ||
(def row-header-fn nil) | ||
(def left-margin 100) | ||
(def right-margin 100) | ||
(def boxes-per-row 32) | ||
(draw-column-headers {:height 50 :font-size 22 :labels (reverse ["0" "" "" "" "" "" "" "" "" "" "E" "" "" "" "" "" "" "" "" "" "E+MW" "" "" "" "" "" "" "" "" "" "" "MXLEN"])}) | ||
|
||
(draw-box "a[MXLEN - 1:E + MW] + ct" {:span 12}) | ||
(draw-box "T[MW - 1:0]" {:span 10}) | ||
(draw-box "0" {:span 10}) | ||
|
||
(draw-box "MXLEN+1" {:span 32 :borders {}}) | ||
---- |