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

value modules has incompatible type #1

Open
m-asiatici opened this issue May 3, 2018 · 0 comments
Open

value modules has incompatible type #1

m-asiatici opened this issue May 3, 2018 · 0 comments

Comments

@m-asiatici
Copy link

m-asiatici commented May 3, 2018

When compiling the example as described in README.md, I get the following error:

[error] ModuleBuilderTest.scala:8:7: overriding value modules in class ModuleBuilder of type Seq[chisel.packaging.ModuleDef];
[error]  value modules has incompatible type
[error]   val modules: List[(() => Module, CoreDefinition)] = List(
[error]       ^
[error] one error found

The following declaration of val modules in ModuleBuilderTest.scala fixes the issue:

val modules: List[ModuleDef] = List(
    ModuleDef(null, // test module
      () => TestModule,
      CoreDefinition(
        name    = "TestModule",
        vendor  = "esa.cs.tu-darmstadt.de",
        library = "chisel",
        version = "1.0",
        root("TestModule")
      )
    )
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