Skip to content

[Scala3] Move BlackBoxSpec and ChiselStageSpec#5394

Open
adkian-sifive wants to merge 4 commits into
mainfrom
adkian-sifive/scala3-blackboxspec
Open

[Scala3] Move BlackBoxSpec and ChiselStageSpec#5394
adkian-sifive wants to merge 4 commits into
mainfrom
adkian-sifive/scala3-blackboxspec

Conversation

@adkian-sifive
Copy link
Copy Markdown
Member

@adkian-sifive adkian-sifive commented May 28, 2026

Summary

Fix IO disambiguation which doesn't work in Scala 3 and other issues

Release Notes

Move BlackboxSpec, ChiselStageSpec

Development notes

  • AI tool(s) used: Claude Code + Claude Opus 4.7

@adkian-sifive adkian-sifive added the Scala 3 Changes related to upgrading to Scala 3 label May 28, 2026
Comment on lines +34 to +36
trait HasMonitorSocket { this: RawModule =>
protected def makeProbe(bundle: ProtocolBundle): ProtocolBundle = {
val monProbe = IO(probe.Probe(chiselTypeOf(bundle)))
val monProbe = chisel3.IO(probe.Probe(chiselTypeOf(bundle)))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this is necessary?

Copy link
Copy Markdown
Member Author

@adkian-sifive adkian-sifive May 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pulled this change into #5396, will comment there and undo this change

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But re other similar changes in this pr: Scala 3 cannot get access to IO with the selftype pattern

trait Something { this: RawModule => ...

and hits this error: illegal access to protected method IO in class BaseModule from trait Something

@adkian-sifive adkian-sifive enabled auto-merge (squash) May 29, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scala 3 Changes related to upgrading to Scala 3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants