From: Luke Kenneth Casson Leighton Date: Thu, 22 Mar 2018 04:51:59 +0000 (+0000) Subject: update pwm to consistent naming convention X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf4e4b272bff399150721e73a6d6ab9e15c14c74;p=pinmux.git update pwm to consistent naming convention --- diff --git a/src/interface_decl.py b/src/interface_decl.py index 36a1990..1d22bbf 100644 --- a/src/interface_decl.py +++ b/src/interface_decl.py @@ -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}]) # ======================================= # diff --git a/src/interface_def.py b/src/interface_def.py index 5ea37c7..0dbe922 100644 --- a/src/interface_def.py +++ b/src/interface_def.py @@ -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 ''' # ============================================== # diff --git a/src/wire_def.py b/src/wire_def.py index dd4b384..08525ec 100644 --- a/src/wire_def.py +++ b/src/wire_def.py @@ -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}}; '''