-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding information about annotations (#23)
Document annotations and targets. Co-authored-by: Schuyler Eldridge <[email protected]> Signed-off-by: Schuyler Eldridge <[email protected]>
- Loading branch information
1 parent
9fdd3a0
commit 5bbdf3e
Showing
5 changed files
with
154 additions
and
4 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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
|
||
all: build/spec.pdf | ||
|
||
build/spec.pdf: spec.md include/spec-template.tex include/firrtl.xml include/ebnf.xml | build/ | ||
IMG_SRCS=$(wildcard include/img_src/*.dot) | ||
IMG_EPSS=$(foreach dotfile,$(IMG_SRCS),build/img/$(patsubst %.dot,%.eps,$(lastword $(subst /, ,$(dotfile))))) | ||
build/spec.pdf: spec.md include/spec-template.tex include/firrtl.xml include/ebnf.xml $(IMG_EPSS) | build/ | ||
pandoc $< --template include/spec-template.tex --syntax-definition include/firrtl.xml --syntax-definition include/ebnf.xml -r markdown+table_captions+inline_code_attributes+gfm_auto_identifiers --filter pandoc-crossref -o $@ | ||
|
||
build/img/%.eps: include/img_src/%.dot | build/img/ | ||
dot -Teps $< -o $@ | ||
|
||
clean: | ||
rm -rf build | ||
|
||
%/: | ||
mkdir $@ | ||
mkdir -p $@ |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
This repository hosts the specification for the FIRRTL language. | ||
|
||
To build this, you need both: | ||
To build this, you need the following: | ||
|
||
- [`pandoc`](https://pandoc.org/) | ||
- [`pandoc-crossref`](https://lierdakil.github.io/pandoc-crossref/) | ||
- A LaTeX distribution, e.g., [`TeX Live`](https://tug.org/texlive/) | ||
- [Graphviz](https://graphviz.org/) | ||
|
||
After resolving these dependencies, run `make` to compile `spec.md` into | ||
`build/spec.pdf`. |
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,22 @@ | ||
digraph A { | ||
graph [dpi=100] | ||
{ | ||
node [shape=box style=filled] | ||
{ | ||
Foo [fillcolor="#fff5eb"] | ||
} | ||
{ | ||
node [fillcolor="#e5f5e0"] | ||
Bar | ||
} | ||
{ | ||
node [fillcolor="#fcbba1"] | ||
Baz | ||
} | ||
} | ||
|
||
Foo -> Bar [label="a"] | ||
Foo -> Bar [label="b"] | ||
Bar -> Baz [label="c"] | ||
Bar -> Baz [label="d"] | ||
} |
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,26 @@ | ||
digraph A { | ||
graph [dpi=100] | ||
{ | ||
node [shape=box style=filled] | ||
{ | ||
Foo [fillcolor="#fff5eb"] | ||
} | ||
{ | ||
node [fillcolor="#e5f5e0"] | ||
"Foo/a:Bar" "Foo/b:Bar" | ||
} | ||
{ | ||
node [fillcolor="#fcbba1"] | ||
"Foo/a:Bar/c:Baz" "Foo/a:Bar/d:Baz" "Foo/b:Bar/c:Baz" "Foo/b:Bar/d:Baz" | ||
} | ||
} | ||
|
||
Foo -> "Foo/a:Bar" [label="a"] | ||
Foo -> "Foo/b:Bar" [label="b"] | ||
|
||
"Foo/a:Bar" -> "Foo/a:Bar/c:Baz" [label="c"] | ||
"Foo/a:Bar" -> "Foo/a:Bar/d:Baz" [label="d"] | ||
|
||
"Foo/b:Bar" -> "Foo/b:Bar/c:Baz" [label="c"] | ||
"Foo/b:Bar" -> "Foo/b:Bar/d:Baz" [label="d"] | ||
} |
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