2015-02-28 04:27:16 -05:00
|
|
|
from misoclib.tools.litescope.common import *
|
2012-09-12 16:19:42 -04:00
|
|
|
|
2015-04-13 07:18:21 -04:00
|
|
|
|
2015-01-22 15:40:07 -05:00
|
|
|
class LiteScopeIO(Module, AutoCSR):
|
2015-04-13 07:09:44 -04:00
|
|
|
def __init__(self, dw):
|
|
|
|
self.dw = dw
|
2015-05-01 11:23:44 -04:00
|
|
|
self._input = CSRStatus(dw)
|
|
|
|
self._output = CSRStorage(dw)
|
2013-09-21 07:04:07 -04:00
|
|
|
|
2015-05-01 11:23:44 -04:00
|
|
|
self.i = self._input.status
|
|
|
|
self.o = self._output.storage
|