代码编译正确,但我收到警告:
[warn] PC_RVI.scala:22: Mux of Bits instantiated, emits SInt in class TOP_pack.PC_RVI
给出警告的代码部分如下所示:
PC_input1 := Mux(io.branch, io.imme, UInt(4))
PC_input2 := Mux(io.PC_or_rs1, io.rs1, PC_reg)
whereimme
和rs1
are 的类型SInt
。