Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation AXI and AXI lite slave part did not work for me #90

Open
kuriousd opened this issue Aug 8, 2024 · 0 comments
Open

Documentation AXI and AXI lite slave part did not work for me #90

kuriousd opened this issue Aug 8, 2024 · 0 comments

Comments

@kuriousd
Copy link

kuriousd commented Aug 8, 2024

Hi,

I implemented an AXI Slave based on the documentation:

from cocotbext.axi import AxiBus, AxiSlave, MemoryRegion

axi_slave = AxiSlave(AxiBus.from_prefix(dut, "m_axi"), dut.clk, dut.rst)
region = MemoryRegion(2**axi_slave.read_if.address_width)
axi_slave.target = region

However it did not work for me, the axi_slave target was None. I invoked AxiSlave function inside a class and I did:

from cocotbext.axi import AxiBus, AxiSlave, MemoryRegion

class Test():
   ....
   self.region = MemoryRegion(2**32)
   self.axi_slave = AxiSlave(AxiBus.from_prefix(dut, "m_axi"), dut.clk, dut.rst, target=self.region)

Maybe you want to consider this issue on the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant