Question

Q2. Design a 8-bit ALU (Arithmetic Logic Unit) supporting the following instructions, Z and C values should be re-evaluated (updated) ifY changes Instruction type code[2:0] operations Logical Status update 001 010 011 100 101 110 ( Bitwise AND) Y = A & B: | Z (C is always 0) (bitwise OR) Y- A B; (bitwise XOR) Y-A B Z (Cis always 0) (negation) Y =-A; (Addition) Y A + B: (subtraction) Y = A-B: (Increment) Y-A+1 (decrement) Y-A-1 Z (C is always 0) Z (C is always 0) Z, C z, C Z, C г. с arithmetic module alu8b (Y, C, Z, A, B, code) input [7:0] A, B two 8-bit wide input operands, both are unsigned (positive) number input [2:0] code; 3-bit instruction code output [7:0]Y output Z output C; 8-bit output of the ALU status flag zero, Z ifY-0 status flag carry, In addition/increment, C- ifA+B> 255 In subtraction/decrement, C-1 İfA-B < 0
0 0
Add a comment Improve this question Transcribed image text
Answer #1

cade that reprsents the function lity of the u3sl A chip) input 2:0]c; Ou Case (c) H: F AAB end.cose endrodule. Simeulte by w

Add a comment
Know the answer?
Add Answer to:
Q2. Design a 8-bit ALU (Arithmetic Logic Unit) supporting the following instructions, Z and C values...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT