OpenCores
URL https://opencores.org/ocsvn/next186/next186/trunk

Subversion Repositories next186

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /next186/trunk
    from Rev 16 to Rev 17
    Reverse comparison

Rev 16 → Rev 17

/Next186_ALU.v
216,7 → 216,9
end
5'b10000, 5'b10001 : begin // MUL, IMUL
ALUOUT = STAGE[1] ? MUL[31:16] : MUL[15:0];
FOUT[0] = WORD ? !zero | (ALUOP[0] & MUL[15]): |MUL[15:8] | (ALUOP[0] & MUL[7]); //07Jul2013 - fixed OV/CY flags for IMUL
//07Jul2013 - fixed OV/CY flags for IMUL
if(ALUOP[0]) FOUT[0] = WORD ? MUL[31:16] != {16{MUL[15]}} : MUL[15:8] != {8{MUL[7]}}; // IMUL
else FOUT[0] = WORD ? !zero : |MUL[15:8]; // MUL
FOUT[11] = FOUT[0];
end
5'b11001: begin // flag op

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.