Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 5122454f authored by Davide Pala's avatar Davide Pala

Removed cast to ac_int<5, false> for shift amount in core

shamt type is already ac_int<5, false> no need to cast.
parent 933f8186
Pipeline #157533 passed with stages
in 6 minutes
......@@ -295,9 +295,9 @@ void execute(struct DCtoEx dctoEx, struct ExtoMem& extoMem)
break;
case RISCV_OPI_SRI:
if (dctoEx.funct7.slc<1>(5)) // SRAI
extoMem.result = dctoEx.lhs >> (ac_int<5, false>)shamt;
extoMem.result = dctoEx.lhs >> shamt;
else // SRLI
extoMem.result = (ac_int<32, false>)dctoEx.lhs >> (ac_int<5, false>)shamt;
extoMem.result = (ac_int<32, false>)dctoEx.lhs >> shamt;
break;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment