From c43f3da534ab258767815b53cd40ce3bf514ff63 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 8 Dec 2011 18:47:41 +0100 Subject: [PATCH] Wishbone declarations --- migen/bus/wishbone.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 migen/bus/wishbone.py 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) -- 2.30.2