interconnect/Remapper: Add docstring description.
This commit is contained in:
parent
fe0363da25
commit
19db80ec9b
|
@ -143,6 +143,7 @@ class AXIInterface:
|
|||
# AXI Remapper -------------------------------------------------------------------------------------
|
||||
|
||||
class AXIRemapper(LiteXModule):
|
||||
"""Remaps AXI addresses by applying an origin offset and address mask."""
|
||||
def __init__(self, master, slave, origin, size):
|
||||
# Mask.
|
||||
mask = 2**int(log2(size)) - 1
|
||||
|
|
|
@ -134,6 +134,7 @@ class AXILiteInterface:
|
|||
# AXI-Lite Remapper --------------------------------------------------------------------------------
|
||||
|
||||
class AXILiteRemapper(LiteXModule):
|
||||
"""Remaps AXI Lite addresses by applying an origin offset and address mask."""
|
||||
def __init__(self, master, slave, origin, size):
|
||||
# Mask.
|
||||
mask = 2**int(log2(size)) - 1
|
||||
|
|
|
@ -129,6 +129,7 @@ class Interface(Record):
|
|||
# Wishbone Remapper --------------------------------------------------------------------------------
|
||||
|
||||
class Remapper(LiteXModule):
|
||||
"""Remaps Wishbone addresses by applying an origin offset and address mask."""
|
||||
def __init__(self, master, slave, origin, size):
|
||||
# Parameters.
|
||||
addressing = master.addressing
|
||||
|
|
Loading…
Reference in New Issue