From 698bc882964f570f02d7ddf8ff45240a8e4b8b39 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 2 May 2019 09:26:39 +0200 Subject: [PATCH] soc/interconnect/wishbone: allow setting adr_width (default to 30) --- litex/soc/interconnect/wishbone.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex/soc/interconnect/wishbone.py b/litex/soc/interconnect/wishbone.py index 6e6dc53a..b5e27e07 100644 --- a/litex/soc/interconnect/wishbone.py +++ b/litex/soc/interconnect/wishbone.py @@ -13,7 +13,7 @@ from litex.soc.interconnect import csr _layout = [ - ("adr", 30, DIR_M_TO_S), + ("adr", "adr_width", DIR_M_TO_S), ("dat_w", "data_width", DIR_M_TO_S), ("dat_r", "data_width", DIR_S_TO_M), ("sel", "sel_width", DIR_M_TO_S), @@ -28,8 +28,9 @@ _layout = [ class Interface(Record): - def __init__(self, data_width=32): + def __init__(self, data_width=32, adr_width=30): Record.__init__(self, set_layout_parameters(_layout, + adr_width=adr_width, data_width=data_width, sel_width=data_width//8)) -- 2.30.2