Exemple #1
0
    def _config(self):
        self.IS_BIGENDIAN = Param(False)
        self.USE_STRB = Param(False)
        self.USE_KEEP = Param(False)

        Axi_id._config(self)
        self.DEST_WIDTH = Param(0)
        self.DATA_WIDTH = Param(64)
        Axi_user._config(self)
Exemple #2
0
 def _declr(self):
     Axi3Lite_addr._declr(self)
     Axi_id._declr(self)
     self.burst = VectSignal(2)
     self.cache = VectSignal(4)
     self.len = VectSignal(self.LEN_WIDTH)
     self.lock = VectSignal(self.LOCK_WIDTH)
     self.prot = VectSignal(3)
     self.size = VectSignal(3)
     if self.USER_WIDTH:
         self.user = VectSignal(self.USER_WIDTH)
Exemple #3
0
    def _declr(self):
        Axi_id._declr(self)
        self.found = Signal()
        self.addr = VectSignal(self.ADDR_WIDTH)
        if self.WAY_CNT > 1:
            self.way = VectSignal(log2ceil(self.WAY_CNT - 1))
        if self.TAG_T is not None:
            self.tags = HObjList(HdlType_to_Interface().apply(self.TAG_T)
                                 for _ in range(self.WAY_CNT))

        HandshakeSync._declr(self)
Exemple #4
0
    def _declr(self):
        Axi_id._declr(self)

        if self.DEST_WIDTH:
            self.dest = VectSignal(self.DEST_WIDTH)

        self.data = VectSignal(self.DATA_WIDTH)

        if self.USE_STRB:
            Axi_strb._declr(self)

        if self.USE_KEEP:
            self.keep = VectSignal(self.DATA_WIDTH // 8)

        Axi_user._declr(self)
        self.last = Signal()

        super(AxiStream, self)._declr()
Exemple #5
0
    def _declr(self):
        Axi_id._declr(self)

        if self.DEST_WIDTH:
            self.dest = VectSignal(self.DEST_WIDTH)

        self.data = VectSignal(self.DATA_WIDTH)

        if self.USE_STRB:
            Axi_strb._declr(self)

        if self.USE_KEEP:
            self.keep = VectSignal(self.DATA_WIDTH // 8)

        Axi_user._declr(self)
        self.last = Signal()

        super(AxiStream, self)._declr()
Exemple #6
0
 def _config(self):
     Axi_id._config(self)
     Axi4Lite_addr._config(self)
Exemple #7
0
 def _declr(self):
     Axi_id._declr(self)
     Axi4Lite_b._declr(self)
Exemple #8
0
 def _config(self):
     Axi_id._config(self)
     Axi4Lite_b._config(self)
Exemple #9
0
 def _declr(self):
     Axi_id._declr(self)
     Axi4Lite_addr._declr(self)
Exemple #10
0
 def _config(self):
     Axi3Lite_addr._config(self)
     Axi_id._config(self, default_id_width=6)
     self.USER_WIDTH = Param(0)
Exemple #11
0
 def _config(self):
     Axi3Lite._config(self)
     Axi_id._config(self, default_id_width=6)
     self.ADDR_USER_WIDTH = Param(0)
Exemple #12
0
 def _declr(self):
     Axi_id._declr(self)
     Axi3Lite_r._declr(self)
     self.last = Signal()
Exemple #13
0
 def _config(self):
     Axi_id._config(self, default_id_width=6)
     Axi3Lite_r._config(self)
Exemple #14
0
 def _config(self):
     Axi_id._config(self)
     Axi3Lite_r._config(self)
Exemple #15
0
 def _config(self):
     Axi3Lite_addr._config(self)
     Axi_id._config(self)
     self.USER_WIDTH = Param(0)