and read-en signals (per port).
"""
- def __init__(self, width, depth, synced=True):
+ def __init__(self, width, depth, synced=True, fwd_bus_mode=True):
self.synced = synced
self.width = width
self.depth = depth
- self.regs = Array(Register(width, synced=synced) \
+ self.regs = Array(Register(width, synced=synced,
+ writethru=fwd_bus_mode) \
for _ in range(self.depth))
self._rdports = []
self._wrports = []
* write-through capability (read on same cycle as write)
"""
def __init__(self, svp64_en=False, regreduce_en=False):
- super().__init__(64, 32)
+ super().__init__(64, 32, fwd_bus_mode=not regreduce_en)
self.w_ports = {'o': self.write_port("dest1"),
}
self.r_ports = {