Skip to content

Commit

Permalink
Move clicintaddr register to wavedrom
Browse files Browse the repository at this point in the history
Move clicintaddr register to wavedrom diagram
  • Loading branch information
wmat committed Sep 30, 2024
1 parent 3e4e499 commit f183af0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs-resources
2 changes: 2 additions & 0 deletions src/clic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ only certain mode/trigger/shv types.
0 reserved for smclicshv extension (WARL 0)
----

include::images/wavedrom/clicintattr.edn[]

The 2-bit `trig` WARL field specifies the trigger type and polarity for each
interrupt input. Bit 1, `trig[0]`, is defined as "edge-triggered"
(0: level-triggered, 1: edge-triggered); while bit 2, `trig[1]`, is defined
Expand Down
9 changes: 9 additions & 0 deletions src/images/wavedrom/clicintattr.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[wavedrom, ,svg]
....
{reg: [
{bits: 1, name: 'WARL(0)' },
{bits: 2, name: 'trig' },
{bits: 3, name: 'WPRI(0)' },
{bits: 2, name: 'mode' },
]}
....

0 comments on commit f183af0

Please sign in to comment.