Chisel3 开源项目: 如何打印所有 pass 的 FIR 文件
在使用开源 Chisel3 时,可以通过以下步骤打印所有 pass 的 FIR:
- 在终端中进入项目文件夹,使用以下命令打开 sbt shell:
sbt
- 在 sbt shell 中,使用以下命令编译项目:
compile
- 在 sbt shell 中,使用以下命令运行 firrtl 的生成:
runMain firrtl.stage.FirrtlMain -i '<chisel生成的firrtl文件>' -o '<输出文件路径>' -X verilog
其中,'<chisel生成的firrtl文件>' 为 chisel 生成的 firrtl 文件路径,'<输出文件路径>' 为输出文件路径,-X verilog 指定输出格式为 verilog。
- 在 sbt shell 中,使用以下命令查看编译过程中所有 pass 的 FIR:
runMain firrtl.stage.FirrtlMain -i '<chisel生成的firrtl文件>' -X verilog --show-firrtl
其中,'<chisel生成的firrtl文件>' 为 chisel 生成的 firrtl 文件路径,-X verilog 指定输出格式为 verilog,--show-firrtl 指定打印所有 pass 的 FIR。
以上步骤可以帮助你打印所有 pass 的 FIR。
原文地址: https://www.cveoy.top/t/topic/myRP 著作权归作者所有。请勿转载和采集!