From: Sebastien Bourdeauducq Date: Mon, 6 Feb 2012 17:43:34 +0000 (+0100) Subject: bus/wishbone2csr: truncate WB data X-Git-Tag: 24jan2021_ls180~2099^2~1037 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47883675dbf71dc98814930330e7e2b68b56c808;p=litex.git bus/wishbone2csr: truncate WB data --- diff --git a/migen/bus/wishbone2csr.py b/migen/bus/wishbone2csr.py index 362cce49..56568618 100644 --- a/migen/bus/wishbone2csr.py +++ b/migen/bus/wishbone2csr.py @@ -15,7 +15,7 @@ class WB2CSR(): def get_fragment(self): sync = [ self.csr.we_o.eq(0), - self.csr.d_o.eq(self.wishbone.dat_i), + self.csr.d_o.eq(self.wishbone.dat_i[:8]), self.csr.a_o.eq(self.wishbone.adr_i[:14]), self.wishbone.dat_o.eq(self.csr.d_i) ]