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 $...
-
What is the purpose of a sources and uses of funds statement?
-
The table gives the population of the world in the 20th century. (a) Estimate the rate of population growth in 1920 and in 1980 by averaging the slopes of two secant lines. (b) Use a graphing...
-
The accounting records of Compass Bookstores, Inc., include the following: Requirement Report these liabilities on Compass Bookstores' balance sheet, including headings and totals for current...
-
The weight of turkeys is normally distributed with a mean of 22 pounds and a standard deviation of 5 pounds. a. Find the probability that a randomly selected turkey weighs between 20 and 26 pounds....
-
The current discount yield (dy) pa for 90, 180, 270 day T Bills are 2%, 4% and 6% respectively. 1. Calculate the implied 90 day forward rates due in 3 and 6 months. 2. Detail your transactions and...
-
The current spot exchange rate is S0$/ = $1.10/ and the one-year forward rate is F1$/ = $1.11/. The prime rate in the United States is 5 percent. a. What is the prime rate in euros if the...
-
Assume you have developed and tested a prototype electronic product and are about to start your new business. You purchase preprogrammed computer chips at $70 per unit. Other component costs include...
-
Calculate the energy, Q, in calories needed to vaporize 1.50 g of water at 100 C to steam at 100 C. Show work and include units with answer.
-
Bentsen Corporation makes one product. Budgeted unit sales July 8,500 August 9,000 September October 13,900 11,100 The ending finished goods inventory equals 40% of the following month's sales. The...
-
Distinguish between operant conditioning, observational learning, and social learning. How are these different kinds of learning utilized in the work place? Give specific examples for each one. How...
-
The forecast in London for February 1 is for a high temperature of 11C, and no chance of rain. However, London received 0.066 m of rain in January. a. How much rain is that in centimeters? b. How...
-
Missy Inc. is considering a project that has the following cash flow data. What is the project's IRR? Year 0 1 2 3 4 5 Cash flows -$1,550 $325 $325 $425 $325 $325
-
There is no doubt that Steve Jobs was a computer visionary as well as a highly effective corporate leader. When Jobs resigned due to health issues, the company appointed Tim Cook as CEO. After...
-
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...
-
Will you accept the following as good voucher? (a) A bill of Rs. 5,000 submitted by a salesman for his travelling allowance (b) A cash memo for Rs. 500 for a perambulator of a company producing...
-
How do you vouch the following? (a) Custom duty paid on import of machinery (b) Income from house property (c) Royalty payable to a foreign collaborator (d) Traveling expenses (e) Interest and...
-
What are the differences between auditing and accountancy?
Study smarter with the SolutionInn App