Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use LogicWorks to design a four-bit function unit that has two four-bit operand inputs, A and B . There is an additional single-bit data input
Use LogicWorks to design a four-bit function unit that has two four-bit operand inputs, A and B. There is an additional single-bit data input Cin that is the carry bit from a previous operation so multiple precision arithmetic is possible.
Design a four-bit function unit that has two four-bit operand inputs, A and B There is an additional single-bit data input Cn that is the carry bit from a previous operation so multiple precision arithmetic is possible. Do not be confused, the Cu input is a data input not a control input. The unit will require control inputs to select the desired operation. There are two sets of outputs each four-bits. The first set is the result operand D which is the result of the operation on the input data. The second set is the status flags consisting of the carry (C), overflow (V), sign (N), and the zero (Z) flags. Definitions are as follows: Carry will be set if the operation was any type of addition and a carry from the most significant bit was generated, if the operation is any type of subtraction and a borrow was required, or if the bit shifted out from a shift operation was one. Overflow- will be set if the result of the arithmetic operation is invalid when the input operands are considered as signed integers. Sign - will be set if the output of the function unit would be negative when interpreted as a signed value. Zero- will be set if the output of the function unit is identically zero. (Do not consider the carry bit as part of the result.) For the logical function the carry and overflow will be do not care because they are not involved in the operation. Think about the meaning of the status flags and if there is any uncertainty in implementation ask for clarification. For the shift operations, the vacated bit will be set to zero. The bit shifted off the end of the input operand will be sent to the carry status flag. Operation Addition Definitionn Operation Definitionn OR XOR NOT Transfer B Shift left B Shift right B Increment A Negate B Transfer A Add w/ Subtract w/borrowD A-B-CStep 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