From: Luke Kenneth Casson Leighton Date: Tue, 17 Jul 2018 12:33:06 +0000 (+0100) Subject: fix pwm compile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6db110974ff8771ba0c961e90f71d5d605328a66;p=pinmux.git fix pwm compile --- diff --git a/src/bsv/bsv_lib/Makefile.pwm.templates b/src/bsv/bsv_lib/Makefile.pwm.templates index fb08aa7..8794355 100644 --- a/src/bsv/bsv_lib/Makefile.pwm.templates +++ b/src/bsv/bsv_lib/Makefile.pwm.templates @@ -1,7 +1,7 @@ ### Makefile for the srio -TOP_MODULE:=mkPWM_bus_real -TOP_FILE:=pwm_instance.bsv +TOP_MODULE:=mkPWM_bus +TOP_FILE:=pwm.bsv HOMEDIR:=./ TOP_DIR:=./ BSVBUILDDIR:=./build/ diff --git a/src/bsv/bsv_lib/pwm.bsv b/src/bsv/bsv_lib/pwm.bsv index 987ce91..010db57 100644 --- a/src/bsv/bsv_lib/pwm.bsv +++ b/src/bsv/bsv_lib/pwm.bsv @@ -65,11 +65,9 @@ package pwm; interface PWMIO io; endinterface - //(*synthesize*) + (*synthesize*) module mkPWM#(Clock ext_clock)(PWM); - //let pwmnum = valueOf(pwmnum_); - let bus_clock <- exposeCurrentClock; let bus_reset <- exposeCurrentReset; @@ -269,7 +267,7 @@ package pwm; `USERSPACE) axi4_slave; endinterface - //(*synthesize*) + (*synthesize*) module mkPWM_bus#(Clock ext_clock)(Ifc_PWM_bus); PWM pwm <-mkPWM(ext_clock); AXI4_Lite_Slave_Xactor_IFC#(`PADDR,`Reg_width, `USERSPACE) @@ -295,6 +293,7 @@ package pwm; endrule interface pwm_io = pwm.io; + interface axi4_slave = s_xactor.axi_side; endmodule `endif