]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/tumbl.git/commit
Correct unfinished/broken CMPU and CMP instructions and IT(TE) conditions.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 15 Dec 2014 09:28:08 +0000 (10:28 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 15 Dec 2014 09:28:08 +0000 (10:28 +0100)
commit7bf0b3bd95bc0a235f90ff063e39bb0cb3261268
tree6a119da696e265a7a254f4eaf84d2fd0067d1a1e
parente322696339860c2dcc46f1246254b3edd6b77385
Correct unfinished/broken CMPU and CMP instructions and IT(TE) conditions.

The result bit 31 has not been updated when signs of inputs
did not match and signBit_r_v used in IT(TE) has not been assigned
from result when signs matched.

The CMP(U) should compare inputs => it is equivalent to RSUB
but specification of ALU_IN_NOT_REGA and CIN_ONE has been
omitted.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
hw/decode.vhd
hw/exeq.vhd