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

Resolve the warning when running the project#4

Open
eeeXun wants to merge 1 commit into
sysprog21:mainfrom
eeeXun:PATCH-2
Open

Resolve the warning when running the project#4
eeeXun wants to merge 1 commit into
sysprog21:mainfrom
eeeXun:PATCH-2

Conversation

@eeeXun
Copy link
Copy Markdown
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
Copy Markdown
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