What is the size of your circuit in gates

Assignment Help Theory of Computation
Reference no: EM133522409

Computer Architecture

Question 1

Consider the problem of overflow detection from a 32-bit signed add/subtract unit. The available inputs are: a31-a0 (the 32 bits of the "a" operand; with a31 being the most significant bit and a0 being least significant bit), b31-b0 (same for the "b" operand), r31- r0 (the 32 bits of the result), and "S" an input where 0 means perform addition (a+b) and 1 means perform subtraction (a - b).

(a) Write the Truth Table for the Overflow output bit.

Hint: You should use 4 input bits: a31, b31, r31, and S.

(b) Write a sum-of-products or product-of-sums Boolean function for Overflow.

(c) Draw a logic circuit that implements the Boolean function from (b) using only AND and OR gates with inverters on complemented inputs.

(d) What is the size of your circuit in gates? Only count AND and OR gates.

(e) What is the gate delay of your circuit? Consider each AND/OR gate as a delay of 1, i.e., ignore delays caused by inverters or wires.

Question 2
Suppose an improvement on a given program is proposed for an architecture with Speedup=30. What fraction of the time must the improvement be used to achieve an overall speedup of 10 for the entire program? Hint: You should apply Amdahl's Law.

Question 3
Consider adding a register-memory addressing mode for source operands of ALU instructions to a load-store machine. The idea is to replace sequences of
LOAD R1, 0(Rb) # R1 = MEM[0 + Rb]
ADD R2, R1, R2 # R2 = R1 + R2
by the single instruction
ADD R2, 0(Rb) # R2 = R2 + MEM[0+Rb]
Assume that the new instruction will cause the clock cycle of the processor to increase by 5%. Answer the following using the instruction mix:
40% ALU, 25% Jumps, 20% Load, 10% Store, 5% Other Also assume that every instruction has the same CPI (e.g., 1.0).

(a) What percentage of loads must be eliminated for the machine with the new instruction to have at least the same performance as original?
Hint: use the Iron Law.

(b) Can this replacement be applied for all sequences of load followed by an ALU operation of the loaded value, or is there a situation where this cannot be used?

Reference no: EM133522409

Questions Cloud

Which has a published master plan : Select an institution of higher learning in your state which has a published Master Plan. Study the plan and answer the following. Do you recommend improvements
Describe climate change related issues facing your country : Describe at least two climate change related issues (poverty, food insecurity, environmental pollution, population etc.) facing your selected country.
How might this verse relate and work for you when you find : How might this verse relate and work for you when you find it difficult to work with others or complete tasks? what you are doing at work, home, and school
Study involving nurse and patient from different cultures : Create case study involving a nurse and patient from different cultures, either from your own practice situation or another source
What is the size of your circuit in gates : CS 5200 Computer Architecture, University of Colorado - Write a sum-of-products or product-of-sums Boolean function for Overflow and What is the size
What were some of the concepts that may have prompted : What were some of the concepts that may have prompted you to look at the relationship between business and society differently?
How did renaissance influence and impact european science : how did the renaissance influence and impact european science, culture, art, literature, and politics How did the renaissance influence holistic health
Write a rationale paper describing artifacts in e-portfolio : Write a rationale paper describing the artifacts in the e-portfolio and how they demonstrate skills, knowledge, understanding of theory professional disposition
Explain how you will use assessment data and analysis : Consider your selected grade level and explain the importance of using assessment data and analysis in your overall teaching practice.

Reviews

Write a Review

Theory of Computation Questions & Answers

  How outsourcing can be used for risk transference

Describe how outsourcing can be used for risk transference. With the increased growth in Cloud Computing use, review a cloud computing provider.

  Deterministic finite-state automaton

Suppose that L is a subset of I * and for some positive integer n there are n strings in I * such that every two of these strings are distinguishable.

  How much can you improve on these upper bounds

FIT2014 - Assignment - Legal and almost-legal positions can be counted using the scheme and How much can you improve on these upper bounds? In particular, can you reduce the 2.8 to a smaller number? If so, what can you reduce it to?

  Show language consisting bit strings that are palindromes

Suppose that L is a subset of I * and for some positive integer n there are n strings in I * such that every two of these strings are distinguishable.

  Cs476 automata theory and formal languages

CS476: Automata Theory and Formal Languages, State whether the following statements are true or not. You must give a BRIEF explanation or show a counter example to receive full credit.

  Describe devices or controls you know have been used

Describe devices or controls you know have been used in other organizations but you left out of question #3. Explain why you did not include them

  Write a recursive function definition for the function

Write a recursive function definition for the function E(n), where E(n) stands for the number of times "eeny" is printed when we call Hop(n).

  Find the largest sub automaton of h

Construct a nondeterministic automaton whose observer is not minimum-state, that is, it has equivalent states.

  Definition of regular expression

Express each of these sets using a regular expression. The set consisting of the strings 0, 11, and 010.

  The roommate problem and intern assignment problem

Implementation of both the algorithms using C/C++ code 1. roommates problem 2. Intern Problem

  Give both an fa and an re for l

In a string, a block is a substring in which all symbols are the same which can't be enlarged. For example, 0001100 have three blocks.

  Pto policies have become good tools for hr staff to use in

pto policies have become good tools for hr staff to use in terms of organizational incentives.while reviewing the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd