As discussed in https://github.com/llvm/circt/issues/2254 , firtool -verilog will append the contents of the firrtl_black_box_resource_files.f file into the output verilog file. This results in non-compliant verilog. Since these BlackBox modules are included in the output verilog the firrtl_black_box_resource_files.f doesn't appear to be useful anyways.
-verilog is only suitable for writing test-cases in the compile, it will not in general produce valid verilog. I intend to hide the option at some point in the future.
As discussed in https://github.com/llvm/circt/issues/2254 ,
firtool -verilog
will append the contents of thefirrtl_black_box_resource_files.f
file into the output verilog file. This results in non-compliant verilog. Since these BlackBox modules are included in the output verilog thefirrtl_black_box_resource_files.f
doesn't appear to be useful anyways.-split-verilog
does not have this issue.Below is an example