Example #1
0
 def _config(self):
     self.T = Param(HStruct(
         (HStream(Bits(8), frame_len=(1, inf),
                  start_offsets=[0]), "f0"),
         (HStream(Bits(16), frame_len=(1, 1)), "f1"),
     ))
     AxiStream._config(self)
     self.DATA_WIDTH = 16
     self.USE_KEEP = True
     self.OUT_OFFSET = Param(0)
Example #2
0
 def _config(self):
     self.REG_CNT = Param(2)
     AxiStream._config(self)
     self.USE_KEEP = True
Example #3
0
 def _config(self):
     AxiStream._config(self)
Example #4
0
 def _config(self):
     AxiStream._config(self)
     self.SIZES_BUFF_DEPTH = Param(16)
     self.MAX_LEN = Param((2048 // 8) - 1)
     self.EXPORT_ALIGNMENT_ERROR = Param(False)
Example #5
0
 def _config(self):
     AxiStream._config(self)
     self.USE_STRB = True
     self.REPEAT = Param(False)
     self.DATA = Param(tuple(ord(c) for c in "Hello world"))
Example #6
0
 def _config(self):
     AxiStream._config(self)
     self.SIZES_BUFF_DEPTH = Param(16)
     self.MAX_LEN = Param((2048 // 8) - 1)
     self.EXPORT_ALIGNMENT_ERROR = Param(False)
Example #7
0
 def _config(self):
     AxiStream._config(self)
     self.VAL = Param(Bits(64).from_py(0))
Example #8
0
 def _config(self):
     AxiStream._config(self)
     self.HAS_RX = Param(True)
     self.HAS_TX = Param(True)