This is an emulation of a ARM® Cortex ™ - M3 microprocessor core ALU
Test cases were added to test the validity of the circuit outputs.
The following OPCODE are in use:
Operation f0 f1 f2 f3
=======================
ADD ( A + B ) 0 0 0 0
SUB ( A - B ) 0 1 1 0
RSB ( B - A ) 0 1 0 1
AND ( A AND B ) 1 0 0 0
ORR ( A OR B ) 1 0 0 1
BIC ( A AND !B ) 1 0 1 0
EOR ( A XOR B ) 1 1 0 0
MOV ( B ) 1 1 0 1
MVN ( !B ) 1 1 1 1