2016-11-28 01:16:37 +01:00
|
|
|
// See LICENSE.SiFive for license details.
|
|
|
|
|
2016-11-17 02:05:53 +01:00
|
|
|
package groundtest
|
|
|
|
|
|
|
|
import Chisel._
|
2017-06-02 01:06:36 +02:00
|
|
|
import config.Parameters
|
|
|
|
import diplomacy.LazyModule
|
2016-11-17 02:05:53 +01:00
|
|
|
import rocketchip._
|
|
|
|
|
2017-06-02 01:06:36 +02:00
|
|
|
class GroundTestTop(implicit p: Parameters) extends BaseSystem
|
|
|
|
with HasPeripheryMasterAXI4MemPort
|
|
|
|
with HasPeripheryTestRAMSlave {
|
|
|
|
override lazy val module = new GroundTestTopModule(this)
|
2016-11-23 00:01:45 +01:00
|
|
|
|
|
|
|
val coreplex = LazyModule(new GroundTestCoreplex)
|
|
|
|
|
|
|
|
socBus.node := coreplex.mmio
|
|
|
|
coreplex.mmioInt := intBus.intnode
|
2017-02-04 01:55:44 +01:00
|
|
|
(mem zip coreplex.mem) foreach { case (xbar, channel) => xbar.node :=* channel }
|
2016-11-17 02:05:53 +01:00
|
|
|
}
|
|
|
|
|
2017-06-02 01:06:36 +02:00
|
|
|
class GroundTestTopModule[+L <: GroundTestTop](_outer: L) extends BaseSystemModule(_outer)
|
|
|
|
with HasPeripheryMasterAXI4MemPortModuleImp {
|
|
|
|
val io_success = IO(Bool(OUTPUT))
|
|
|
|
io_success := outer.coreplex.module.io.success
|
2016-11-17 02:05:53 +01:00
|
|
|
}
|