Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add FIRRTL [1], a language/IR that is produced by Chisel [2] and compiled to Verilog using the CIRCT [3] project.
Description
This adds the FIRRTL language.
Checklist:
LFSR.fir
was generated using the Chisel LFSR library.Memory.fir
is adapted from memoryMetadata.fir.#2f632f
I think this is over the bar for a new language. GitHub is showing 2.8k files and there appear to be a sufficiently large number of individual repositories. I've tried filtering out projects which have large numbers of these files, e.g.,
llvm/circt
, and things still look good. The following query removes allllvm
,chipsalliance
, orucb-bar
users and is still showing 2k+ samples:https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.fir+circuit+NOT+user%3Allvm+NOT+user%3Achipsalliance+NOT+user%3Aucb-bar
This pre-emptively adds a heuristic to avoid a collision withHeuristics should be unnecessary if there is no other language using the extension. This may need to revisited if Fortran IR wants to add syntax highlighting..fir
which is also used by Fortran IR. Fortran IR is not presently in Linguist. Fortunately, the heuristic to avoid collision is trivial. Let me know if the PR should not pre-emptively include this heuristic.Metadata
Fixes chipsalliance/firrtl-spec#54.