From 20425703fa67239a8ed180baa6a5eb80ba42e4df Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 13 Jan 2012 17:29:05 +0100 Subject: [PATCH] Wishbone: omit fixed LSBs --- migen/bus/wishbone.py | 2 +- migen/bus/wishbone2csr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py index f9e24a299..b1df3b724 100644 --- a/migen/bus/wishbone.py +++ b/migen/bus/wishbone.py @@ -4,7 +4,7 @@ from migen.corelogic.misc import multimux, optree from migen.bus.simple import Simple, get_sig_name _desc = [ - (True, "adr", 32), + (True, "adr", 30), (True, "dat", 32), (False, "dat", 32), (True, "sel", 4), diff --git a/migen/bus/wishbone2csr.py b/migen/bus/wishbone2csr.py index 7cfc7a0ab..497cac682 100644 --- a/migen/bus/wishbone2csr.py +++ b/migen/bus/wishbone2csr.py @@ -16,7 +16,7 @@ class Inst(): sync = [ self.csr.we_o.eq(0), self.csr.d_o.eq(self.wishbone.dat_i), - self.csr.a_o.eq(self.wishbone.adr_i[2:16]), + self.csr.a_o.eq(self.wishbone.adr_i[:14]), self.wishbone.dat_o.eq(self.csr.d_i) ] return Fragment(sync=sync) + self.timeline.get_fragment()