From: Sebastien Bourdeauducq Date: Tue, 11 Jun 2013 16:15:49 +0000 (+0200) Subject: bus/lasmibus/Crossbar: support cba_shift=0 X-Git-Tag: 24jan2021_ls180~2099^2~558 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ec1fb9ebe53c19bf5d1e2e4dfe1af8f3d4cad7c;p=litex.git bus/lasmibus/Crossbar: support cba_shift=0 --- diff --git a/migen/bus/lasmibus.py b/migen/bus/lasmibus.py index 18259d29..201a9f71 100644 --- a/migen/bus/lasmibus.py +++ b/migen/bus/lasmibus.py @@ -133,7 +133,10 @@ class Crossbar(Module): cba_upper = cba_shift + controller_bits + bank_bits self.comb += cba.eq(master.adr[cba_shift:cba_upper]) if cba_shift < rca_bits: - self.comb += rca.eq(Cat(master.adr[:cba_shift], master.adr[cba_upper:])) + if cba_shift: + self.comb += rca.eq(Cat(master.adr[:cba_shift], master.adr[cba_upper:])) + else: + self.comb += rca.eq(master.adr[cba_upper:]) else: self.comb += rca.eq(master.adr[:cba_shift])