From 7187ac22e4be458ca737081d42277c13e63e34ab Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 11 Apr 2022 19:20:22 +0200 Subject: [PATCH] interconnect/axi: Add AXSIZE dict definition. --- litex/soc/interconnect/axi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/litex/soc/interconnect/axi.py b/litex/soc/interconnect/axi.py index 8c2cd0776..b789102f0 100644 --- a/litex/soc/interconnect/axi.py +++ b/litex/soc/interconnect/axi.py @@ -28,6 +28,16 @@ RESP_EXOKAY = 0b01 RESP_SLVERR = 0b10 RESP_DECERR = 0b11 +AXSIZE = { + 1 : 0b000, + 2 : 0b001, + 4 : 0b010, + 8 : 0b011, + 16 : 0b100, + 32 : 0b110, + 64 : 0b111, +} + def ax_description(address_width, id_width): return [ ("addr", address_width),