Derive the logic gates for a 2-bit Arithmetic Logic Unit (ALU) with four micro-operations. Note: when...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Derive the logic gates for a 2-bit Arithmetic Logic Unit (ALU) with four micro-operations. Note: when answering the below questions, optimize your solution by reducing the number of logic gates used. 1) Complete the table below by showing the select input bits and the necessary groupings. (5 points) Select Inputs Micro-Operation F=A-B-1 F=A+B+1 F=AVB F = ashl A Description Subtraction with borrow Addition with carry Logic OR Arithmetic shift left 2) Draw a detailed logic circuit of the ALU's arithmetic unit. (10 points) 3) Draw a detailed logic circuit of the ALU's 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 points) 4. subroutine (10 pts) [MSP430 Microcontroller Basics, section 4.6] a. When a subroutine is called, what happens to the stack? b. What would happen if a subroutine changes the top value of the stack? c. What instruction enters a subroutine? d. What instruction returns from a subroutine? e. How do you pass parameters to a subroutine? .text mov.W mov.w mov.w push.w push.w call pop.w pop.w jmp subroutine: ; subroutine adds add.w add.w ret ending: jmp #1, R10 #4215h, R8; data 1 # 38A6h, R9; data 2 R8 R9 #subroutine R9 R8 ending value in R10 to data values on stack R10,2 (SP) R10,4 (SP) ; infinite loop to end program f. In this program, why are 2(SP) and 4(SP) used to address the values on the stack? g. In this program, how were parameters passed to the subroutine? Derive the logic gates for a 2-bit Arithmetic Logic Unit (ALU) with four micro-operations. Note: when answering the below questions, optimize your solution by reducing the number of logic gates used. 1) Complete the table below by showing the select input bits and the necessary groupings. (5 points) Select Inputs Micro-Operation F=A-B-1 F=A+B+1 F=AVB F = ashl A Description Subtraction with borrow Addition with carry Logic OR Arithmetic shift left 2) Draw a detailed logic circuit of the ALU's arithmetic unit. (10 points) 3) Draw a detailed logic circuit of the ALU's 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 points) 4. subroutine (10 pts) [MSP430 Microcontroller Basics, section 4.6] a. When a subroutine is called, what happens to the stack? b. What would happen if a subroutine changes the top value of the stack? c. What instruction enters a subroutine? d. What instruction returns from a subroutine? e. How do you pass parameters to a subroutine? .text mov.W mov.w mov.w push.w push.w call pop.w pop.w jmp subroutine: ; subroutine adds add.w add.w ret ending: jmp #1, R10 #4215h, R8; data 1 # 38A6h, R9; data 2 R8 R9 #subroutine R9 R8 ending value in R10 to data values on stack R10,2 (SP) R10,4 (SP) ; infinite loop to end program f. In this program, why are 2(SP) and 4(SP) used to address the values on the stack? g. In this program, how were parameters passed to the subroutine?
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
The adjusted trial balance for Ray Corporation at July 31, 2017, the corporation's fiscal year end, contained the following: Of the lease liability amount, $16,250 is due within the next year. Total...
-
Frank Corporation manufactures a single product that has a selling price of $30.00 per unit. Fixed expenses total $51,000 per year, and the company must sell 8,500 units to break even. If the company...
-
When a close-coiled helical spring is cut into two equal parts. The stiffness of the resulting springs will be: (a) Same (b) Double (c) Half (d) One-fourth
-
If Indian Telecom Company earned INR 350,000 (Indian rupee) in net income, and paid cash dividends of INR 70,000, what are Indian Telecoms earnings per share if it has 100,000 shares outstanding?
-
Treasure Land Corporation incurred the following costs in 2012. Cost of laboratory research aimed at discovery of new knowledge .... $120,000 Cost of testing in search for product alternatives...
-
When an object is placed at the focus of a concave mirror, the image formed is (i) at infinity (ii) real and inverted, and (iii) highly magnified (or highly enlarged) M E A D C B P F At infinity N
-
Jay Gatsby categorizes wines into one of three clusters. The centroids of these clusters, describing the average characteristics of a wine in each cluster, are listed in the following table. Jay has...
-
The J=0 to J=1 rotational transition of Carbon monoxide (CO) occurs when it absorbs energy in the microwave region at a frequency (f) 1.153 x 1011 Hz. We ignore any changes in the vibrational energy...
-
Design a patched conic transfer trajectory from a circular Earth parking orbit with an altitude of 300 km, to an elliptical Mars arrival orbit with a periapsis of 5447 km and a semimajor axis of 8832...
-
Israel's initial defeat was not strategic surprise but fundamental flaws in preparations for the next war. What contributed most to IDF failures? A. Unrealistic plans and poor staff work B. Failing...
-
Question 1: The table below shows the average earnings index of insurance, banking and finance workers. gives. Year www 1999 2000 2001 2002 2003 2004 March 134 190 310 494 742 1054 June 142 214 350...
-
In addition to constituting an important input to the governance process, financial accounting information is itself a product of the governance process. Has the author adequately described the uses...
-
What are our customers saying about the products they're buying? What data does the organization already use to make strategic decisions? What data or information needs to be collected to help the...
-
You are considering buying a car from a company which offers an insurance plan for a one-time cost today of $75. For this price, the company will cover any repair costs over $50 each year for the...
-
On January 1, 2017, McIlroy, Inc., acquired a 60 percent interest in the common stock of Stinson, Inc., for $340,200. Stinson's book value on that date consisted of common stock of $100,000 and...
-
Calculate the amount of the child and dependent care credit allowed for 2012 in each of the following cases, assuming the taxpayers had no income other than the stated amounts. a. William and Carla...
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1 and 2. On September 1, Irene opened a retail store that specializes in sports car...
-
A professional baseball team set its sights on winning the World Series. The team owner wanted to win big and win fast. Consequently, the team sank all of its resources into trading for the best...
-
Immediately following World War II, the quality of products produced by Japanese companies was not good enough to compete in the international marketplace. The only advantage Japanese companies had...
-
Two quality managers meet for lunch every Friday to discuss common problems, compare notes, and make suggestions to each other. Today their discussion has turned into a debate. The topic is the...
Study smarter with the SolutionInn App