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._
|
|
|
|
|
2016-11-23 00:01:45 +01:00
|
|
|
class GroundTestTop(implicit p: Parameters) extends BaseTop
|
2016-11-17 02:05:53 +01:00
|
|
|
with PeripheryMasterAXI4Mem
|
|
|
|
with PeripheryTestRAM {
|
|
|
|
override lazy val module = new GroundTestTopModule(this, () => new GroundTestTopBundle(this))
|
2016-11-23 00:01:45 +01:00
|
|
|
|
|
|
|
val coreplex = LazyModule(new GroundTestCoreplex)
|
|
|
|
|
|
|
|
socBus.node := coreplex.mmio
|
|
|
|
coreplex.mmioInt := intBus.intnode
|
|
|
|
(mem zip coreplex.mem) foreach { case (m, c) => m := c }
|
2016-11-17 02:05:53 +01:00
|
|
|
}
|
|
|
|
|
2016-11-23 00:01:45 +01:00
|
|
|
class GroundTestTopBundle[+L <: GroundTestTop](_outer: L) extends BaseTopBundle(_outer)
|
2016-11-17 02:05:53 +01:00
|
|
|
with PeripheryMasterAXI4MemBundle
|
|
|
|
with PeripheryTestRAMBundle {
|
|
|
|
val success = Bool(OUTPUT)
|
|
|
|
}
|
|
|
|
|
2016-11-23 00:01:45 +01:00
|
|
|
class GroundTestTopModule[+L <: GroundTestTop, +B <: GroundTestTopBundle[L]](_outer: L, _io: () => B) extends BaseTopModule(_outer, _io)
|
2016-11-17 02:05:53 +01:00
|
|
|
with PeripheryMasterAXI4MemModule
|
|
|
|
with PeripheryTestRAMModule {
|
|
|
|
io.success := outer.coreplex.module.io.success
|
|
|
|
}
|