litescope: use full name in io.py
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 May 2015 15:23:44 +0000 (17:23 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 1 May 2015 15:49:31 +0000 (17:49 +0200)
misoclib/tools/litescope/frontend/io.py
misoclib/tools/litescope/host/driver/io.py

index 2f4453ebbc0d298ae73be7ce46cac88e86fca650..16f860aeb20d64f77707844b0be5543c30d657e5 100644 (file)
@@ -4,8 +4,8 @@ from misoclib.tools.litescope.common import *
 class LiteScopeIO(Module, AutoCSR):
     def __init__(self, dw):
         self.dw = dw
-        self._i = CSRStatus(dw)
-        self._o = CSRStorage(dw)
+        self._input = CSRStatus(dw)
+        self._output = CSRStorage(dw)
 
-        self.i = self._i.status
-        self.o = self._o.storage
+        self.i = self._input.status
+        self.o = self._output.storage
index c8e3c3f08518f606ff9942dba38d406556735149..a8019d79745403705db97cd2565324ac71ff7178 100644 (file)
@@ -11,7 +11,7 @@ class LiteScopeIODriver():
                 setattr(self, key, value)
 
     def write(self, value):
-        self.o.write(value)
+        self.output.write(value)
 
     def read(self):
-        return self.i.read()
+        return self.input.read()