Question

Derive the logic gates for a 2-bit Arithmetic Logic Unit (ALU) with four micro-operations:

1) Complete the table below by showing the select input bits and the necessary groupings. (5 points) Select Inputs Micro-Oper

3) Draw a detailed logic circuit of the ALUs Logic and Shift unit. (10 points)

4) Use block diagrams of the arithmetic, logic and shifting units in order to draw the block diagram of the complete ALU. (5

0 0
Add a comment Improve this question Transcribed image text
Answer #1

S0 S1 are select lines used to select the operation

Select input Microoperation / Drescription -A-B-1 subtraction with 1 F = ATB+1 Carry Addition with Carry 1 F 2 AUB - - Logic

2)

ALUS Arithmatic Unit Consists of ① Subtraction with Borrow unit Addition with carry. onit

for adder unit full adder is used to implement two bit adder

for full Adder Troth Table Carry A BC sum o som o 0 0 DO BL cool 111 A 1 1 o 0 6 1 0 100 101 Sum = A BOC BC ero of 11.12 . Ca

two full adder used to form a two bit adder as follows

Using Full adder, Implementation of 2-bit Adder given in fig. below Cin (Cin=1) A. Sumo Full Add u Bo Carry. full A1 Sump Car

Full subtractor used to form a 2 bit subtractor

Too full subtractor Truth table Bornw out 1 Diff ABC oo1 o Diff 011 Bc 0 1: 0 1o1 o Diff - ABC Borrow RC OLD lo A 1 1 . ĀB +

Implemetation of 2-bit all subtractor Subtractor. using Full • it uses 2- Full subtractor Unit. Logic Expression of subtracto

3)

logic circuit consists of OR unit and shift unit

following logic circuit is used to obtain OR operation between two bit A and B

Logic lirait consists of A ORB Hv) Ao Bo A out) D B.

while arithmetic left shift

MSB is replaced with previous significant bit while lowest significant bit (LSB)is replaced with logic Value zero

for shift deft for Arithmetic shif left MSB USB I AIA O 0 After Shift I A. operation

4)

MUX is used to select operation to be performed

two 4X1 Mux is used

S1 is MSB

S1 is LSB

logic blocks derived in part 2 and 3 are connected to MUX as follows

outputs out 1 and out 0 are obtained when operations are performed

1. SO Add LSB A Auto out (0) 9 Bit 1 S1 Diff 4:1 (B,B) B & Adder liffo I mux C. 13 FOR Shift (A, A) A (BBMB 루 Bit Subtrated S

Add a comment
Know the answer?
Add Answer to:
Derive the logic gates for a 2-bit Arithmetic Logic Unit (ALU) with four micro-operations: 1) Complete...
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
  • Problem 3 - Arithmetie Logic Unit (ALU) Design us poins Design a 4-bit ALU that has two selection...

    Problem 3 - Arithmetie Logic Unit (ALU) Design us poins Design a 4-bit ALU that has two selection variables Si Design an optimized circuit (mus external gates for circuit B operates based on the function table given below. The arithmetic unit and So and generates the arithmetic operations given below. and generatest Use a 4-1 MUX block with Si So Cin = 1 F-A (complement) F = A+B (add) FB (transfer) F A+B F = A+ 1 (negate) F A+B+...

  • Design a 4-bit Arithmetic Logic Unit (ALU) according to the following specification

     Design a 4-bit Arithmetic Logic Unit (ALU) according to the following specification. Follow the design shown during the lecture. Notice this table is different, though. a. Create the internal of 1-bit of the logic unit (It is recommended that you design the internal of a 4 to 1 MUX first, create a symbol for it and use it for creating the logic unit) b. Create a symbol for your logic unit and use four of them to make a 4-bit logic unit c....

  • Using Structural Modeling in VHDL write the code for: An Arithmetic Logic Unit (ALU) shown in...

    Using Structural Modeling in VHDL write the code for: An Arithmetic Logic Unit (ALU) shown in the figure below. A (16-bit), B (16-bit), Opcode (3-bit), and Mode (1-bit) are the inputs; and ALUOut (16-bit) and Cout (1-bit) are the outputs of the design. A and B hold the values of the operands. Mode and Opcode together indicate the type of the operation performed by ALU. The ALU components ARE: -Arithmetic Unit that consists of one 16-bit adder, 16-bit subtractor, 16-bit...

  • The Arithmetic Logic Unit The first topic for the project is to create an Arithmetic Logic...

    The Arithmetic Logic Unit The first topic for the project is to create an Arithmetic Logic Unit, using a structured approached with a Virtual Hardware Design Language such as Verilog. Mainly, the program is very close to a simulator for a programming calculator. An ALU typically has the following operations Math Functions: Add, Subtract, Multiply, Divide, Modulus Logic Functions: And, Or, XOR, Not, Nand, Nor, XNOR Error Modes: Divide by Zero, Overflow Support Functions: No Operation, Shift Left, Shift Right,...

  • FIRST ACTIVITY: (100/100) . SIMPLE 4-BIT ARITHMETIC LOGIC UNIT (ALU): This circuit selects between arithmetic (absolute...

    FIRST ACTIVITY: (100/100) . SIMPLE 4-BIT ARITHMETIC LOGIC UNIT (ALU): This circuit selects between arithmetic (absolute value, addition) and logical (XOR, AND) operations. Only one result (hexadecimal value) can be shown on the 7-segment display This is selected by the input sel (1..0) B A-BI A+B A xnor B A nand B Input EN: If EN-1result appears on the 7 segment display. If EN=0 → all LEDs in the 7 segment display are off Arithmetic operations: The 4-bit inputs A...

  • This section gives you freedom to come up with your own solutions. An Arithmetic and Logic Unit (...

    This section gives you freedom to come up with your own solutions. An Arithmetic and Logic Unit (ALU) is a combinational circuit that performs logic and arithmetic micro-operations on a pair of 4-bit operands. The operations performed by an ALU are controlled by a set of function-select inputs. In this lab you will design a 4-bit ALU with 3 function-select inputs: Mode M, Select S1 and S0 inputs. The mode input M selects between a Logic (M=0) and Arithmetic (M=1)...

  • A 1-bit ALU is shown as in Figure 3. The circuit performs both arithmetic and logic...

    A 1-bit ALU is shown as in Figure 3. The circuit performs both arithmetic and logic operations. Determine the operations of the ALU for each combination of the two (2) operation bits , OP1 and OP2, and Binvert bit by completing Table 1. When do 1’s complement and 2’s complement operations are performed. (Please explain each step)             Binvert carry in operation a 10 1 Result b 12 3 carry out Figure 3 Binvert Operation Operation- bit OP1 OP2 0...

  • First you must create a logic circuit using only basic gates such as AND, OR, NOR,...

    First you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement an ADDER capable of adding two 4 bit binary numbers. Second you must create a logic circuit using only basic gates such as AND, OR, NOR, NAND, NOT, etc. to implement a Subtractor that is capable of subtracting the second number from the first, by converting the second number into its 2's complement form and then adding the resulting...

  • all witworDFFs, FFI and FFo, two 4xI multiplexers, four 2-bit registers (Ro, RI, R2, and R3; all I with p arallel outputs) and no additional logic gates, design a circuit to support the following...

    all witworDFFs, FFI and FFo, two 4xI multiplexers, four 2-bit registers (Ro, RI, R2, and R3; all I with p arallel outputs) and no additional logic gates, design a circuit to support the following operations based on 2-bit inputs M1 and MO M1 MO values Operation (at the rising edge of the clock) RO FF1 FFO (bits of RO stored in FF1&FFO IFF1 FFO (bits of R1 stored in FF1&FFO R2 FF1 FFO (bits of R2 stored in FFI &FFO...

  • 1 Design an arithmetic-logic circuit with 3-bit opcode variables P Pila and two 4-bits data inputs...

    1 Design an arithmetic-logic circuit with 3-bit opcode variables P Pila and two 4-bits data inputs A and B. The circuit generates the following arithmetic, and logic operations. Draw the logic diagram with carry COLL) and overflow (OF )outputs. (Using a 4-bit adder) Р 1 2 P2 0 0 P. 0 0 1 1 A A A. A Q Q Q 0 1 0 OPERATION A - B A + B A A +1 AAB A A/ 2 A* 2...

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