1. Engineering
  2. Computer Science
  3. fill out the table of alu test vectors below...

Question: fill out the table of alu test vectors below...

Question details

Fill out the table of ALU Test Vectors below

Radix (Format) Test ADD 0 0 ADD 0 + (-1) ADD 1 + (-1) ADD FF+ 1 ADD 40000000 +50000000 ADD 30000000+ (-7000000) SUB 0 - 0 SUB 0 - (-1) SUB 1 -1 SUB 1001 SUB 40000000 Decimal Hex Hex Hex Decimal ALUCtrl[1:0] | ALUFlags [3 :0] 00000000 O0000000 6voU boOU 00000000 FEFFFFFE FFFFFFF 00000001 TFFFFFF 000Od 00000OFF 40000000 DO000000 1 1 1 1 (-7000000) SUB-6000000 - (+5000000) AND AND AND AND ORR ORR 1 2 2 2 2 FFFFFEFE FFFFEFFE FFFFFFFF 12345678 12345678 8765 4321 00000000 EFEFFFFF FFFFFEFF 12345678 12345678 8765 4321 00000000 EEEFFFEF ORR

ALUFlag bit name meaning Result is negative ZResult is zero C Result is carry out Result is overflow 0

Op Code ALU ContrStatusoperation bits ADD SUB AND ORR effects N, Z, C, V N, Z, C, V Add operands A and B (A+B), with carry out | Subtract operands A and B (AB), with borrow (NC) out 01 10 N. Z Logical AND of A and B (A&B) N. Z Logical OR of A and B (AIB)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution