interconnect/Remapper: Add docstring description.
This commit is contained in:
parent
fe0363da25
commit
19db80ec9b
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue