update to tilelink2

This commit is contained in:
Howard Mao
2017-04-20 17:44:05 -07:00
parent 2fecb10cfc
commit 27bd063441
11 changed files with 117 additions and 164 deletions

View File

@@ -2,16 +2,16 @@ package pwm
import chisel3._
import example._
import cde.Parameters
import config.Parameters
class ExampleTopWithPWM(q: Parameters) extends ExampleTop(q)
class ExampleTopWithPWM(implicit p: Parameters) extends ExampleTop()(p)
with PeripheryPWM {
override lazy val module = Module(
new ExampleTopWithPWMModule(p, this, new ExampleTopWithPWMBundle(p)))
override lazy val module = new ExampleTopWithPWMModule(this, () => new ExampleTopWithPWMBundle(this))
}
class ExampleTopWithPWMBundle(p: Parameters) extends ExampleTopBundle(p)
class ExampleTopWithPWMBundle[+L <: ExampleTopWithPWM](l: L)
extends ExampleTopBundle(l)
with PeripheryPWMBundle
class ExampleTopWithPWMModule(p: Parameters, l: ExampleTopWithPWM, b: => ExampleTopWithPWMBundle)
extends ExampleTopModule(p, l, b) with PeripheryPWMModule
class ExampleTopWithPWMModule[+L <: ExampleTopWithPWM, +B <: ExampleTopWithPWMBundle[L]](l: L, b: () => B)
extends ExampleTopModule(l, b) with PeripheryPWMModule