frontend/axi: improve len/size comment (-1), set default id_width to 1
This commit is contained in:
parent
71be616817
commit
3586e157f2
|
@ -38,8 +38,8 @@ def ax_description(address_width, id_width):
|
||||||
return [
|
return [
|
||||||
("addr", address_width),
|
("addr", address_width),
|
||||||
("burst", 2), # Burst type
|
("burst", 2), # Burst type
|
||||||
("len", 8), # Number of data transfers (up to 256)
|
("len", 8), # Number of data (-1) transfers (up to 256)
|
||||||
("size", 4), # Number of bytes of each data transfer (up to 1024 bits)
|
("size", 4), # Number of bytes (-1) of each data transfer (up to 1024 bits)
|
||||||
("id", id_width)
|
("id", id_width)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ def r_description(data_width, id_width):
|
||||||
|
|
||||||
|
|
||||||
class LiteDRAMAXIPort(Record):
|
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.data_width = data_width
|
||||||
self.address_width = address_width
|
self.address_width = address_width
|
||||||
self.id_width = id_width
|
self.id_width = id_width
|
||||||
|
|
Loading…
Reference in New Issue