Skip to content

Commit

Permalink
fix: add width of exceptionNO
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyic00 committed Jan 6, 2024
1 parent 3220f2b commit 8c2a588
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ trait ExceptionSupport extends BaseCore {
// 看看产生的是中断还是异常
// 仲裁之后的统一执行 尾部折叠判断优先级
val exceptionVec = WireInit(VecInit(Seq.fill(16)(false.B)))
val exceptionNO = MuxCase(0.U, Priority.excPriority.map(i => exceptionVec(i) -> i.U))
val exceptionNO = MuxCase(0.U, Priority.excPriority.map(i => exceptionVec(i) -> i.U(5.W)))
def exceptionSupportInit() = {
illegalInstruction := true.B
}
Expand Down

0 comments on commit 8c2a588

Please sign in to comment.