Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 correctly parse. This is implemented using a simple pandoc filter to extract the bodies of all code blocks with known languages (FIRRTL and Verilog), write them to the build directory, and then run them all through an appropriate tool based on file extension (firtool or verilator). This may be a little cumbersome as every code example has to be completely legal. I.e., this would require a version and circuit on every FIRRTL code example. This may, however, not be such a bad thing. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
- Loading branch information