Computer Architecture Mid-term review Ralph Grishman Oct. 2015 NYU.

Slides:



Advertisements
Similar presentations
Kuliah Rangkaian Digital Kuliah 7: Unit Aritmatika
Advertisements

Carry Lookahead Homework
Introduction So far, we have studied the basic skills of designing combinational and sequential logic using schematic and Verilog-HDL Now, we are going.
Full Adder Display. Topics A 1 bit adder with LED display Ripple Adder Signed/Unsigned Subtraction Hardware Implementation of 4-bit adder.
1 Lecture 12: Hardware for Arithmetic Today’s topics:  Designing an ALU  Carry-lookahead adder Reminder: Assignment 5 will be posted in a couple of days.
Datorteknik ArithmeticCircuits bild 1 Computer arithmetic Somet things you should know about digital arithmetic: Principles Architecture Design.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 7 Arithmetic Logic Unit February 19,
Fast Adders See: P&H Chapter 3.1-3, C Goals: serial to parallel conversion time vs. space tradeoffs design choices.
CSE-221 Digital Logic Design (DLD)
Arithmetic-Logic Units CPSC 321 Computer Architecture Andreas Klappenecker.
Fall 2008EE VLSI Design I - © Kia Bazargan 1 EE 5323 – VLSI Design I Kia Bazargan University of Minnesota Adders.
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
 Arithmetic circuit  Addition  Subtraction  Division  Multiplication.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Constructing a Computer Creating a general purpose computing device.
EECS 370 Discussion 1 xkcd.com. EECS 370 Discussion Topics Today: – Floating Point – Finite State Machines – Combinational Logic – Sequential Logic 2.
Binary Addition Section 4.5. Binary Addition Example.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
Computer Architecture Lecture 2 Combinational Circuits Ralph Grishman September 2015 NYU.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
Basic Addition Review Basic Adders and the Carry Problem
Nov 10, 2008ECE 561 Lecture 151 Adders. Nov 10, 2008ECE 561 Lecture 152 Adders Basic Ripple Adders Faster Adders Sequential Adders.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
Morgan Kaufmann Publishers
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
1 Lecture 12 Time/space trade offs Adders. 2 Time vs. speed: Linear chain 8-input OR function with 2-input gates Gates: 7 Max delay: 7.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
Computer Architecture Lecture 3 Combinational Circuits Ralph Grishman September 2015 NYU.
Sneha.  A combinational circuit that performs the addition of two bits is called a half adder.  It has two inputs.  It has two outputs.
Computer Science 101 More Devices: Arithmetic. From 1-Bit Equality to N-Bit Equality = A B A = B Two bit strings.
ECE 331 – Digital System Design Multi-bit Adder Circuits, Adder/Subtractor Circuit, and Multiplier Circuit (Lecture #12)
Computer Architecture Lecture 10 MIPS Control Unit Ralph Grishman Oct NYU.
EKT 221 : Digital 2 Serial Transfers & Microoperations Date : Lecture : 2 hr.
1 Carry Lookahead Logic Carry Generate Gi = Ai Bi must generate carry when A = B = 1 Carry Propagate Pi = Ai xor Bi carry in will equal carry out here.
Number Systems and Circuits for Addition – Binary Adders Lecture 6 Section 1.5 Fri, Jan 26, 2007.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
Basic Addition Review Basic Adders and the Carry Problem Carry Propagation Speedup Speed/Cost Tradeoffs Two-operand Versus Multi-operand Adders.
1 The ALU l ALU includes combinational logic. –Combinational logic  a change in inputs directly causes a change in output, after a characteristic delay.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
ECEN 248 Lab 3: Study and Implementation of Adders Dept. of Electrical and Computer Engineering.
CDA3101 Recitation Section 5
Combinational Circuits
Somet things you should know about digital arithmetic:
EKT 221 : Digital 2 Serial Transfers & Microoperations
EKT 221 : Digital 2 Serial Transfers & Microoperations
Digital Logic Design 1st Exam Solution
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Unit5 Combinational circuit and instrumentation system.
CSE Winter 2001 – Arithmetic Unit - 1
Enemies make you stronger, allies make you weaker. Frank Herbert
Boolean Algebra.
ECE 301 – Digital Electronics
Number Systems and Circuits for Addition
CS/COE0447 Computer Organization & Assembly Language
DIGITAL ELECTRONICS B.SC FY
Digital Logic Circuits
Combinational Circuits
Instruction execution and ALU
More Example.
Lecture 3 Combinational units. Adders
Computer Architecture
Presentation transcript:

Computer Architecture Mid-term review Ralph Grishman Oct NYU

Grade distribution 100’s2 9º’s9 80’s11 70’s3 60’s4 50’s2 40’s1 30’s1 10/26/15Computer Architecture Midterm Solutions2

Question #1 freq = 1 / clock period = 1 / 500 ps = 1 / (500 * sec) = 1 / (0.5 * sec) = 2 * 10 9 Hz = 2 GHz (no part credit) 10/26/15Computer Architecture Midterm Solutions3

Question #3 if input is a b c output is (a AND (NOT b) AND (NOT c)) OR ((NOT a) AND b AND (NOT c)) OR ((NOT a) AND (NOT b) AND c) 10/26/15Computer Architecture Midterm Solutions4

Question #4 9 inputs – two-level tree – delay = 200 ps N inputs – # of gates = N/2 lose 1 pt for power series (not as informative) – delay = 100 ps * log 3 N 10/26/15Computer Architecture Midterm Solutions5

Question #5 ripple carry – optimal Full Adder Cin  Cout is 2 gate delays = 20 ps using Cout = (A and B) or (A and Cin) or (B and Cin) small penalty for using sub-optimal FA – 16-bit adder takes 16 * 20 ps = 320 ps carry look-ahead – 16-bit adder takes 8 gate delays = 80 ps – formulas in class notes 10/26/15Computer Architecture Midterm Solutions6

Question #6: Transition table currentnext /26/15Computer Architecture Midterm Solutions7

Question #6: Formulas next1 = current0 next0 = NOT current1 10/26/15Computer Architecture Midterm Solutions8

Question #6: circuit requires FFs (not latches) 10/26/15Computer Architecture Midterm Solutions9 current1 current0 not clock

Question #7 D-type latch – all four outputs change to 1 FF – only first output changes (result = ) 10/26/15Computer Architecture Midterm Solutions10

Question #8 slt$5,$2,$3 bne $5,$0,twoIsSmaller or $4,$2,$2 jdone twoIsSmaller:or$4,$3,$3 done: 10/26/15Computer Architecture Midterm Solutions11