Example #1
0
    def __init__(self,
                 sim: HdlSimulator,
                 intf: OutOfOrderCummulativeOpIntf,
                 allowNoReset=False):
        HandshakedAgent.__init__(self, sim, intf, allowNoReset=allowNoReset)
        if intf.TRANSACTION_STATE_T is not None:
            t_st = intf.transaction_state
            t_st._initSimAgent(sim)
            self.t_st_is_primitive = not isinstance(t_st, Interface)

        if intf.MAIN_STATE_T is not None:
            m_st = intf.data
            m_st._initSimAgent(sim)
            self.m_st_is_primitive = not isinstance(m_st, Interface)
Example #2
0
 def _initSimAgent(self):
     self._ag = HandshakedAgent(self)
Example #3
0
File: std.py Project: saislam/hwt
 def _initSimAgent(self, sim: HdlSimulator):
     self._ag = HandshakedAgent(sim, self)
Example #4
0
 def getMonitors(self):
     yield from HandshakedAgent.getMonitors(self)
     if self.intf.TRANSACTION_STATE_T is not None:
         yield from self.intf.transaction_state._ag.getMonitors()
Example #5
0
 def __init__(self, intf):
     HandshakedAgent.__init__(self, intf)
     self.HAS_LOOKUP_ID = bool(intf.LOOKUP_ID_WIDTH)
Example #6
0
 def __init__(self, intf, allowNoReset=False):
     HandshakedAgent.__init__(self, intf, allowNoReset=allowNoReset)
     self.wData = deque()
Example #7
0
 def __init__(self, intf):
     HandshakedAgent.__init__(self, intf)
     self.hasHash = bool(intf.LOOKUP_HASH)
     self.hasKey = bool(intf.LOOKUP_KEY)
     self.hasData = bool(intf.DATA_WIDTH)
Example #8
0
 def __init__(self, intf):
     HandshakedAgent.__init__(self, intf)
     self.hasData = bool(intf.DATA_WIDTH)
Example #9
0
 def __init__(self, intf):
     HandshakedAgent.__init__(self, intf)
     self.dinData = deque()
Example #10
0
 def __init__(self, sim: HdlSimulator, intf, allowNoReset=False):
     HandshakedAgent.__init__(self, sim, intf, allowNoReset=allowNoReset)
     self.wData = deque()
Example #11
0
 def __init__(self, sim: HdlSimulator, intf: "LookupKeyIntf"):
     HandshakedAgent.__init__(self, sim, intf)
     self.HAS_LOOKUP_ID = bool(intf.LOOKUP_ID_WIDTH)
Example #12
0
 def __init__(self, sim: HdlSimulator, intf: "InsertIntf"):
     HandshakedAgent.__init__(self, sim, intf)
     self.hasData = bool(intf.DATA_WIDTH)
Example #13
0
 def notReset(self):
     nr = HandshakedAgent.notReset(self)
     if self._isMonitor:
         return nr and self.dinData
     else:
         return nr
Example #14
0
 def getMonitors(self):
     self._isMonitor = True
     return HandshakedAgent.getMonitors(self)
Example #15
0
 def __init__(self, sim, intf):
     HandshakedAgent.__init__(self, sim, intf)
     self.dinData = deque()
     self._isMonitor = False