Commit 7bccdb7
committed
[nfc] Add ability to test code snippets
This demonstrates a flow that can be used to validate that all code
snippets used in the FIRRTL specification can be compiled. This is
implemented using a simple pandoc filter to extract all FIRRTL code
blocks, write them to the build directory, and then run them all through
firtool. This may be a little cumbersome as every code example has to be
completely legal FIRRTL. I.e., this would require a version and circuit
on every code example. This may not be such a bad thing.
Signed-off-by: Schuyler Eldridge <[email protected]>1 parent 35de1a6 commit 7bccdb7
2 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments