Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add graphviz type hierarchy with built svg/png
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
- Loading branch information
Showing
4 changed files
with
323 additions
and
776 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.PHONY: all | ||
|
||
sources = \ | ||
type_hierarchy.dot | ||
|
||
all: $(sources:%.dot=%.svg) $(sources:%.dot=%.png) | ||
|
||
%.svg: %.dot | ||
dot -Tsvg $< -o $@ | ||
|
||
%.png: %.dot | ||
dot -Tpng $< -o $@ |
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,52 @@ | ||
digraph TypeHierarchy { | ||
graph [rankdir=BT bgcolor="transparent"] | ||
{ node [style=filled,shape=box] | ||
{ node [fillcolor="#f7fbff"] | ||
Data | ||
Element | ||
Bits Num | ||
Aggregate | ||
VecLike | ||
"Chisel Internal" | ||
} | ||
{ node [fillcolor="#e5f5e0"] | ||
Bool UInt SInt FixedPoint | ||
Reset | ||
AsyncReset | ||
Record | ||
Bundle | ||
Vec | ||
"Chisel Types" | ||
} | ||
{ node [fillcolor="#fcbba1"] | ||
"User Types" | ||
Ellipsis [label="..."] | ||
} | ||
|
||
subgraph cluster_data_hierarchy { | ||
color=transparent | ||
Element | ||
Bits Num | ||
Reset | ||
Bool UInt SInt FixedPoint | ||
color=transparent | ||
Aggregate | ||
VecLike | ||
Record | ||
Bundle | ||
Vec | ||
|
||
{Aggregate Element} -> Data | ||
{Bits Reset} -> Element | ||
{FixedPoint SInt UInt} -> {Bits Num} | ||
Bool -> {UInt Reset} | ||
Ellipsis -> Bundle -> Record -> Aggregate | ||
Vec -> {Aggregate VecLike} | ||
AsyncReset -> {Element Reset} | ||
} | ||
subgraph cluster_legend { | ||
label=Legend | ||
"User Types" -> "Chisel Types" -> "Chisel Internal" | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.