lnis-uofu / OpenFPGA

An Open-source FPGA IP Generator
https://openfpga.readthedocs.io/en/master/
MIT License
813 stars 161 forks source link

Introduce -b batch mode execution flag in openfpga shell #183

Closed ganeshgore closed 3 years ago

ganeshgore commented 3 years ago

Is your feature request related to a problem? Please describe. Currently in case of fatal error during openfpga_shell script execution the shell aborts execution and enters in interactive mode. During the regression test (which runs in a non interactive mode) the fatal error freezes the script.

Describe the solution you'd like We need to have -b batch mode command like flag. Which will terminate the openfpga shell with correct exit status code instead of entering in interactive mode.

Describe alternatives you've considered The above solution is feasible

Additional context You can regenerate this behavior locally with wrong command argument. Example build_fabric --compress_routing1

ganeshgore commented 3 years ago

-batch worked well. This can be closed if we add -v flag as well.

tangxifan commented 3 years ago

-v flag is for version display, right? If so, we should reopen that issue and close this one.