Skip to content

Commit

Permalink
[rtl] use Instance API on VFU
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Apr 19, 2024
1 parent e1c176a commit a8c3315
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions t1/src/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ package object rtl {
// 处理vfu
val vfuResponse: Seq[ValidIO[VFUResponseToSlot]] = parameter.genVec.zipWithIndex.map { case ((gen, slotVec), vfuIndex) =>
// vfu 模块
// TODO: SerializableModuleGenerator should support D/I
val vfu: VFUModule = Module(gen.module())
val vfu: Instance[VFUModule] = gen.instance()
vfu.suggestName(gen.parameter.decodeField.name)
// vfu request distributor
val distributor: Option[Instance[Distributor[SlotRequestToVFU, VFUResponseToSlot]]] = Option.when(gen.parameter.NeedSplit)(
Expand Down

0 comments on commit a8c3315

Please sign in to comment.