fix pwm compile
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 17 Jul 2018 12:33:06 +0000 (13:33 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 17 Jul 2018 12:33:06 +0000 (13:33 +0100)
src/bsv/bsv_lib/Makefile.pwm.templates
src/bsv/bsv_lib/pwm.bsv

index fb08aa7aa42c4736934f85d3aff373569b4f4d1b..8794355b8a56460cda4a38fa3a04d1ab191a8d8d 100644 (file)
@@ -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/
index 987ce91f2d50122b2ded6a1d5ec5ad83e47a9345..010db57f76bfdfe35cc671d382407e08cebb4c47 100644 (file)
@@ -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