How to remove `firrtl_black_box_resource_files.f` when generate verilog in one file
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 524
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 46
Description
I have generated the fir file using `circt.stage.ChiselStage.emitCHIRRTL`. Then I used `firtool --disable-annotation-unknown --verilog ./Rift2Chip.fir` to generate an all in one verilog file. However, at the last few line of the file, the code of `firrtl_black_box_resource_files.f` is also merge in. Like this:
```
initial begin
if (!$value$plusargs(FORMAT, myplus)) myplus = DEFAULT;
end
`endif
endmodule
// ----- 8< ----- FILE "firrtl_black_box_resource_files.f" ----- 8< -----
plusarg_reader.v
```
Which make the entire verilog file syntax incorrect. How can I resolve this?
By the way, if I use `--split-verilog`, the firtool works fine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running `firtool --disable-annotation-unknown --verilog ./Rift2Chip.fir` and inspect the generated single-file Verilog around the `firrtl_black_box_resource_files.f` section. Compare this with `--split-verilog`; done means identifying a supported way to produce syntactically valid all-in-one Verilog without embedding the resource-file list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100