litex/litescope/frontend/io.py

10 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