Skip to content

Commit

Permalink
Cleaner config passing
Browse files Browse the repository at this point in the history
  • Loading branch information
abejgonzalez committed Aug 31, 2023
1 parent 1ae8313 commit 63a4816
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions generators/firechip/src/main/scala/BridgeBinders.scala
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,7 @@ class WithCospikeBridge extends ComposeHarnessBinder({
bootrom = chipyardSystem.bootROM.map(_.module.contents.toArray.mkString(" ")).getOrElse(""),
has_dtm = p(ExportDebug).protocols.contains(DMI) // assume that exposing clockeddmi means we will connect SimDTM
)
ports.map {
p => p.traces.zipWithIndex.map(t => CospikeBridge(
t._1,
t._2,
cfg.isa,
cfg.vlen,
cfg.priv,
cfg.pmpregions,
cfg.mem0_base,
cfg.mem0_size,
cfg.nharts,
cfg.bootrom,
cfg.has_dtm
))
}
ports.map { p => p.traces.zipWithIndex.map(t => CospikeBridge(t._1, t._2, cfg)) }
}
})

Expand Down

0 comments on commit 63a4816

Please sign in to comment.