litescope: use full name in io.py

This commit is contained in:
Florent Kermarrec 2015-05-01 17:23:44 +02:00
parent 23ba1ccb52
commit 23126415d3
2 changed files with 6 additions and 6 deletions

View 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

View 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()