Skip to content

Commit

Permalink
[rtl] change decoder input to be 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-Wye committed May 16, 2024
1 parent 8970fd2 commit cda8c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t1/src/T1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class T1(val parameter: T1Parameter) extends Module with SerializableModule[T1Pa
requestRegDequeue.valid := requestReg.valid
// TODO: decode the 7 bits in LSB, to get the instruction type.
// we only need to use it to find if it's a load/store instruction.
decode.decodeInput := (request.bits.instruction >> 12) ## request.bits.instruction(6)
decode.decodeInput := request.bits.instruction

/** alias to [[requestReg.bits.decodeResult]], it is commonly used. */
val decodeResult: DecodeBundle = requestReg.bits.decodeResult
Expand Down
2 changes: 1 addition & 1 deletion t1/src/VectorDecoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.chipsalliance.t1.rtl.decoder.Decoder
@instantiable
class VectorDecoder(fpuEnable: Boolean) extends Module {
@public
val decodeInput: UInt = IO(Input(UInt(21.W)))
val decodeInput: UInt = IO(Input(UInt(32.W)))
@public
val decodeResult: DecodeBundle = IO(Output(new DecodeBundle(Decoder.all(fpuEnable))))

Expand Down

0 comments on commit cda8c2c

Please sign in to comment.