litex/migen/bus/wishbone.py

25 lines
453 B
Python
Raw Normal View History

2011-12-08 12:47:41 -05:00
from migen.fhdl import structure as f
from .simple import Simple
_desc = [
(True, "adr", 32),
(True, "dat", 32),
(False, "dat", 32),
2011-12-08 13:09:32 -05:00
(True, "sel", 4),
2011-12-08 12:47:41 -05:00
(True, "cyc", 1),
(True, "stb", 1),
(False, "ack", 1),
(True, "we", 1),
(True, "cti", 3),
(True, "bte", 2),
(False, "err", 1)
]
class Master(Simple):
def __init__(self):
Simple.__init__(self, _desc, False)
class Slave(Simple):
def __init__(self):
Simple.__init__(self, _desc, True)