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

A config example file for axi_intercon_gen.py #167

Closed
tunghoang290780 opened this issue Mar 28, 2021 · 4 comments
Closed

A config example file for axi_intercon_gen.py #167

tunghoang290780 opened this issue Mar 28, 2021 · 4 comments

Comments

@tunghoang290780
Copy link

Hello,

@accuminium

Is there any config example file used as the input of axi_intercon_gen.py script? I try axi.core but it seems not working

Thanks!

@andreaskurth
Copy link
Contributor

Hi @tunghoang290780,

Thanks for your question.

axi.core contains an example configuration for axi_intercon_gen. Have you tried that? If yes and it does not work, what errors do you get?

@tunghoang290780
Copy link
Author

tunghoang290780 commented Mar 29, 2021

Hi @accuminium

I hope my running command is correct ./scripts/axi_intercon_gen.py axi.core I got errors as below (I am using python-3.6.9 and Ubuntu 18.04)

image

@andreaskurth
Copy link
Contributor

andreaskurth commented Mar 30, 2021

axi.core is the Manifest file for FuseSoC, and it is not intended to be an input file to scripts/axi_intercon_gen.py.

Instead, you need to write a separate file that describes how your interconnect instance should be configured. axi.core contains an example configuration. Based on that example, you could write the following my_xbar.yml file:

vlnv: pulp-platform.org:axi:xbar:0.27.1
parameters:
  masters:
    dma:
      id_width : 1
    ibus:
      id_width : 2
  slaves:
    ram:
      offset : 0
      size: 0x10000000
    gpio:
      offset: 0x91000000
      size: 0x1000
    rom:
      offset : 0xffff0000
      size : 32768

Invoking python3 scripts/axi_intercon_gen.py my_xbar.yml will then create an axi_intercon.v in the current directory, which instantiates axi_xbar as you defined in my_xbar.yml.

@andreaskurth
Copy link
Contributor

Did this answer your question? If not, please feel free to reopen the issue.

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

2 participants