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

Small bugs at axi_slave.py #49

Open
spoursalidis opened this issue Nov 25, 2022 · 0 comments
Open

Small bugs at axi_slave.py #49

spoursalidis opened this issue Nov 25, 2022 · 0 comments

Comments

@spoursalidis
Copy link

Hello,

I initialise an AxiRam with:
mem = AxiRam(AxiBus.from_prefix(dut, 'm_axi'), dut.clk, size=RAM_SIZE)

In the "axi_slave.py" file at lines 114 & 274, the awid and arid signals cannot be resolved:

  • ValueError: Unresolvable bit in binary string: 'U'

I have fixed that by setting at the beginning of my testbench "dut.m_axi_arid.value = 0" and "dut.m_axi_awid.value = 0". I thought it would be done automatically during the initialisation of the AxiRam.

Also at lines 119 & 279 I had to add an int() to make it work:

line 119: prot = AxiProt(int(getattr(aw, 'awprot', AxiProt.NONSECURE)))
line 279: prot = AxiProt(int(getattr(ar, 'arprot', AxiProt.NONSECURE)))
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