chisel - 如何将已弃用的低 Firrtl 转换转换为依赖项 API

标签 chisel firrtl

我正在更新一个 Firrtl 转换,如下所示

class RetimeTransform extends Transform {
  override def inputForm: CircuitForm = LowForm
  override def outputForm: CircuitForm = LowForm
  
  ...

新的依赖项 API。将转换更改为这样

class RetimeTransform extends Transform with DependencyAPIMigration {

但现在它不会以与以前相同的顺序运行转换。有没有一种简单的方法来指定依赖项,以便我获得原始行为?

最佳答案

非常感谢 Chisel 团队。看来答案就是像这样进行转换。

class RetimeTransform extends Transform with DependencyAPIMigration {

  override def prerequisites: Seq[TransformDependency] = Forms.LowForm
  override def optionalPrerequisites: Seq[TransformDependency] = Forms.LowFormOptimized
  override def optionalPrerequisiteOf: Seq[TransformDependency] = Forms.LowEmitters

关于chisel - 如何将已弃用的低 Firrtl 转换转换为依赖项 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64108921/

相关文章:

scala - 如何使用chisel模块作为包

Chisel 中的矩阵运算

chisel - 从列表生成 Chisel 模块 IO 接口(interface)

chisel - 在 Chisel3 中 BlackBoxing 后生成 Verilog 代码

scala - 凿子 "Enum(UInt(), 5)"失败

scala - 错误 "Combinational loop detected"

凿子/FIRRTL DefnameDifferentPortsException