From: Sebastien Bourdeauducq Date: Thu, 8 Dec 2011 17:47:41 +0000 (+0100) Subject: Wishbone declarations X-Git-Tag: 24jan2021_ls180~2099^2~1171 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c43f3da534ab258767815b53cd40ce3bf514ff63;p=litex.git Wishbone declarations --- diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py new file mode 100644 index 00000000..cb08762f --- /dev/null +++ b/migen/bus/wishbone.py @@ -0,0 +1,23 @@ +from migen.fhdl import structure as f +from .simple import Simple + +_desc = [ + (True, "adr", 32), + (True, "dat", 32), + (False, "dat", 32), + (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)