interconnect/Remapper: Add docstring description.

This commit is contained in:
Florent Kermarrec 2024-02-13 17:44:02 +01:00
parent fe0363da25
commit 19db80ec9b
3 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class AXIInterface:
# AXI Remapper ------------------------------------------------------------------------------------- # AXI Remapper -------------------------------------------------------------------------------------
class AXIRemapper(LiteXModule): class AXIRemapper(LiteXModule):
"""Remaps AXI addresses by applying an origin offset and address mask."""
def __init__(self, master, slave, origin, size): def __init__(self, master, slave, origin, size):
# Mask. # Mask.
mask = 2**int(log2(size)) - 1 mask = 2**int(log2(size)) - 1

View File

@ -134,6 +134,7 @@ class AXILiteInterface:
# AXI-Lite Remapper -------------------------------------------------------------------------------- # AXI-Lite Remapper --------------------------------------------------------------------------------
class AXILiteRemapper(LiteXModule): class AXILiteRemapper(LiteXModule):
"""Remaps AXI Lite addresses by applying an origin offset and address mask."""
def __init__(self, master, slave, origin, size): def __init__(self, master, slave, origin, size):
# Mask. # Mask.
mask = 2**int(log2(size)) - 1 mask = 2**int(log2(size)) - 1

View File

@ -129,6 +129,7 @@ class Interface(Record):
# Wishbone Remapper -------------------------------------------------------------------------------- # Wishbone Remapper --------------------------------------------------------------------------------
class Remapper(LiteXModule): class Remapper(LiteXModule):
"""Remaps Wishbone addresses by applying an origin offset and address mask."""
def __init__(self, master, slave, origin, size): def __init__(self, master, slave, origin, size):
# Parameters. # Parameters.
addressing = master.addressing addressing = master.addressing