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

Enable testing without rocket-chip #22

Open
seldridge opened this issue Mar 30, 2016 · 0 comments
Open

Enable testing without rocket-chip #22

seldridge opened this issue Mar 30, 2016 · 0 comments

Comments

@seldridge
Copy link
Collaborator

It would be beneficial to enable testing that did not rely on instantiating a rocket chip. This is faster, enables VCD debugging, and would enable unit testing of individual modules. The problem relates to properly pulling in all the dependencies and parameters needed by X-FILES/DANA.

It seems like there are four ways of pulling in dependencies:

  • Defining dependencies as projects, e.g., lazy val rocket = project in file(...). This has problems related to the project living in a separate directory.
  • Defining dependencies as a RootProject, e.g., lazy val rocketChip = RootProject(file(...)). This is questionable because an entire rocket-chip isn't needed.
  • Defining dependencies as unmanaged source, e.g., unmanagedSourceDirectories in Compile += baseDirectory.value / "../rocket/src/main/scala". This works alright for everything except Chisel.
  • Defining dependencies as libraries, e.g., pulling Chisel locally or from the Maven repo.

A mixture of these seems to work except I'm unable to pull in all the requisite parameters. If I don't include the rocket-chip configuration, then I have trouble with PAddrBits. However, if I do include the rocket-chip configuration, I have trouble with TLId.

There should be a way to do this and do it cleanly, but I'm at a loss presently.

seldridge added a commit that referenced this issue Mar 30, 2016
This creates a new class, Test, which defines a main function and should
be able to be used for testing independent of rocket-chip.

This is currently failing because I can't pull in all the parameters
needed to build sub/co-projects (e.g., uncore).
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