2016-11-17 02:05:53 +01:00
|
|
|
package groundtest
|
|
|
|
|
|
|
|
import Chisel._
|
2016-11-18 23:05:14 +01:00
|
|
|
import config._
|
2016-11-17 02:05:53 +01:00
|
|
|
import diplomacy._
|
|
|
|
import coreplex._
|
|
|
|
import rocketchip._
|
|
|
|
|
|
|
|
class GroundTestTop[+C <: GroundTestCoreplex](_coreplex: Parameters => C)(implicit p: Parameters) extends BaseTop(_coreplex)
|
|
|
|
with DirectConnection
|
|
|
|
with PeripheryMasterAXI4Mem
|
|
|
|
with PeripheryTestRAM {
|
|
|
|
override lazy val module = new GroundTestTopModule(this, () => new GroundTestTopBundle(this))
|
|
|
|
}
|
|
|
|
|
|
|
|
class GroundTestTopBundle[+L <: GroundTestTop[GroundTestCoreplex]](_outer: L) extends BaseTopBundle(_outer)
|
|
|
|
with PeripheryMasterAXI4MemBundle
|
|
|
|
with PeripheryTestRAMBundle {
|
|
|
|
val success = Bool(OUTPUT)
|
|
|
|
}
|
|
|
|
|
|
|
|
class GroundTestTopModule[+L <: GroundTestTop[GroundTestCoreplex], +B <: GroundTestTopBundle[L]](_outer: L, _io: () => B) extends BaseTopModule(_outer, _io)
|
|
|
|
with PeripheryMasterAXI4MemModule
|
|
|
|
with PeripheryTestRAMModule {
|
|
|
|
io.success := outer.coreplex.module.io.success
|
|
|
|
}
|