fix chisel3 deprecations

This commit is contained in:
Howard Mao
2017-06-22 10:04:47 -07:00
parent bac811a173
commit a1d866c344
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ trait PWMTLModule extends Module with HasRegMap {
// For how many cycles should the clock be high?
val duty = Reg(UInt(w.W))
// Is the PWM even running at all?
val enable = Reg(init = false.B)
val enable = RegInit(false.B)
val base = Module(new PWMBase(w))
io.pwmout := base.io.pwmout