sonar/interfaces/axi4_stream.py
def _payload(self, existing_payload=None, **kwargs):
        """
        Formats the payload portion of an interface transaction

        Args:
            existing_payload (Dict, optional): Defaults to None. If an existing
                payload is being modified, pass it in. Otherwise an empty one is
                created
            kwargs: Keywords should be AXI4Stream-compliant

        Returns:
            Dict: The new payload after the specified kwargs have been added
        """

        if existing_payload is None:
            payload_dict = {}
        else:
            payload_dict = existing_payload
        for key, value in kwargs.items():
            payload_dict[key] = value
        if self.has_signal("tkeep") and "tkeep" not in payload_dict:
            data_width = self.signals["tdata"].size
            payload_dict["tkeep"] = 2 ** (int(data_width / 8)) - 1
        if self.has_signal("tlast") and "tlast" not in payload_dict:
            payload_dict["tlast"] = 0
        if self.has_signal("tdest") and "tdest" not in payload_dict:
            payload_dict["tdest"] = 0
        return payload_dict

        Formats the payload portion of an interface transaction

        Args:
            existing_payload (Dict, optional): Defaults to None. If an existing
                payload is being modified, pass it in. Otherwise an empty one is
                created
            kwargs: Keywords should be AXI4Stream-compliant

        Returns:
            Dict: The new payload after the specified kwargs have been added
        
Formats the payload portion of an interface transaction
Formats the payload portion of an interface transaction
def _payload(self, existing_payload=None, **kwargs):
        if existing_payload is None:
            payload_dict = {}
        else:
            payload_dict = existing_payload
        for key, value in kwargs.items():
            payload_dict[key] = value
        if self.has_signal("tkeep") and "tkeep" not in payload_dict:
            data_width = self.signals["tdata"].size
            payload_dict["tkeep"] = 2 ** (int(data_width / 8)) - 1
        if self.has_signal("tlast") and "tlast" not in payload_dict:
            payload_dict["tlast"] = 0
        if self.has_signal("tdest") and "tdest" not in payload_dict:
            payload_dict["tdest"] = 0
        return payload_dict
def _payload ( self , existing_payload = None , ** kwargs ) : if existing_payload is None : payload_dict = { } else : payload_dict = existing_payload for key , value in kwargs . items ( ) : payload_dict [ key ] = value if self . has_signal ( "tkeep" ) and "tkeep" not in payload_dict : data_width = self . signals [ "tdata" ] . size payload_dict [ "tkeep" ] = 2 ** ( int ( data_width / 8 ) ) - 1 if self . has_signal ( "tlast" ) and "tlast" not in payload_dict : payload_dict [ "tlast" ] = 0 if self . has_signal ( "tdest" ) and "tdest" not in payload_dict : payload_dict [ "tdest" ] = 0 return payload_dict
Formats the payload portion of an interface transaction
Formats the payload portion of an interface transaction
"""
        Formats the payload portion of an interface transaction

        Args:
            existing_payload (Dict, optional): Defaults to None. If an existing
                payload is being modified, pass it in. Otherwise an empty one is
                created
            kwargs: Keywords should be AXI4Stream-compliant

        Returns:
            Dict: The new payload after the specified kwargs have been added
        """
The new payload after the specified kwargs have been added
The new payload after the specified kwargs have been added
Dict
self
existing_payload
Defaults to None. If an existing
payload is being modified, pass it in. Otherwise an empty one is
created
Defaults to None . If an existing payload is being modified pass it in . Otherwise an empty one is created
kwargs
Keywords should be AXI4Stream-compliant
Keywords should be AXI4Stream - compliant