From 1ec1fb9ebe53c19bf5d1e2e4dfe1af8f3d4cad7c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 11 Jun 2013 18:15:49 +0200 Subject: [PATCH] bus/lasmibus/Crossbar: support cba_shift=0 --- migen/bus/lasmibus.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]) -- 2.30.2