Answer Problem 1. Designing A Simple 4-bit ALU A DATA B Ao A Az A3 Bo B
Fantastic news! We've Found the answer you've been seeking!
Question:
Answer Problem 1.
Transcribed Image Text:
Designing A Simple 4-bit ALU A DATA B Ao A Az A3 Bo B₁ B2 B3 MODE M 4-BIT ALU S₁ So SELECTION Co Cs T F₂ F3 A=B A B } CARRY F (RESULT) COMPARATOR A simple ALU to perform basic 4-bit arithmetic and Logic operations Description A3 A2 A1 A0 B3 B2 B, Ba F3 F2 F Fo 55 is ARE is 4-817 4-BIT INPUTS OUTPUT MODE OF OPERATION ARE SELECT WORKING M=0 Co : CARRY OUT FROM ADDITION The input/output structure – A, B and F Other inputs – M, S Other outputs – C CS: CARRY OUT FROM SUBTRACTION M=1 - ACCORDING ARITHMETIC LOGIC TO T.T. 3 How Mode (M) and Selections (S₁S₂) work S₁ 0 0 1 1 Sp 1 0 M = 1 (LOGIC) A: B A+B ABB Ā M=O (ARITHMETIC A PLUS B 4 MINUS B MINUS B (J'S COMPLEMENT) A PLUS I Internal Structure of a 4-bit ALU Design 4 units and connect them as shown in the figure here. Note: Logic operations are Performed on bit-to-bit Basis Ao-A 3 Bo-B3 So S. (1) ARITHMETIC UNIT 2 LOGIC UNIT (3) COMPARATOR FA FB A-B #M A B Co Cs M SELECT 2-CHANNEL мих 4-BIT 4 F Internal Structure of the Arithmetic Unit Note: for 2's Comp Unit we just need to have B as the input For Increment Unit we just need to A as the input You can optimize your design by revisiting what is needed and combining them Ao-43 Bo-B3 ADDER Co SUBTRACTOR 25 COMP NEGATOR INCREMENT Cs FO F₁ F2 F3 4-CHANNEL 4- BIT MUX S₁ So FA 6 Internal Structure of the Logic Unit Note: for the 1's Comp Unit we just need to have A as the input You can optimize your design by revisiting what is needed and combining them Ao-A3 Во-вз AND OR хор 1'5 COMP F4 F5 FG F7 4-CHANNEL 4-BIT Si MUX So 7 FL Arithmetic Logic Units (ALUs) are the core building block of many computing circuits. They are combina- tional digital circuits that perform arithmetic and logical operations on information stored in binary form. We have covered different typical components of ALUs in class. As part of this lab, you are to design, implement and verify a 4-bit ALUS. These types of ALUS powered some of the early computing devices (for example, take a look at the classical 74181 https://en.wikipedia.org/wiki/74181). For more information, see slides ‘ALU Design' posted on D2L. Sequential logic circuits can be found in many commonly used devices. They produce outputs based on both the current and previous inputs. A key component of these types of circuits are memory which allow them to store binary information. In the class, we covered different types of storage elements including latches and flip-flops. We also looked at the design procedure for sequential circuits based on desired state behaviour, and input-output relations. In this lab, you will use that design approach to build a circuit that uses JK flip-flops. Problem 1: Your task for this problem is to build your own ALU in the simulator (you cannot use the build-in ALU in the simulator). Use the slides provided as the guideline for the components required. The best approach to this design is to take a modular approach. That is design, build and test each component on its own first: • Design the MUX. • Design the Logic unit. • Design the Arithmetic unit. • Design the Comprarator. • Design the Decoder for the 7-segment display. Include the results, and any work done such at truth tables constructed and K-map in your find report. Then combine them to build your ALU. Connect you ALU to LEDs, a Decoder, and a 7-segment Display. Use your LEDs to (a) indicate overflow with arithmetic operations based on the Carry Out signal of your ALU, (b) to the result of your logical operations, and (c) the result of your comprarator. Use the decoder and the 7-segment display to show the numerical result of your arithmetic operations. Design your decoder such that when the Logic mode is selected, only the LEDs are active, and when the Arithmetic mode is selected, only the 7-segment display is active. Designing A Simple 4-bit ALU A DATA B Ao A Az A3 Bo B₁ B2 B3 MODE M 4-BIT ALU S₁ So SELECTION Co Cs T F₂ F3 A=B A B } CARRY F (RESULT) COMPARATOR A simple ALU to perform basic 4-bit arithmetic and Logic operations Description A3 A2 A1 A0 B3 B2 B, Ba F3 F2 F Fo 55 is ARE is 4-817 4-BIT INPUTS OUTPUT MODE OF OPERATION ARE SELECT WORKING M=0 Co : CARRY OUT FROM ADDITION The input/output structure – A, B and F Other inputs – M, S Other outputs – C CS: CARRY OUT FROM SUBTRACTION M=1 - ACCORDING ARITHMETIC LOGIC TO T.T. 3 How Mode (M) and Selections (S₁S₂) work S₁ 0 0 1 1 Sp 1 0 M = 1 (LOGIC) A: B A+B ABB Ā M=O (ARITHMETIC A PLUS B 4 MINUS B MINUS B (J'S COMPLEMENT) A PLUS I Internal Structure of a 4-bit ALU Design 4 units and connect them as shown in the figure here. Note: Logic operations are Performed on bit-to-bit Basis Ao-A 3 Bo-B3 So S. (1) ARITHMETIC UNIT 2 LOGIC UNIT (3) COMPARATOR FA FB A-B #M A B Co Cs M SELECT 2-CHANNEL мих 4-BIT 4 F Internal Structure of the Arithmetic Unit Note: for 2's Comp Unit we just need to have B as the input For Increment Unit we just need to A as the input You can optimize your design by revisiting what is needed and combining them Ao-43 Bo-B3 ADDER Co SUBTRACTOR 25 COMP NEGATOR INCREMENT Cs FO F₁ F2 F3 4-CHANNEL 4- BIT MUX S₁ So FA 6 Internal Structure of the Logic Unit Note: for the 1's Comp Unit we just need to have A as the input You can optimize your design by revisiting what is needed and combining them Ao-A3 Во-вз AND OR хор 1'5 COMP F4 F5 FG F7 4-CHANNEL 4-BIT Si MUX So 7 FL Arithmetic Logic Units (ALUs) are the core building block of many computing circuits. They are combina- tional digital circuits that perform arithmetic and logical operations on information stored in binary form. We have covered different typical components of ALUs in class. As part of this lab, you are to design, implement and verify a 4-bit ALUS. These types of ALUS powered some of the early computing devices (for example, take a look at the classical 74181 https://en.wikipedia.org/wiki/74181). For more information, see slides ‘ALU Design' posted on D2L. Sequential logic circuits can be found in many commonly used devices. They produce outputs based on both the current and previous inputs. A key component of these types of circuits are memory which allow them to store binary information. In the class, we covered different types of storage elements including latches and flip-flops. We also looked at the design procedure for sequential circuits based on desired state behaviour, and input-output relations. In this lab, you will use that design approach to build a circuit that uses JK flip-flops. Problem 1: Your task for this problem is to build your own ALU in the simulator (you cannot use the build-in ALU in the simulator). Use the slides provided as the guideline for the components required. The best approach to this design is to take a modular approach. That is design, build and test each component on its own first: • Design the MUX. • Design the Logic unit. • Design the Arithmetic unit. • Design the Comprarator. • Design the Decoder for the 7-segment display. Include the results, and any work done such at truth tables constructed and K-map in your find report. Then combine them to build your ALU. Connect you ALU to LEDs, a Decoder, and a 7-segment Display. Use your LEDs to (a) indicate overflow with arithmetic operations based on the Carry Out signal of your ALU, (b) to the result of your logical operations, and (c) the result of your comprarator. Use the decoder and the 7-segment display to show the numerical result of your arithmetic operations. Design your decoder such that when the Logic mode is selected, only the LEDs are active, and when the Arithmetic mode is selected, only the 7-segment display is active.
Expert Answer:
Answer rating: 100% (QA)
We know the Excitation table of Sk flip flop Melexia fupil no ... View the full answer
Related Book For
Finite Mathematics and Its Applications
ISBN: 978-0134768632
12th edition
Authors: Larry J. Goldstein, David I. Schneider, Martha J. Siegel, Steven Hair
Posted Date:
Students also viewed these programming questions
-
It is required to design a BPF with the following specifications -0.02 < |H(ejw)l < 0.02, 0<= |w| <=2n 0.95 < |H(ejw) < 1.05, ,3n <= Iw| <= 0.7n, -0.001 < |H(ejw)| <...
-
Design a logic circuit for (p NAND q) NAND (p NAND q), and show the outputs for all values of p and q on a truth table?
-
Sungsam Corporation, a US-based conglomerate, is considering expanding its operations in India. As the group's chief financial officer, you are asked to estimate the firm's weighted average cost of...
-
Axel Corporation acquires 100% of the stock of Wheal Company on December 31, Year 4. The following information pertains to Wheal Company on the date of acquisition: Book Value Fair Value Cash $...
-
How long sporting events last is quite variable. This variability can cause problems for TV broadcasters, since the amount of commercials and commentator blather varies with the length of the event....
-
Able Control Company, which manufactures electrical switches, uses a standard cost system and carries all inventory at standard cost. The standard factory overhead cost per switch is based on direct...
-
On April 20, 1992, Daniel Hubbard (plaintiff), a potato farmer, and UTZ Quality Foods, Inc. (UTZ) (defendant), a potato chip manufacturer, entered an installment contract under which Hubbard agreed...
-
Bridgette Keyes is a licensed dentist. During the first month of the operation of her business, the following events and transactions occurred. April 1 Invested $20,000 cash in her business. 1 Hired...
-
If f(x) = x + 3 and g(x) = x + 8x + 15. Determine an equation for y = f(x) * g(x)
-
Coca Cola (KO) price is $61/share. The company is expected to pay dividend of $1.7/share next year. (In reality, dividends are paid quarterly. In this question we will assume for simplicity that all...
-
Hash function is h(k)= k % 16 (use 4 binary bits to represent result). 1-1,2 keys/bucket Expand policy: whenever there is no room for the current insertion, use or add an overflow bucket for the...
-
In its first year of operations, a company produced 6,100 units and sold 5,100 units. Units are sold for $101 each. Cost information follows. Direct materials Direct labor Variable overhead Variable...
-
Explain how to get approvals and compile a formal project plan. Include in your explanation an illustration and use bullets in each sub heading. Discuss how to set up a monitoring and management...
-
Shadow Inc. is an S corporation with a prior history as a regular corporation. At the beginning of the year, the company had AAA of $230,000 and E&P of $170,000. Schedule K of the company's Form...
-
Find the 5th term of the sequence a 6n+9.
-
Innovation approach (2 slides) : Explain which innovation approach you are recommending and why. Consider the different stakeholdersresearch and development (R&D), marketing, financewhen...
-
The [a] of pure quinine, an antimalarial drug, is -165. If a solution contains 84% quinine and 16% of its enantiomer (ee = 68%), what is [a] for the solution? Enter your answer in the box provided....
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
Maximize x + 2y - 3z subject to the constraints Determine the corresponding linear system and restate the linear programming problem in terms of the linear system. +zs100 +zs 200 < 100 + x 5x + 10y...
-
The temperature of water in a heating tea kettle rises according to the equation y = 30x + 72, where y is the temperature (in degrees Fahrenheit) x minutes after the kettle was put on the burner. (a)...
-
Three professors teaching the same course have entirely different grading policies. The percentage of students given each grade by the professors is summarized in the following matrix: (a) The point...
-
Consider your own interests and values. What is important to you and in what do you find meaning or purpose? Given this reflection, what type of social responsibility activities would most appeal to...
-
With your teammates, look at some of the online jobopening announcements. Consider at least a dozen ads and summarize those that include a description of social responsibility commitments or...
-
Suppose that you worked for an organization that promoted the establishment and running of self-managed teams. As head of HR, you have traditionally taken the lead role in the recruitment and...
Study smarter with the SolutionInn App