Skip to content

Commit

Permalink
fix: remove tieoff()
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularityKChen committed Jan 7, 2023
1 parent 4b60db6 commit dff760d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions generators/chipyard/src/main/scala/HarnessBinders.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import chisel3.experimental.{Analog, BaseModule, DataMirror, Direction}
import freechips.rocketchip.config.{Field, Config, Parameters}
import freechips.rocketchip.diplomacy.{LazyModule, LazyModuleImpLike}
import freechips.rocketchip.amba.axi4.{AXI4Bundle, AXI4SlaveNode, AXI4MasterNode, AXI4EdgeParameters}
import freechips.rocketchip.amba.apb.{APBParameters}
import freechips.rocketchip.devices.debug._
import freechips.rocketchip.jtag.{JTAGIO}
import freechips.rocketchip.system.{SimAXIMem}
Expand Down Expand Up @@ -234,7 +235,18 @@ class WithTieOffInterrupts extends OverrideHarnessBinder({

class WithTieOffL2FBusAXI extends OverrideHarnessBinder({
(system: CanHaveSlaveAXI4Port, th: HasHarnessSignalReferences, ports: Seq[ClockedIO[AXI4Bundle]]) => {
ports.foreach({ p => p := DontCare; p.bits.tieoff() })
ports.foreach({
p =>
p := DontCare
p.bits.ar.valid := false.B
p.bits.ar.bits := DontCare
p.bits.aw.valid := false.B
p.bits.aw.bits := DontCare
p.bits.w.valid := false.B
p.bits.w.bits := DontCare
p.bits.r.ready := false.B
p.bits.b.ready := false.B
})
}
})

Expand Down Expand Up @@ -274,7 +286,12 @@ class WithTiedOffDebug extends OverrideHarnessBinder({
d.dmiClock := false.B.asClock
d.dmiReset := true.B
case a: ClockedAPBBundle =>
a.tieoff()
a.pwrite := false.B
a.paddr := 0.U
a.pprot := APBParameters.PROT_DEFAULT
a.pwdata := 0.U
a.pstrb := 0.U
a.pauser :<= BundleMap()
a.clock := false.B.asClock
a.reset := true.B.asAsyncReset
a.psel := false.B
Expand Down

0 comments on commit dff760d

Please sign in to comment.