litex/migen/bus/wishbone.py

25 lines
483 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):
2011-12-08 13:16:08 -05:00
def __init__(self, name=""):
Simple.__init__(self, _desc, False, name)
2011-12-08 12:47:41 -05:00
class Slave(Simple):
2011-12-08 13:16:08 -05:00
def __init__(self, name=""):
Simple.__init__(self, _desc, True, name)