litex/miscope/miio.py
Florent Kermarrec 111f527647 do some clean up
2014-09-24 22:26:33 +02:00

10 lines
251 B
Python

from migen.fhdl.structure import *
from migen.bank.description import *
class MiIo(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