uart naming convention consistency
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:39:23 +0000 (04:39 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Mar 2018 04:39:23 +0000 (04:39 +0000)
src/interface_decl.py
src/interface_def.py

index 1934870ffdf360076dde6519ca31bb7bbc0928ae..936c77d86d4adef2830a9d3f9389a7f3deda3f18 100644 (file)
@@ -139,8 +139,8 @@ io_interface = IOInterface([{'name': 'io_outputval_{0}', 'enabled': False},
 # Outputs from the peripherals will be inputs to the pinmux
 # module. Hence the change in direction for most pins
 
-uartinterface_decl = Interface([{'name': 'rx_{0}'},
-                                {'name': 'tx_{0}', 'action': True},
+uartinterface_decl = Interface([{'name': 'uart{0}_rx'},
+                                {'name': 'uart{0}_tx', 'action': True},
                                 ])
 
 spiinterface_decl = Interface([{'name': 'spi{0}_sclk', 'action': True},
index 42ce5f2c3e11d5d4c738b16c487aca08c0973de1..6e5ed707515c7304c27537a9b23f0d79dc05a626 100644 (file)
@@ -18,8 +18,8 @@ io_interface_def = '''
       endmethod
 '''
 uartinterface_def = '''
-      method rx_{0}=wruart{0}_rx;
-      method Action tx_{0}(Bit#(1) in);
+      method uart{0}_rx=wruart{0}_rx;
+      method Action uart{0}_tx(Bit#(1) in);
          wruart{0}_tx<=in;
       endmethod
 '''