update to latest rocket-chip

This commit is contained in:
Howard Mao
2017-06-21 10:55:36 -07:00
parent 0d821efb5f
commit 1f3e892b64
6 changed files with 32 additions and 57 deletions

View File

@@ -14,13 +14,8 @@ class TestHarness(implicit val p: Parameters) extends Module {
def buildTop(p: Parameters): ExampleTop = LazyModule(new ExampleTop()(p))
val dut = Module(buildTop(p).module)
val ser = Module(new SimSerialWrapper(p(SerialInterfaceWidth)))
val nMemChannels = p(coreplex.BankedL2Config).nMemoryChannels
val mem = Module(LazyModule(new SimAXIMem(nMemChannels)).module)
mem.io.axi4 <> dut.io.mem_axi4
ser.io.serial <> dut.io.serial
io.success := ser.io.exit
dut.connectSimAXIMem()
io.success := dut.connectSimSerial()
}
object Generator extends GeneratorApp {

View File

@@ -5,34 +5,22 @@ import config.Parameters
import testchipip._
import rocketchip._
class ExampleTop(implicit p: Parameters) extends BaseTop()(p)
with PeripheryMasterAXI4Mem
with PeripheryBootROM
with PeripheryZero
with PeripheryCounter
with HardwiredResetVector
with RocketPlexMaster
with NoDebug
with PeripherySerial {
override lazy val module = new ExampleTopModule(this, () => new ExampleTopBundle(this))
class ExampleTop(implicit p: Parameters) extends BaseSystem
with HasPeripheryMasterAXI4MemPort
with HasPeripheryErrorSlave
with HasPeripheryZeroSlave
with HasPeripheryBootROM
with HasPeripheryRTCCounter
with HasRocketPlexMaster
with HasNoDebug
with HasPeripherySerial {
override lazy val module = new ExampleTopModule(this)
}
class ExampleTopBundle[+L <: ExampleTop](l: L) extends BaseTopBundle(l)
with PeripheryMasterAXI4MemBundle
with PeripheryBootROMBundle
with PeripheryZeroBundle
with PeripheryCounterBundle
with HardwiredResetVectorBundle
with RocketPlexMasterBundle
with PeripherySerialBundle
class ExampleTopModule[+L <: ExampleTop, +B <: ExampleTopBundle[L]](l: L, b: () => B)
extends BaseTopModule(l, b)
with PeripheryMasterAXI4MemModule
with PeripheryBootROMModule
with PeripheryZeroModule
with PeripheryCounterModule
with HardwiredResetVectorModule
with RocketPlexMasterModule
with NoDebugModule
with PeripherySerialModule
class ExampleTopModule[+L <: ExampleTop](l: L) extends BaseSystemModule(l)
with HasPeripheryMasterAXI4MemPortModuleImp
with HasPeripheryBootROMModuleImp
with HasPeripheryRTCCounterModuleImp
with HasRocketPlexMasterModuleImp
with HasNoDebugModuleImp
with HasPeripherySerialModuleImp