Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fill out the table of ALU Test Vectors below Radix (Format) Test ADD 0 0 ADD 0 + (-1) ADD 1 + (-1) ADD FF+
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)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started