first attempt at heter. port

This commit is contained in:
abejgonzalez
2019-05-20 17:44:47 -07:00
parent bc54b24b85
commit 8b3fef85ce
7 changed files with 444 additions and 2 deletions

View File

@@ -127,3 +127,60 @@ class BoomTopWithGPIO(implicit p: Parameters) extends BoomTop
class BoomTopWithGPIOModule(l: BoomTopWithGPIO)
extends BoomTopModule(l)
with HasPeripheryGPIOModuleImp
// -------------------------------
// BOOM + Rocket Top Level Systems
// -------------------------------
class BoomAndRocketTop(implicit p: Parameters) extends ExampleBoomAndRocketSystem
with HasNoDebug
with HasPeripherySerial {
override lazy val module = new BoomAndRocketTopModule(this)
}
class BoomAndRocketTopModule[+L <: BoomAndRocketTop](l: L) extends ExampleBoomAndRocketSystemModule(l)
with HasRTCModuleImp
with HasNoDebugModuleImp
with HasPeripherySerialModuleImp
with DontTouch
//---------------------------------------------------------------------------------------------------------
class BoomAndRocketTopWithPWMTL(implicit p: Parameters) extends BoomAndRocketTop
with HasPeripheryPWMTL {
override lazy val module = new BoomAndRocketTopWithPWMTLModule(this)
}
class BoomAndRocketTopWithPWMTLModule(l: BoomAndRocketTopWithPWMTL) extends BoomAndRocketTopModule(l)
with HasPeripheryPWMTLModuleImp
//---------------------------------------------------------------------------------------------------------
class BoomAndRocketTopWithPWMAXI4(implicit p: Parameters) extends BoomAndRocketTop
with HasPeripheryPWMAXI4 {
override lazy val module = new BoomAndRocketTopWithPWMAXI4Module(this)
}
class BoomAndRocketTopWithPWMAXI4Module(l: BoomAndRocketTopWithPWMAXI4) extends BoomAndRocketTopModule(l)
with HasPeripheryPWMAXI4ModuleImp
//---------------------------------------------------------------------------------------------------------
class BoomAndRocketTopWithBlockDevice(implicit p: Parameters) extends BoomAndRocketTop
with HasPeripheryBlockDevice {
override lazy val module = new BoomAndRocketTopWithBlockDeviceModule(this)
}
class BoomAndRocketTopWithBlockDeviceModule(l: BoomAndRocketTopWithBlockDevice) extends BoomAndRocketTopModule(l)
with HasPeripheryBlockDeviceModuleImp
//---------------------------------------------------------------------------------------------------------
class BoomAndRocketTopWithGPIO(implicit p: Parameters) extends BoomAndRocketTop
with HasPeripheryGPIO {
override lazy val module = new BoomAndRocketTopWithGPIOModule(this)
}
class BoomAndRocketTopWithGPIOModule(l: BoomAndRocketTopWithGPIO)
extends BoomAndRocketTopModule(l)
with HasPeripheryGPIOModuleImp