Wishbone declarations
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 8 Dec 2011 17:47:41 +0000 (18:47 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 8 Dec 2011 17:47:41 +0000 (18:47 +0100)
migen/bus/wishbone.py [new file with mode: 0644]

diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py
new file mode 100644 (file)
index 0000000..cb08762
--- /dev/null
@@ -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)