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

object ChiselStage is not a member of package chisel3.stage #132

Open
quantrpeter opened this issue Jan 16, 2025 · 1 comment
Open

object ChiselStage is not a member of package chisel3.stage #132

quantrpeter opened this issue Jan 16, 2025 · 1 comment

Comments

@quantrpeter
Copy link

hi
I can make my code working to generate the verilog file. please help

package test
import chisel3._
import chisel3.stage.{ChiselStage, ChiselGeneratorAnnotation}

object testMain extends App {
  (new ChiselStage).execute(
    Array("--target-dir", "generated/and"),
    Seq(ChiselGeneratorAnnotation(() => new AND))
  )
}
[info] compiling 1 Scala source to /Users/peter/Desktop/chisel-template/target/scala-2.13/test-classes ...
[error] /Users/peter/Desktop/chisel-template/src/test/scala/testMain.scala:3:8: object ChiselStage is not a member of package chisel3.stage
[error] import chisel3.stage.{ChiselStage, ChiselGeneratorAnnotation}
[error]        ^
[error] /Users/peter/Desktop/chisel-template/src/test/scala/testMain.scala:6:8: not found: type ChiselStage
[error]   (new ChiselStage).execute(
[error]        ^
[error] two errors found
[error] (Test / compileIncremental) Compilation failed
[error] Total time: 4 s, completed 16 Jan 2025, 20:19:46

thanks

@seldridge
Copy link
Member

It seems like you're using a newer version of Chisel. Eventually, the ChiselStage object was moved to the circt package.

You probably need: import circt.stage.ChiselStage and import chisel3.stage.ChiselGeneratorAnnotation separately.

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