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

Subversion Repositories next186

Compare Revisions

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

Rev 17 → Rev 18

/trunk/Next186_ALU.v
217,8 → 217,7
5'b10000, 5'b10001 : begin // MUL, IMUL
ALUOUT = STAGE[1] ? MUL[31:16] : MUL[15:0];
//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[0] = WORD ? MUL[31:16] != {16{MUL[15] & ALUOP[0]}} : MUL[15:8] != {8{MUL[7] & ALUOP[0]}};
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.