aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSchuyler Eldridge2021-06-16 23:15:40 -0400
committerGitHub2021-06-17 03:15:40 +0000
commitc7eaa67d21e6e27c020ec18d88baf25a721d14de (patch)
tree05f7060da02e5e605ac15bbef9530f9f1030619e /scripts
parentd708d3f0555bb940ff417d3574c6902bb7a9c853 (diff)
Add --start-from option (#2273)
Add a new option to the FIRRTL compiler, "--start-from = <form>". If used, this will cause the compiler to assume that the input FIRRTL circuit is already in the specific form. It will then skip unnecessary passes given this information. E.g., if a user requests to run "firrtl -X verilog --start-from low" then the compiler will only run transforms necessary to get from low FIRRTL to Verilog. Transforms necessary for ingesting FIRRTL IR will be run if needed (checks and type/kind/flow resolution). To implement this, a CurrentFirrtlStateAnnotation is added. Advanced users can use this directly to tell the FIRRTL compiler exactly what transforms have already been run, including the ability to ignore checks or type/kind/flow resolution if they so desire. Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions