예제 #1
0
    def __init__(self,
                 structT: HdlType,
                 tmpl: Optional[TransTmpl] = None,
                 frames: Optional[List[FrameTmpl]] = None):
        """
        :param hsIntfCls: class of interface which should be used
            as interface of this unit
        :param structT: instance of HStruct used as template for this frame
            If name is None no input port is generated and space
            is filled with invalid values, litle-endian encoding,
            supported types of interfaces are: Handshaked, Signal
            can be also instance of FrameTmpl
        :param tmpl: instance of TransTmpl for this structT
        :param frames: list of FrameTmpl instances for this tmpl
        :note: if tmpl and frames are None they are resolved
            from structT parseTemplate
        :note: This unit can parse sequence of frames,
            if they are specified by "frames"
        :note: structT can contain fields with variable size like HStream
        """
        self._structT = structT
        self._tmpl = tmpl
        self._frames = frames
        self._tmpRegsForSelect = {}

        AxiSCompBase.__init__(self)
예제 #2
0
파일: frameForge.py 프로젝트: Nic30/hwtLib
    def __init__(self,
                 structT: HdlType,
                 tmpl: Optional[TransTmpl]=None,
                 frames: Optional[List[FrameTmpl]]=None):
        """
        :param hsIntfCls: class of interface which should be used
            as interface of this unit
        :param structT: instance of HStruct used as template for this frame
            If name is None no input port is generated and space
            is filled with invalid values, litle-endian encoding,
            supported types of interfaces are: Handshaked, Signal
            can be also instance of FrameTmpl
        :param tmpl: instance of TransTmpl for this structT
        :param frames: list of FrameTmpl instances for this tmpl
        :note: if tmpl and frames are None they are resolved
            from structT parseTemplate
        :note: This unit can parse sequence of frames,
            if they are specified by "frames"
        :note: structT can contain fields with variable size like HStream
        """
        self._structT = structT
        self._tmpl = tmpl
        self._frames = frames
        self._tmpRegsForSelect = {}

        AxiSCompBase.__init__(self)
예제 #3
0
파일: _deparser.py 프로젝트: mfkiwl/hwtLib
 def _config(self):
     AxiSCompBase._config(self)
     self.USE_STRB = True
     self.T = Param(self._structT)
     self.TRANSACTION_TEMPLATE = Param(self._tmpl)
     self.FRAME_TEMPLATES = Param(
         None if self._frames is None else tuple(self._frames))
예제 #4
0
파일: _deparser.py 프로젝트: mfkiwl/hwtLib
 def __init__(self,
              structT: HdlType,
              tmpl: Optional[TransTmpl] = None,
              frames: Optional[List[FrameTmpl]] = None):
     """
     :note: This unit can parse sequence of frames,
         if they are specified by "frames"
     :note: structT can contain fields with variable size like HStream
     """
     self._tmpRegsForSelect = {}
     TemplateConfigured.__init__(self, structT, tmpl, frames)
     AxiSCompBase.__init__(self)
예제 #5
0
 def __init__(self, structT: HdlType,
              tmpl: Optional[TransTmpl]=None,
              frames: Optional[List[FrameTmpl]]=None):
     """
     :param structT: instance of HStruct which specifies
         data format to download
     :param tmpl: instance of TransTmpl for this structT
     :param frames: list of FrameTmpl instances for this tmpl
     :note: if tmpl and frames are None they are resolved
         from structT parseTemplate
     :note: this unit can parse sequence of frames,
         if they are specified by "frames"
     :attention: structT can not contain fields with variable size
         like HStream
     """
     TemplateConfigured.__init__(self, structT, tmpl, frames)
     AxiSCompBase.__init__(self)
예제 #6
0
    def __init__(self, structT: HdlType,
                 tmpl: Optional[TransTmpl]=None,
                 frames: Optional[List[FrameTmpl]]=None):
        """
        :param structT: instance of HStruct which specifies data format to download
        :param tmpl: instance of TransTmpl for this structT
        :param frames: list of FrameTmpl instances for this tmpl
        :note: if tmpl and frames are None they are resolved from structT parseTemplate
        :note: this unit can parse sequence of frames, if they are specified by "frames"
        :attention: structT can not contain fields with variable size like HStream
        """
        self._structT = structT

        if tmpl is not None:
            assert frames is not None, "tmpl and frames can be used only together"
        else:
            assert frames is None, "tmpl and frames can be used only together"

        self._tmpl = tmpl
        self._frames = frames
        AxiSCompBase.__init__(self)
예제 #7
0
파일: frameForge.py 프로젝트: Nic30/hwtLib
 def _config(self):
     AxiSCompBase._config(self)
     self.USE_STRB.set(True)
예제 #8
0
파일: resizer.py 프로젝트: Nic30/hwtLib
 def _config(self):
     AxiSCompBase._config(self)
     self.OUT_DATA_WIDTH = Param(64)
     self.USE_STRB.set(True)
예제 #9
0
 def _config(self):
     AxiSCompBase._config(self)
     self.FOOTER_WIDTH = Param(32)
예제 #10
0
 def _config(self):
     AxiSCompBase._config(self)
     self.OUT_DATA_WIDTH = Param(64)
     self.USE_STRB = True
예제 #11
0
 def _config(self):
     AxiSCompBase._config(self)
     self.USE_STRB.set(True)