9bbde9767c
Cake pattern only 2 layers instead of 3. Standardized naming convention. Comments for periphery mix-ins. Testharnesses use new periphery helper methods.
27 lines
787 B
Scala
27 lines
787 B
Scala
// See LICENSE.SiFive for license details.
|
|
|
|
package groundtest
|
|
|
|
import Chisel._
|
|
import config.Parameters
|
|
import diplomacy.LazyModule
|
|
import rocketchip._
|
|
|
|
class GroundTestTop(implicit p: Parameters) extends BaseSystem
|
|
with HasPeripheryMasterAXI4MemPort
|
|
with HasPeripheryTestRAMSlave {
|
|
override lazy val module = new GroundTestTopModule(this)
|
|
|
|
val coreplex = LazyModule(new GroundTestCoreplex)
|
|
|
|
socBus.node := coreplex.mmio
|
|
coreplex.mmioInt := intBus.intnode
|
|
(mem zip coreplex.mem) foreach { case (xbar, channel) => xbar.node :=* channel }
|
|
}
|
|
|
|
class GroundTestTopModule[+L <: GroundTestTop](_outer: L) extends BaseSystemModule(_outer)
|
|
with HasPeripheryMasterAXI4MemPortModuleImp {
|
|
val io_success = IO(Bool(OUTPUT))
|
|
io_success := outer.coreplex.module.io.success
|
|
}
|