Files
chipyard/src/main/scala/pwm/Top.scala
2017-04-20 18:12:44 -07:00

18 lines
560 B
Scala

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