Ejemplo n.º 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)
Ejemplo n.º 2
0
 def _config(self):
     self.REG_CNT = Param(2)
     AxiStream._config(self)
     self.USE_KEEP = True
Ejemplo n.º 3
0
 def _config(self):
     AxiStream._config(self)
Ejemplo n.º 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)
Ejemplo n.º 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"))
Ejemplo n.º 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)
Ejemplo n.º 7
0
 def _config(self):
     AxiStream._config(self)
     self.VAL = Param(Bits(64).from_py(0))
Ejemplo n.º 8
0
 def _config(self):
     AxiStream._config(self)
     self.HAS_RX = Param(True)
     self.HAS_TX = Param(True)