From 3586e157f2b87894603759904df7a6426d722935 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 9 Nov 2018 15:29:31 +0100 Subject: [PATCH] frontend/axi: improve len/size comment (-1), set default id_width to 1 --- litedram/frontend/axi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/frontend/axi.py b/litedram/frontend/axi.py index 7605b6d..1bcfffd 100644 --- a/litedram/frontend/axi.py +++ b/litedram/frontend/axi.py @@ -38,8 +38,8 @@ def ax_description(address_width, id_width): return [ ("addr", address_width), ("burst", 2), # Burst type - ("len", 8), # Number of data transfers (up to 256) - ("size", 4), # Number of bytes of each data transfer (up to 1024 bits) + ("len", 8), # Number of data (-1) transfers (up to 256) + ("size", 4), # Number of bytes (-1) of each data transfer (up to 1024 bits) ("id", id_width) ] @@ -64,7 +64,7 @@ def r_description(data_width, id_width): class LiteDRAMAXIPort(Record): - def __init__(self, data_width, address_width, id_width, clock_domain="sys"): + def __init__(self, data_width, address_width, id_width=1, clock_domain="sys"): self.data_width = data_width self.address_width = address_width self.id_width = id_width