From 594ec8667a290690e3ecb1994c3d48109bdb626e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 17 Jul 2018 06:19:53 +0100 Subject: [PATCH] continue adding pwmnum argument --- src/bsv/bsv_lib/pwm.bsv | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bsv/bsv_lib/pwm.bsv b/src/bsv/bsv_lib/pwm.bsv index 02b5dc9..35c6d1f 100644 --- a/src/bsv/bsv_lib/pwm.bsv +++ b/src/bsv/bsv_lib/pwm.bsv @@ -270,8 +270,8 @@ package pwm; endinterface (*synthesize*) - module mkPWM_bus#(Clock ext_clock)(Ifc_PWM_bus); - PWM pwm <-mkPWM(ext_clock); + module mkPWM_bus#(Clock ext_clock, numeric type pwmnum)(Ifc_PWM_bus); + PWM pwm <-mkPWM(ext_clock, pwmnum); AXI4_Lite_Slave_Xactor_IFC#(`PADDR,`Reg_width, `USERSPACE) s_xactor<-mkAXI4_Lite_Slave_Xactor(); @@ -306,8 +306,8 @@ package pwm; endinterface (*synthesize*) - module mkPWM_bus#(Clock ext_clock)(Ifc_PWM_bus); - PWM pwm <-mkPWM(ext_clock); + module mkPWM_bus#(Clock ext_clock, numeric type pwmnum)(Ifc_PWM_bus); + PWM pwm <-mkPWM(ext_clock, pwmnum); AXI4_Slave_Xactor_IFC#(`PADDR,`Reg_width, `USERSPACE) s_xactor<-mkAXI4_Slave_Xactor(); @@ -339,7 +339,7 @@ package pwm; (*synthesize*) module mkTb(Empty); let clk <- exposeCurrentClock; - PWM pwm <- mkPWM(clk); + PWM pwm <- mkPWM(clk, 32); Reg#(Bit#(5)) rg_state <- mkReg(0); rule state1(rg_state==0); -- 2.30.2