Design and simulate an 8bit Data Processing Unit with the fo
Design and simulate an 8-bit Data Processing Unit with the following specifications and requirements:
 1- The ALU is capable of executing the following functions:
 a- load, store, shift-left, and shift-right
b- add, add-with-carry, sub, increment
c- and, or, xor, and complement
d- set-a-flag, clear-a-flag, test-a-flag
e- branch-if-zero, and branch-if-carry
2- Use a file register ALU architecture organization for yourdesign.3- Include the following flags in your design: C, Z, V, &N.
 4- Include documentation describing your design at the register level
 (RTL), which should include the following:
 a- Hardware design for the data processing unit (which
 includes the bus system) that is capable of executing the required functions
b- A block diagram for your processor architecture
c- State all the control signals that are needed for your
 design (you have to justification your choices)
This question confuses me because you have to do it with the logic gates and I\'m not sure how that works with the flags and what not.
Solution
Answer :
Design and simulate an 8-bit Data Processing Unit with the following specifications and requirements:
 1- The ALU is capable of executing the following functions:
 a- load, store, shift-left, and shift-right
b- add, add-with-carry, sub, increment
c- and, or, xor, and complement
d- set-a-flag, clear-a-flag, test-a-flag
e- branch-if-zero, and branch-if-carry
Answer :
b- add, add-with-carry, sub, increment
 c- and, or, xor, and complement
Explanation :
The ALU is capable of executing the arithemetic functions like add,add-with carry,sub,increment and it also capable of executing the following logical operations like and,or,xor,and complement and etc...

