litex/litescope/frontend/io.py
2015-01-25 15:58:00 +01:00

9 lines
217 B
Python

from litescope.common import *
class LiteScopeIO(Module, AutoCSR):
def __init__(self, width):
self._r_i = CSRStatus(width)
self._r_o = CSRStorage(width)
self.i = self._r_i.status
self.o = self._r_o.storage