From 6db110974ff8771ba0c961e90f71d5d605328a66 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 17 Jul 2018 13:33:06 +0100 Subject: [PATCH] fix pwm compile --- src/bsv/bsv_lib/Makefile.pwm.templates | 4 ++-- src/bsv/bsv_lib/pwm.bsv | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) 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 -- 2.30.2