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

What's the best way to test an AXIModule? #1

Open
bathtub-01 opened this issue Mar 3, 2023 · 0 comments
Open

What's the best way to test an AXIModule? #1

bathtub-01 opened this issue Mar 3, 2023 · 0 comments

Comments

@bathtub-01
Copy link

Hi. I'm currently using this library to create AXI interfaces in my work. But I have some problems when I want to verify my design.

Since AXIModule is extended from Chisel RawModule, it can not be directly tested by Chisel tester. I have tried to wrap the AXIModule into a Chisel Module, but I don't know how to connect AXIModule's port to the wrapper's io, given that the AXIModule doesn't use Chisel IO.

For example, I have:

class ControllerAXI extends AXIModule {
  // implementation
}

class ControllerWrapper extends Module {
  val io = IO(new ControllerAXIIO)
  val ctl = Module(new ControllerAXI)
  // don't know how to bridge them...
}

So could you please give me a hint on how to test an AXIModule?

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