From: Sebastien Bourdeauducq Date: Fri, 13 Jan 2012 16:29:05 +0000 (+0100) Subject: Wishbone: omit fixed LSBs X-Git-Tag: 24jan2021_ls180~2099^2~1081 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20425703fa67239a8ed180baa6a5eb80ba42e4df;p=litex.git Wishbone: omit fixed LSBs --- diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py index f9e24a29..b1df3b72 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 7cfc7a0a..497cac68 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()