from nmutil.iocontrol import RecordObject
from nmigen import Signal
+# https://bugs.libre-soc.org/show_bug.cgi?id=465
+class LDSTException(RecordObject):
+ def __init__(self, name=None):
+ RecordObject.__init__(self, name=name)
+ self.happened = Signal()
+ self.alignment = Signal()
+ self.instr_fault = Signal()
+ self.invalid = Signal()
+ self.badtree = Signal()
+ self.perm_error = Signal()
+ self.rc_error = Signal()
+ self.segment_fault = Signal()
+
class DCacheToLoadStore1Type(RecordObject):
def __init__(self, name=None):
from nmutil.util import rising_edge
from soc.decoder.power_decoder2 import Data
from soc.scoreboard.addr_match import LenExpand
+from soc.experiment.mem_types import LDSTException
# for testing purposes
from soc.experiment.testmem import TestMemory
#from soc.scoreboard.addr_split import LDSTSplitter
-
import unittest
-class LDSTException(RecordObject):
- def __init__(self, name=None):
- RecordObject.__init__(self, name=name)
- self.happened = Signal()
- self.alignment = Signal()
- self.instr_fault = Signal()
- self.invalid = Signal()
- self.badtree = Signal()
- self.perm_error = Signal()
- self.rc_error = Signal()
- self.segment_fault = Signal()
-
class PortInterface(RecordObject):
"""PortInterface