update pwm to consistent naming convention
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:51:59 +0000 (04:51 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:51:59 +0000 (04:51 +0000)
src/interface_decl.py
src/interface_def.py
src/wire_def.py

index 36a1990b6dcdf5ee1dc0b841e009c8a2c8c50451..1d22bbf829554aafcd090decaf05521f498ba7bd 100644 (file)
@@ -167,7 +167,7 @@ jtaginterface_decl = Interface([{'name': 'jtag{0}_tdi'},
                                 {'name': 'jtag{0}_trst'},
                                 {'name': 'jtag{0}_tdo', 'action': True}])
 
-pwminterface_decl = Interface([{'name': "pwm{0}", 'action': True}])
+pwminterface_decl = Interface([{'name': "pwm{0}_pwm", 'action': True}])
 
 # ======================================= #
 
index 5ea37c7aa58fa738f56d8dc4886fbe00fb7f1edd..0dbe9228115aac80c2c67412b9ac0d4d6c34aa67 100644 (file)
@@ -104,8 +104,8 @@ jtaginterface_def = '''
 '''
 
 pwminterface_def = '''
-      method Action pwm{0}(Bit#(1) in);
-        wrpwm{0}<=in;
+      method Action pwm{0}_pwm(Bit#(1) in);
+        wrpwm{0}_pwm<=in;
       endmethod
 '''
 # ============================================== #
index dd4b384ab9df1569c9b578650ae63f7460e84981..08525ecd9e9a4fd1d90c295e2780878b3e1ef2f2 100644 (file)
@@ -116,8 +116,8 @@ jtagwires = '''
 '''
 
 pwmwires = '''
-      Wire#(Bit#(1)) wrpwm{0} <-mkDWire(0);
-      GenericIOType pwm{0}_io=GenericIOType{{outputval:wrpwm{0},
+      Wire#(Bit#(1)) wrpwm{0}_pwm <-mkDWire(0);
+      GenericIOType pwm{0}_pwm_io=GenericIOType{{outputval:wrpwm{0}_pwm,
                 output_en:1, input_en:0, pullup_en:0, pulldown_en:0,
                 pushpull_en:0, drivestrength:0, opendrain_en:0}};
 '''