chisel3中setResource的根目录在哪里?

where is the root directory of setResource in chisel3?

我正在尝试使用 chisel3 在火箭芯片源代码中使用 BlackBox。

之前,我尝试使用chisel3模板,当我把资源放在src/main/resources/alu/custom_ALU.v (setResource("/alu/custom_ALU.v"))

但是,当我在 rocket-chip 存储库中尝试同样的操作时,它显示 FileNotFoundException

rocket-chip仓库中setResource的根目录在哪里?

appears that setResource is relative to the resource directory as defined by sbt. You are correct the default for this is src/main/resource if your code is in src/main/scala. The problem here, I believe, is rocket-chip invokes firrtl as a separate process instead of as a single multi-project run, so it's probably looking in firrtl's resource directory rocket-chip/firrtl/src/main/resources. This is obviously not very helpful so I think this should be changed. Would you mind filing an issue on the FIRRTL repo?