Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Conversation

@eeeXun
Copy link
Contributor

@eeeXun eeeXun commented Nov 20, 2023

When running sbt test. I get the warning.

[warn] .../ca2023-lab3/src/main/scala/riscv/core/WriteBack.scala:24:25: method apply in object MuxLookup is deprecated (since Chisel 3.6): Use MuxLookup(key, default)(mapping) instead
[warn]   io.regs_write_data := MuxLookup(
[warn]                         ^
[warn] one warning found

In Chisel 3.5, the syntax of MuxLookup is

MuxLookup(idx, default,
    Array(0.U -> a, 1.U -> b))

In Chisel 3.6, the syntax of MuxLookup is

MuxLookup(idx, default)(Seq(0.U -> a, 1.U -> b))

Since project is build on Chisel 3.6, we have these warnings.
This patch would not affect any code behavior. It just resolves the warning when running sbt.

jserv

This comment was marked as resolved.

@sysprog21 sysprog21 deleted a comment from eeeXun Nov 25, 2023
@jserv
Copy link
Contributor

jserv commented Nov 25, 2023

I tend to merge this pull request at a later time since I am currently in the process of incorporating CLINT (interrupt controller) and minimal CSR support.

@eeeXun, Once the related commits are added to the main branch, please rebase your work, and I will merge accordingly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants