Overview EECS Components and Design Techniques for Digital Systems. Lec 15 Addition, Subtraction, and Negative Numbers. Positional Notation
|
|
- Florence Scott
- 5 years ago
- Views:
Transcription
1 Overview EEC 5 Compoets ad Desig Techiques for Digital ystems Lec 5 dditio, ubtractio, ad Negative Numbers David Culler Electrical Egieerig ad Computer cieces Uiversity of Califoria, erkeley Recall basic positioal otatio iary dditio Full dder (oolea Logic Revisited) Ripple Carry Carryselect adder Carry lookahead adder iary Number Represetatio ig & Magitude, Oes Complemet, Twos Complemet /6/27 EEC5Fa7 L5 additio Maipulatig represetatios of umbers Example (from 2 d grade) equece of decimal digits (radix ) Positio represets sigificace (most > least) Carry ito ext positio 3to2 coversio at each step Results may be oe digit loger, but assumed you could make room for it Positioal Notatio equece of digits: D k D k2 D represets the value D k k D k2 k2 D where D i {,, } is the base or radix of the umber system Example: 2, Ca covert from ay radix to ay other 2 = 3 = D 6 CE8 6 = = = = 286 /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio
2 Computer Number ystems We all take positioal otatio for grated D k D k2 D represets D k k D k2 k2 D where {,, } We all uderstad how to compare, add, subtract these umbers dd each positio, write dow the positio bit ad possibly carry to the ext positio Computers represet fiite umber systems Geerally radix 2 How do they efficietly compare, add, sub? How do we reduce it to etworks of gates ad FFs? Where does it break dow? Maipulatio of fiite represetatios does t behave like same operatio o coceptual umbers /6/27 EEC5Fa7 L5 additio Usiged Numbers dditio Example: 3 2 = 5 => tart with a truth table ad go from there /6/27 EEC5Fa7 L5 additio Usiged biary additio Is just additio, base 2 dd the bits i each positio ad carry How do we build a combiatioal logic circuit to perform additio? iary dditio: Half dder i i i i Carry um um Carry i i um = i i i i = i i Halfadder chematic i i Carry = i i Fulldder (derivatio) Co Ci = CI xor xor = CI CI = CI ( ) CI CI CI ut each bit positio may have a carry i 3 uary iputs F 2 biary outputs /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio
3 Full dder Ripple Carry Co CI Ci? 3 C3 2 C2 C CI Now we ca coect them up to do multiple bits /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio Full dder from Half dders (little aside) tadard pproach: 6 Gates CI CI Delay i the Ripple Carry dder late arrivig sigal Critical delay: the propagatio of carry from low to high two gate delays to compute lterative Implemetatio: 5 Gates C CI Half dder Half dder CI CI ( ) stage adder 2 C C CI ( xor ) = CI CI /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio fial sum ad carry
4 Ripple Carry Timig Critical delay: the propagatio of carry from low to high order stages, C Valid, C2 Valid 2, C3 Valid 3, C Valid Recall: VirtexE CL CL = logic cells (LC) i two slices LC: iput fuctio geerator, carry logic, storage ele t 8 x 2 CL array o 2E worst case additio T T2 T T6 T8 T: Iputs to the adder are valid T2: tage carry out (C) T: tage carry out (C2) T6: tage 2 carry out (C3) 2 delays to compute sum but last carry ot ready util 6 delays later T8: tage 3 carry out (C) /6/27 EEC5Fa7 L5 additio /6/27 6x EEC5Fa7 sychroous L5 RM additio FF or latch dders (cot.) Carry elect dder Ripple dder c7 c6 c5 c c3 c2 b a c b7a7 b6a6 b5a5 b a F b3a3 b2a2 ba ba c s7 s6 F Ripple adder is iheretly slow because, i geeral s7 must wait for c7 which must wait for c6 c s c8 b7a7 b6a6 b5a5 ba F s3 s2 s s T α, Cost α How do we make it faster, perhaps with more cost? Classic approach: Carry Lookhead Or use a MUX!!! /6/27 EEC5Fa7 L5 additio s7 s6 s5 s T = T ripple_adder / 2 T MUX T =.5 * T ripple_adder () * T MUX /6/27 EEC5Fa7 L5 additio
5 Exteded Carry elect dder Carry elect dder Performace b5b2 a5a2 bb8 aa8 b7b a7a b5b2 a5a2 bb8 aa8 b7b a7a cout bit dder bit dder bit dder bit dder bit dder bit dder b3b a3a bit dder ci cout bit dder bit dder bit dder bit dder bit dder bit dder b3b a3a bit dder ci What is the optimal # of blocks ad # of bits/block? If # blocks too large delay domiated by total mux delay If # blocks too small delay domiated by adder delay per block N stages of N bits /6/27 EEC5Fa7 L5 additio T α sqrt(n), Cost 2*ripple muxes Compare to ripple adder delay: T total = 2 sqrt(n) T F T F, assumig T F = T MUX For ripple adder T total = N T F crossover at N=3, Carry select faster for ay value of N>3. Is sqrt(n) really the optimum? From right to left icrease size of each block to better match delays Ex: 6bit adder, use block sizes [ ] How about recursively defied carry select? /6/27 EEC5Fa7 L5 additio oucemets Readig Katz 5.6 ad ppedix Mid III will just stay put i fial slot o more fussig with it. Project demo at Lab Lecture friday Do t hedge o lab workload reportig It matters to us ad is NOT a egative i your grade Lab5 CP CP2 cruch It should lighte Do t hesitate to get guidace o the specifics of your approach from the Ts. They are there to help. Lab5 solutio walkthru Friday after lab lecture What really happes with the carries b a c7 c6 c5 c c3 c2 c F s7 s6 c s Cout Carry actio i Ci kill Gi Ci ~Ci Propagate i Ci ~Ci propagate i Pi Ci geerate i Carry Geerate Gi = i i must geerate carry whe = = Carry Propagate Pi = i xor i carry i will equal carry out here /6/27 EEC5Fa7 L5 additio ll geerates ad propagates i parallel at first stage. No ripple. /6/27 EEC5Fa7 L5 additio
6 Carry Kill / Prop / Ge example Carry Look head Logic c7 c6 c5 c c3 c2 Carry Geerate Gi = i i must geerate carry whe = = F Carry Propagate Pi = i xor i carry i will equal carry out here s7 s6 s um ad Carry ca be reexpressed i terms of geerate/propagate: K P G P K P P G i = i xor i xor Ci = Pi xor Ci Ci = i i i Ci i Ci Ci Pi i = i i Ci (i i) = i i Ci (i xor i) = Gi Ci Pi Gi Ci Pi Ci /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio ll Carries i Parallel CL Implemetatio Reexpress the carry logic for each of the bits: C = G P C i i Ci gate delay 2 gate delays dder with Propagate ad Geerate Outputs C2 = G P C = G P G P P C C3 = G2 P2 C2 = G2 P2 G P2 P G P2 P P C gate delay Icreasigly complex logic C = G3 P3 C3 = G3 P3 G2 P3 P2 G P3 P2 P G P3 P2 P P C Each of the carry equatios ca be implemeted i a twolevel logic etwork Variables are the adder iputs ad carry i to stage! C P G C P P G P G C C2 C P P P2 G P P2 G P2 G2 C3 C P P P2 P3 G P P2 P3 G P2 P3 G2 P3 C /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio G3
7 How do we exted this to larger adders? Cascaded Carry Lookahead Faster carry propagatio bits at a time ut still liear Ca we get to log? Compute propagate ad geerate for each adder LOCK 7 3 C [52] [52] 6 C [8] [8] bit dder 2 C [7] [7] bit dder 8 C [3] [3] C bit dder bit dder P G P G P G @ [52] [8] @3 P 3 G 3 C 3 P 2 G 2 C 2 P G C P G C 6 C C Lookahead Carry P 3 bit adders with iteral carry lookahead secod level carry lookahead uit, exteds lookahead to 6 bits Oe more level to 6 bits /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio Tradeoffs i combiatioal logic desig o what about subtractio? Time vs. pace Tradeoffs Doig thigs fast requires more logic ad thus more space Example: carry lookahead logic imple with lots of gates vs complex with fewer rithmetic Logic Uits Critical compoet of processor datapath Develop subtractio circuit usig the same process Truth table for each bit slice orrow i from slice of lesser sigificace orrow out to slice of greater sigificace Very much like carry chai Homework exercise Iermost "loop" of most computer istructios /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio
8 Fiite represetatio? /6/27 EEC5Fa7 L5 additio What happes whe > 2 N? Overflow Detect?» Carry out What happes whe <? Negative umbers? orrow out? Number ystems Desirable properties: Efficiet ecodig (2 bit patters. How may umbers?) Positive ad egative» Closure (almost) uder additio ad subtractio Except whe overflow» Represetatio of positive umbers same i most systems» Major differeces are i how egative umbers are represeted Efficiet operatios» Compariso: =, <, >» dditio, ubtractio» Detectio of overflow lgebraic properties?» Closure uder egatio?» == iff == Three Major schemes: sig ad magitude oes complemet twos complemet /6/27 (excess otatio) EEC5Fa7 L5 additio Which oe did you lear i 2 d grade? ig ad Magitude = = 6 7 High order bit is sig: = positive (or zero), = egative Remaiig low order bits is the magitude: () thru 7 () Number rage for bits = / 2 Represetatios for? Operatios: =, <, >,,??? /6/27 EEC5Fa7 L5 additio Example: N = Oes Complemet it maipulatio: simply complemet each of the bits > lgebraically N is positive umber, the N is its egative 's complemet N = (2 )N 2 Example: 's complemet of 7 i 's comp. /6/27 EEC5Fa7 L5 additio
9 Oes Complemet o the umber wheel ubtractio implemeted by additio & 's complemet ig is easy to determie Closure uder egatio. If ca be represeted, so ca till two represetatios of! If = the is ==? dditio /6/27 is almost clockwise EEC5Fa7 advace, L5 additio like usiged = = Twos Complemet umber wheel Easy to determie sig (?) 8 7 Oly oe represetatio for dditio ad subtractio just as i usiged case imple compariso: < iff < Oe more egative umber tha positive umber oe umber has o additive iverse /6/27 EEC5Fa7 L5 additio 2 3 = = Twos Complemet (algebraically) N* = 2 N 2 = Example: Twos complemet of 7 sub 7 = = repr. of How is additio performed i each umber system? Example: Twos complemet of sub 2 = = Operads may be positive or egative it maipulatio: = repr. of 7 Twos complemet: take bitwise complemet ad add oe > > (represetatio of ) > > (represetatio of 7) /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio
10 ig Magitude dditio Operad have same sig: usiged additio of magitudes Oes complemet additio Perform usiged additio, the add i the edaroud carry result sig bit is the same as the operads' sig 3 7 () 3 7 () Operads have differet sigs: subtract smaller from larger ad keep sig of the larger Ed aroud carry 3 Ed aroud carry 3 /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio Whe carry occurs Why does edaroud carry work? 2 3 = Recall: N = (2 ) N Edaroud carry work is equivalet to subtractig 2 ad addig M N = M N = M (2 N) = (M N) 2 (whe M > N) = M N where M > N M N M (N) = M N = (2 M ) (2 N ) = 2 [2 (M N)] after ed aroud carry: = 2 (M N) M N < 2 this is the correct form for represetig (M N) i 's comp! /6/27 EEC5Fa7 L5 additio /6/27 EEC5Fa7 L5 additio
11 Twos Complemet dditio Twos Complemet umber wheel Perform usiged additio ad Discard the carry out. Overflow? 3 7 () = = M N where N M 2 impler additio scheme makes twos complemet the most commo choice for iteger umber systems withi digital systems /6/27 EEC5Fa7 L5 additio M N whe N > M /6/27 EEC5Fa7 L5 additio 2s Comp: igore the carry out M N whe N > M: M* N = (2 M) N = 2 (N M) Igorig carryout is just like subtractig 2 M N where N M 2 M (N) = M* N* = (2 M) (2 N) = 2 (M N) 2 fter igorig the carry, this is just the right twos compl. represetatio for (M N)! /6/27 EEC5Fa7 L5 additio 2s Complemet Overflow How ca you tell a overflow occurred? dd two positive umbers to get a egative umber or two egative umbers to get a positive umber = 8! 2 = 7! /6/27 EEC5Fa7 L5 additio 3 7 6
12 2s comp. Overflow Detectio 2s Complemet dder/ubtractor el el el el Overflow Overflow No overflow /6/27 EEC5Fa7 L5 additio 5 8 No overflow Overflow occurs whe carry i to sig does ot equal carry out CI CI CI CI 3 2 Overflow = () = /6/27 EEC5Fa7 L5 additio dd/ubtract ummary Circuit desig for usiged additio Full adder per bit slice Delay limited by Carry Propagatio» Ripple is algorithmically slow, but wires are short Carry select imple, resourceitesive Excellet layout Carry lookahead Excellet asymptotic behavior Great at the board level, but wire legth effects are sigificat o chip Digital umber systems How to represet egative umbers imple operatios Clea algorithmic properties 2s complemet is most widely used Circuit for usiged arithmetic ubtract by complemet ad carry i Overflow whe ci xor cout of sigbit is /6/27 EEC5Fa7 L5 additio
Arithmetic Circuits. (Part I) Randy H. Katz University of California, Berkeley. Spring 2007
rithmetic Circuits (Part I) Rady H. Katz Uiversity of Califoria, erkeley prig 27 Lecture #23: rithmetic Circuits- Motivatio rithmetic circuits are excellet examples of comb. logic desig Time vs. pace Trade-offs
More informationArithmetic Circuits. (Part I) Randy H. Katz University of California, Berkeley. Spring Time vs. Space Trade-offs. Arithmetic Logic Units
rithmetic rcuits (art I) Rady H. Katz Uiversity of Califoria, erkeley otivatio rithmetic circuits are excellet examples of comb. logic desig Time vs. pace Trade-offs Doig thigs fast requires more logic
More informationEE260: Digital Design, Spring n Binary Addition. n Complement forms. n Subtraction. n Multiplication. n Inputs: A 0, B 0. n Boolean equations:
EE260: Digital Desig, Sprig 2018 EE 260: Itroductio to Digital Desig Arithmetic Biary Additio Complemet forms Subtractio Multiplicatio Overview Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi
More informationEgyptian Numerals. Mesopotamia Civilization. Babylonian numerals
3C Palaeolithic peoples i cetral Europe ad Frace record umbers o boes. 5C decimal umber system is i use i Egypt. C abyloia ad Egyptia caledars i use. 3C The first symbols for umbers, simple straight lies,
More informationEECS150 - Digital Design Lecture 10 - Combinational Logic Circuits Part 1
EECS5 - Digital Design Lecture - Combinational Logic Circuits Part Feburary 26, 22 John Wawrzynek Spring 22 EECS5 - Lec-cl Page Combinational Logic (CL) Defined y i = f i (x,...., xn-), where x, y are
More informationEE260: Digital Design, Spring n MUX Gate n Rudimentary functions n Binary Decoders. n Binary Encoders n Priority Encoders
EE260: Digital Desig, Sprig 2018 EE 260: Itroductio to Digital Desig MUXs, Ecoders, Decoders Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi at Māoa Overview of Ecoder ad Decoder MUX Gate
More informationReview. EECS Components and Design Techniques for Digital Systems. Lec 18 Arithmetic II (Multiplication) Computer Number Systems
Review EE 5 - omponents and Design Techniques for Digital ystems Lec 8 rithmetic II (Multiplication) David uller Electrical Engineering and omputer ciences University of alifornia, Berkeley http://www.eecs.berkeley.edu/~culler
More informationEECS150. Arithmetic Circuits
EE5 ection 8 Arithmetic ircuits Fall 2 Arithmetic ircuits Excellent Examples of ombinational Logic Design Time vs. pace Trade-offs Doing things fast may require more logic and thus more space Example:
More informationChapter 9 Computer Design Basics
Logic ad Computer Desig Fudametals Chapter 9 Computer Desig asics Part Datapaths Charles Kime & Thomas Kamiski 008 Pearso Educatio, Ic. (Hyperliks are active i View Show mode) Overview Part Datapaths Itroductio
More informationChapter 9 Computer Design Basics
Logic ad Computer Desig Fudametals Chapter 9 Computer Desig Basics Part 1 Datapaths Overview Part 1 Datapaths Itroductio Datapath Example Arithmetic Logic Uit (ALU) Shifter Datapath Represetatio Cotrol
More informationOverview. Arithmetic circuits. Binary half adder. Binary full adder. Last lecture PLDs ROMs Tristates Design examples
Overview rithmetic circuits Last lecture PLDs ROMs Tristates Design examples Today dders Ripple-carry Carry-lookahead Carry-select The conclusion of combinational logic!!! General-purpose building blocks
More informationFIR Filters. Lecture #7 Chapter 5. BME 310 Biomedical Computing - J.Schesser
FIR Filters Lecture #7 Chapter 5 8 What Is this Course All About? To Gai a Appreciatio of the Various Types of Sigals ad Systems To Aalyze The Various Types of Systems To Lear the Skills ad Tools eeded
More informationFig. 7-6 Single Bus versus Dedicated Multiplexers
7- Select SSS2 LLL2 LLL2 S 2 to MUX R R Select S 2 to MUX R S S 3 to MUX 2 us R S 2 to MUX R2 R2 (a) Dedicated multiplexers (b) Sigle us Fig. 7-6 Sigle us versus Dedicated Multiplexers 2 Pretice Hall,
More informationNumber Representation
Number Represetatio 1 Number System :: The Basics We are accustomed to usig the so-called decimal umber system Te digits :: 0,1,2,3,4,5,6,7,8,9 Every digit positio has a weight which is a power of 10 Base
More informationEECS150 - Digital Design Lecture 22 - Arithmetic Blocks, Part 1
EECS150 - igital esign Lecture 22 - Arithmetic Blocks, Part 1 April 10, 2011 John Wawrzynek Spring 2011 EECS150 - Lec23-arith1 Page 1 Each cell: r i = a i XOR b i XOR c in Carry-ripple Adder Revisited
More informationCHAPTER XI DATAPATH ELEMENTS
CHAPTER XI- CHAPTER XI CHAPTER XI READ REE-DOC ON COURSE WEBPAGE CHAPTER XI-2 INTRODUCTION -INTRODUCTION So far we have discussed may small compoets ad buildig blocks. Oe fial step i our buildig blocks
More informationAdvanced Course of Algorithm Design and Analysis
Differet complexity measures Advaced Course of Algorithm Desig ad Aalysis Asymptotic complexity Big-Oh otatio Properties of O otatio Aalysis of simple algorithms A algorithm may may have differet executio
More informationBit-Sliced Design. EECS 141 F01 Arithmetic Circuits. A Generic Digital Processor. Full-Adder. The Binary Adder
it-liced Design Control EEC 141 F01 rithmetic Circuits Data-In Register dder hifter it 3 it 2 it 1 it 0 Data-Out Tile identical processing elements Generic Digital Processor Full-dder MEMORY Cin Full adder
More informationAlgorithm Analysis. Chapter 3
Data Structures Dr Ahmed Rafat Abas Computer Sciece Dept, Faculty of Computer ad Iformatio, Zagazig Uiversity arabas@zu.edu.eg http://www.arsaliem.faculty.zu.edu.eg/ Algorithm Aalysis Chapter 3 3. Itroductio
More informationA One-Step Modulo 2 n +1 Adder Based on Double-lsb Representation of Residues
The CSI Joural o Computer Sciece ad Egieerig Vol. 4, No. &4, 6 Pages 1-16 Regular Paper A Oe-Step Modulo +1 Adder Based o Double-lsb Represetatio of Residues Ghassem Jaberipur Departmet of Electrical ad
More informationAnalysis of Algorithms. Introduction. Contents
Itroductio The focus of this module is mathematical aspects of algorithms. Our mai focus is aalysis of algorithms, which meas evaluatig efficiecy of algorithms by aalytical ad mathematical methods. We
More information6.003 Homework #3 Solutions
6.00 Homework # Solutios Problems. Complex umbers a. Evaluate the real ad imagiary parts of j j. π/ Real part = Imagiary part = 0 e Euler s formula says that j = e jπ/, so jπ/ j π/ j j = e = e. Thus the
More information4.3 Growth Rates of Solutions to Recurrences
4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.
More informationPhysics 310 Lecture 9a DAC and ADC
Lecture 9a ad Mo. 3/19 Wed. 3/1 Thurs. 3/ Fri. 3/3 Mo. 3/6 Wed. 3/8 Thurs. 3/9 h 14.1,.6-.10; pp 373-374 (Samplig Frequecy); 1.6: & More of the same Lab 9: & More of the same; Quiz h 14 Project: ompoet
More informationDESIGN AND IMPLEMENTATION OF IMPROVED AREA EFFICIENT WEIGHTED MODULO 2N+1 ADDER DESIGN
ARPN Joural of Egieerig ad Applied Scieces 2006-204 Asia Research Publishig Network (ARPN). All rights reserved. www.arpjourals.com DESIGN AND IMPLEMENTATION OF IMPROVED AREA EFFICIENT WEIGHTED MODULO
More informationArithmetic Circuits How to add and subtract using combinational logic Setting flags Adding faster
rithmetic Circuits Didn t I learn how to do addition in second grade? UNC courses aren t what they used to be... 01011 +00101 10000 Finally; time to build some serious functional blocks We ll need a lot
More informationModel of Computation and Runtime Analysis
Model of Computatio ad Rutime Aalysis Model of Computatio Model of Computatio Specifies Set of operatios Cost of operatios (ot ecessarily time) Examples Turig Machie Radom Access Machie (RAM) PRAM Map
More informationApplications of Distributed Arithmetic to Digital Signal Processing: A Tutorial Review
pplicatios of Distriuted rithmetic to Digital Sigal Processig: Tutorial Review Ref: Staley. White, pplicatios of Distriuted rithmetic to Digital Sigal Processig: Tutorial Review, IEEE SSP Magazie, July,
More informationCS 332: Algorithms. Linear-Time Sorting. Order statistics. Slide credit: David Luebke (Virginia)
1 CS 332: Algorithms Liear-Time Sortig. Order statistics. Slide credit: David Luebke (Virgiia) Quicksort: Partitio I Words Partitio(A, p, r): Select a elemet to act as the pivot (which?) Grow two regios,
More informationAnnotations to the assignments and the solution sheet. Note the following points
WS 26/7 Trial Exam: Fudametals of Computer Egieerig Seite: Aotatios to the assigmets ad the solutio sheet This is a multiple choice examiatio, that meas: Solutio approaches are ot assessed. For each sub-task
More informationArithmetic Circuits Didn t I learn how to do addition in the second grade? UNC courses aren t what they used to be...
rithmetic Circuits Didn t I learn how to do addition in the second grade? UNC courses aren t what they used to be... + Finally; time to build some serious functional blocks We ll need a lot of boxes The
More informationEE260: Digital Design, Spring n Binary logic and Gates n Boolean Algebra. n Basic Properties n Algebraic Manipulation
EE26: Digital Desig, Sprig 28 2-Ja-8 EE 26: Itroductio to Digital Desig Boolea lgebra: Logic Represetatios ad alysis Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi at Māoa Overview Biary
More informationECE 2300 Digital Logic & Computer Organization
ECE 2300 Digital Logic & Computer Organization pring 201 More inary rithmetic LU 1 nnouncements Lab 4 prelab () due tomorrow Lab 5 to be released tonight 2 Example: Fixed ize 2 C ddition White stone =
More informationInternal Information Representation and Processing
Iteral Iformatio Represetatio ad Processig CSCE 16 - Fudametals of Computer Sciece Dr. Awad Khalil Computer Sciece & Egieerig Departmet The America Uiversity i Cairo Decimal Number System We are used to
More informationECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations
ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows
More informationOPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES
OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass
More informationSums, products and sequences
Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter
More informationEECE 301 Signals & Systems
EECE 301 Sigals & Systems Prof. Mark Fowler Note Set #8 D-T Covolutio: The Tool for Fidig the Zero-State Respose Readig Assigmet: Sectio 2.1-2.2 of Kame ad Heck 1/14 Course Flow Diagram The arrows here
More informationApplications of Distributed Arithmetic to Digital Signal Processing: A Tutorial Review
pplicatios of Distriuted rithmetic to Digital Sigal Processig: Tutorial Review Ref: Staley. White, pplicatios of Distriuted rithmetic to Digital Sigal Processig: Tutorial Review, IEEE SSP Magazie, July,
More informationRound-off Errors and Computer Arithmetic - (1.2)
Roud-off Errors ad Comuter Arithmetic - (1.) 1. Roud-off Errors: Roud-off errors is roduced whe a calculator or comuter is used to erform real umber calculatios. That is because the arithmetic erformed
More informationProblem 01 X Y. Logic Testbank. Problem. Problems. Problem 1:
This documet was created by me but that does t mea that I ow this cotet, so I m just sharig it like ayoe else would do, good luck - Sa'eed wad roblems roblem 01 roblem Logic Testbak roblem 1: 4-to-1 MUX,
More informationLoad. Load. Load 1 0 MUX B. MB select. Bus A. A B n H select S 2:0 C S. G select 4 V C N Z. unit (ALU) G. Zero Detect.
9- Write D data Load eable A address A select B address B select Load R 2 2 Load Load R R2 UX 2 3 UX 2 3 2 3 Decoder D address 2 Costat i Destiatio select 28 Pearso Educatio, Ic.. orris ao & Charles R.
More informationExponents. Learning Objectives. Pre-Activity
Sectio. Pre-Activity Preparatio Epoets A Chai Letter Chai letters are geerated every day. If you sed a chai letter to three frieds ad they each sed it o to three frieds, who each sed it o to three frieds,
More informationEE 505. Lecture 29. ADC Design. Oversampled
EE 505 Lecture 29 ADC Desig Oversampled Review from Last Lecture SAR ADC V IN Sample Hold C LK V REF DAC DAC Cotroller DAC Cotroller stores estimates of iput i Successive Approximatio Register (SAR) At
More informationBinary addition by hand. Adding two bits
Chapter 3 Arithmetic is the most basic thing you can do with a computer We focus on addition, subtraction, multiplication and arithmetic-logic units, or ALUs, which are the heart of CPUs. ALU design Bit
More information1 Summary: Binary and Logic
1 Summary: Biary ad Logic Biary Usiged Represetatio : each 1-bit is a power of two, the right-most is for 2 0 : 0110101 2 = 2 5 + 2 4 + 2 2 + 2 0 = 32 + 16 + 4 + 1 = 53 10 Usiged Rage o bits is [0...2
More informationChapter 9: Numerical Differentiation
178 Chapter 9: Numerical Differetiatio Numerical Differetiatio Formulatio of equatios for physical problems ofte ivolve derivatives (rate-of-chage quatities, such as velocity ad acceleratio). Numerical
More informationADVANCED DIGITAL SIGNAL PROCESSING
ADVANCED DIGITAL SIGNAL PROCESSING PROF. S. C. CHAN (email : sccha@eee.hku.hk, Rm. CYC-702) DISCRETE-TIME SIGNALS AND SYSTEMS MULTI-DIMENSIONAL SIGNALS AND SYSTEMS RANDOM PROCESSES AND APPLICATIONS ADAPTIVE
More informationSome Explicit Formulae of NAF and its Left-to-Right. Analogue Based on Booth Encoding
Vol.7, No.6 (01, pp.69-74 http://dx.doi.org/10.1457/ijsia.01.7.6.7 Some Explicit Formulae of NAF ad its Left-to-Right Aalogue Based o Booth Ecodig Dog-Guk Ha, Okyeo Yi, ad Tsuyoshi Takagi Kookmi Uiversity,
More information6.3 Testing Series With Positive Terms
6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial
More informationSection 6.4: Series. Section 6.4 Series 413
ectio 64 eries 4 ectio 64: eries A couple decides to start a college fud for their daughter They pla to ivest $50 i the fud each moth The fud pays 6% aual iterest, compouded mothly How much moey will they
More informationChapter Vectors
Chapter 4. Vectors fter readig this chapter you should be able to:. defie a vector. add ad subtract vectors. fid liear combiatios of vectors ad their relatioship to a set of equatios 4. explai what it
More informationFilter banks. Separately, the lowpass and highpass filters are not invertible. removes the highest frequency 1/ 2and
Filter bas Separately, the lowpass ad highpass filters are ot ivertible T removes the highest frequecy / ad removes the lowest frequecy Together these filters separate the sigal ito low-frequecy ad high-frequecy
More informationModel of Computation and Runtime Analysis
Model of Computatio ad Rutime Aalysis Model of Computatio Model of Computatio Specifies Set of operatios Cost of operatios (ot ecessarily time) Examples Turig Machie Radom Access Machie (RAM) PRAM Map
More informationIn number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.
Number Theory Math 5840 otes. Sectio 1: Axioms. I umber theory we will geerally be workig with itegers, though occasioally fractios ad irratioals will come ito play. Notatio: Z deotes the set of all itegers
More information14:332:231 DIGITAL LOGIC DESIGN
4:332:23 DIGITAL LOGIC DEIGN Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 23 Lecture #4: Adders, ubtracters, and ALUs Vector Binary Adder [Wakerly 4 th Ed., ec. 6., p. 474] ingle
More informationComputing the output response of LTI Systems.
Computig the output respose of LTI Systems. By breaig or decomposig ad represetig the iput sigal to the LTI system ito terms of a liear combiatio of a set of basic sigals. Usig the superpositio property
More informationEfficient Reverse Converter Design for Five Moduli
Joural of Computatios & Modellig, vol., o., 0, 93-08 ISSN: 79-765 (prit), 79-8850 (olie) Iteratioal Scietific ress, 0 Efficiet Reverse Coverter Desig for Five Moduli Set,,,, MohammadReza Taheri, Elham
More informationMIXED REVIEW of Problem Solving
MIXED REVIEW of Problem Solvig STATE TEST PRACTICE classzoe.com Lessos 2.4 2.. MULTI-STEP PROBLEM A ball is dropped from a height of 2 feet. Each time the ball hits the groud, it bouces to 70% of its previous
More informationSNAP Centre Workshop. Basic Algebraic Manipulation
SNAP Cetre Workshop Basic Algebraic Maipulatio 8 Simplifyig Algebraic Expressios Whe a expressio is writte i the most compact maer possible, it is cosidered to be simplified. Not Simplified: x(x + 4x)
More information3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,
3. Z Trasform Referece: Etire Chapter 3 of text. Recall that the Fourier trasform (FT) of a DT sigal x [ ] is ω ( ) [ ] X e = j jω k = xe I order for the FT to exist i the fiite magitude sese, S = x [
More informationClassification of problem & problem solving strategies. classification of time complexities (linear, logarithmic etc)
Classificatio of problem & problem solvig strategies classificatio of time complexities (liear, arithmic etc) Problem subdivisio Divide ad Coquer strategy. Asymptotic otatios, lower boud ad upper boud:
More informationStructure of a Typical Digital System Data Inputs
ecture RT Desig Methodology Trasitio from the & Iterface to a Correspodig Block Diagram Structure of a Typical Digital System Data Iputs Datapath (Executio Uit) Data Outputs Cotrol Sigals Status Sigals
More informationCMPUT 329. Circuits for binary addition
CMPUT 329 Parallel Adder with Carry Lookahead and ALU Ioanis Nikolaidis (Katz & Borriello) rcuits for binary addition Full adder (carry-in to cascade for multi-bit adders) Sum = xor A xor B Cout = B +
More informationISSN: ISO 9001:2008 Certified International Journal of Engineering and Innovative Technology (IJEIT) Volume 2, Issue 5, November 2012
Iteratioal Joural of Egieerig ad Iovative Techology (IJEIT) Pre Improved Weighted Modulo 2 +1 Desig Based O Parallel Prefix Adder Dr.V.Vidya Devi, T.Veishkumar, T.Thomas Leoid PG Head/Professor, Graduate
More informationDesign and Analysis of ALGORITHM (Topic 2)
DR. Gatot F. Hertoo, MSc. Desig ad Aalysis of ALGORITHM (Topic 2) Algorithms + Data Structures = Programs Lessos Leared 1 Our Machie Model: Assumptios Geeric Radom Access Machie (RAM) Executes operatios
More informationUnit 6: Sequences and Series
AMHS Hoors Algebra 2 - Uit 6 Uit 6: Sequeces ad Series 26 Sequeces Defiitio: A sequece is a ordered list of umbers ad is formally defied as a fuctio whose domai is the set of positive itegers. It is commo
More informationPolynomials. Computer Programming for Engineers (2014 Spring)
Computer Programmig for Egieers (014 Sprig) Polyomials Hyougshick Kim Departmet of Computer Sciece ad Egieerig College of Iformatio ad Commuicatio Egieerig Sugkyukwa Uiversity Polyomials A th order polyomial
More informationTest One (Answer Key)
CS395/Ma395 (Sprig 2005) Test Oe Name: Page 1 Test Oe (Aswer Key) CS395/Ma395: Aalysis of Algorithms This is a closed book, closed otes, 70 miute examiatio. It is worth 100 poits. There are twelve (12)
More informationProperties and Tests of Zeros of Polynomial Functions
Properties ad Tests of Zeros of Polyomial Fuctios The Remaider ad Factor Theorems: Sythetic divisio ca be used to fid the values of polyomials i a sometimes easier way tha substitutio. This is show by
More informationChapter 22 Developing Efficient Algorithms
Chapter Developig Efficiet Algorithms 1 Executig Time Suppose two algorithms perform the same task such as search (liear search vs. biary search). Which oe is better? Oe possible approach to aswer this
More informationMidterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.
Announcements Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two. Chapter 5 1 Chapter 3: Part 3 Arithmetic Functions Iterative combinational circuits
More informationELE B7 Power Systems Engineering. Symmetrical Components
ELE B7 Power Systems Egieerig Symmetrical Compoets Aalysis of Ubalaced Systems Except for the balaced three-phase fault, faults result i a ubalaced system. The most commo types of faults are sigle liegroud
More informationSome examples of vector spaces
Roberto s Notes o Liear Algebra Chapter 11: Vector spaces Sectio 2 Some examples of vector spaces What you eed to kow already: The te axioms eeded to idetify a vector space. What you ca lear here: Some
More informationSignal Processing in Mechatronics. Lecture 3, Convolution, Fourier Series and Fourier Transform
Sigal Processig i Mechatroics Summer semester, 1 Lecture 3, Covolutio, Fourier Series ad Fourier rasform Dr. Zhu K.P. AIS, UM 1 1. Covolutio Covolutio Descriptio of LI Systems he mai premise is that the
More informationMath 113 Exam 3 Practice
Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you
More informationAdders allow computers to add numbers 2-bit ripple-carry adder
Lecture 12 Logistics HW was due yesterday HW5 was out yesterday (due next Wednesday) Feedback: thank you! Things to work on: ig picture, ook chapters, Exam comments Last lecture dders Today Clarification
More informationCh3. Asymptotic Notation
Ch. Asymptotic Notatio copyright 006 Preview of Chapters Chapter How to aalyze the space ad time complexities of program Chapter Review asymptotic otatios such as O, Ω, Θ, o for simplifyig the aalysis
More informationEE422G Homework #13 (12 points)
EE422G Homework #1 (12 poits) 1. (5 poits) I this problem, you are asked to explore a importat applicatio of FFT: efficiet computatio of covolutio. The impulse respose of a system is give by h(t) (.9),1,2,,1
More informationTopic 1 2: Sequences and Series. A sequence is an ordered list of numbers, e.g. 1, 2, 4, 8, 16, or
Topic : Sequeces ad Series A sequece is a ordered list of umbers, e.g.,,, 8, 6, or,,,.... A series is a sum of the terms of a sequece, e.g. + + + 8 + 6 + or... Sigma Notatio b The otatio f ( k) is shorthad
More informationZeros of Polynomials
Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree
More informationLESSON 2: SIMPLIFYING RADICALS
High School: Workig with Epressios LESSON : SIMPLIFYING RADICALS N.RN.. C N.RN.. B 5 5 C t t t t t E a b a a b N.RN.. 4 6 N.RN. 4. N.RN. 5. N.RN. 6. 7 8 N.RN. 7. A 7 N.RN. 8. 6 80 448 4 5 6 48 00 6 6 6
More informationSequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence
Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet
More informationDiscrete-Time Signals and Systems. Discrete-Time Signals and Systems. Signal Symmetry. Elementary Discrete-Time Signals.
Discrete-ime Sigals ad Systems Discrete-ime Sigals ad Systems Dr. Deepa Kudur Uiversity of oroto Referece: Sectios. -.5 of Joh G. Proakis ad Dimitris G. Maolakis, Digital Sigal Processig: Priciples, Algorithms,
More information1 Hash tables. 1.1 Implementation
Lecture 8 Hash Tables, Uiversal Hash Fuctios, Balls ad Bis Scribes: Luke Johsto, Moses Charikar, G. Valiat Date: Oct 18, 2017 Adapted From Virgiia Williams lecture otes 1 Hash tables A hash table is a
More informationChapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io
Chapter 9 - CD compaio CHAPTER NINE CD-9.2 CD-9.2. Stages With Voltage ad Curret Gai A Geeric Implemetatio; The Commo-Merge Amplifier The advaced method preseted i the text for approximatig cutoff frequecies
More informationParallel Vector Algorithms David A. Padua
Parallel Vector Algorithms 1 of 32 Itroductio Next, we study several algorithms where parallelism ca be easily expressed i terms of array operatios. We will use Fortra 90 to represet these algorithms.
More informationCMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays
CMSC 33 Lecture 8 Midterm Exam returned ssign Homework 3 Circuits for ddition Digital Logic Components Programmable Logic rrays UMC, CMSC33, Richard Chang Half dder Inputs: and Outputs:
More informationChapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.
Chapter 4 Dr. Panos Nasiopoulos Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. Sequential: In addition, they include storage elements Combinational
More informationActivity 3: Length Measurements with the Four-Sided Meter Stick
Activity 3: Legth Measuremets with the Four-Sided Meter Stick OBJECTIVE: The purpose of this experimet is to study errors ad the propagatio of errors whe experimetal data derived usig a four-sided meter
More informationis also known as the general term of the sequence
Lesso : Sequeces ad Series Outlie Objectives: I ca determie whether a sequece has a patter. I ca determie whether a sequece ca be geeralized to fid a formula for the geeral term i the sequece. I ca determie
More informationRecursive Algorithms. Recurrences. Recursive Algorithms Analysis
Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects
More informationInverse Matrix. A meaning that matrix B is an inverse of matrix A.
Iverse Matrix Two square matrices A ad B of dimesios are called iverses to oe aother if the followig holds, AB BA I (11) The otio is dual but we ofte write 1 B A meaig that matrix B is a iverse of matrix
More informationTime-Domain Representations of LTI Systems
2.1 Itroductio Objectives: 1. Impulse resposes of LTI systems 2. Liear costat-coefficiets differetial or differece equatios of LTI systems 3. Bloc diagram represetatios of LTI systems 4. State-variable
More informationModule 5 EMBEDDED WAVELET CODING. Version 2 ECE IIT, Kharagpur
Module 5 EMBEDDED WAVELET CODING Versio ECE IIT, Kharagpur Lesso 4 SPIHT algorithm Versio ECE IIT, Kharagpur Istructioal Objectives At the ed of this lesso, the studets should be able to:. State the limitatios
More informationModule 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops
Module 2 asic Digital uilding locks Lecturer: Dr. Yongsheng Gao Office: Tech 3.25 Email: Web: Structure: Textbook: yongsheng.gao@griffith.edu.au maxwell.me.gu.edu.au 6 lecturers 1 tutorial 1 laboratory
More informationLecture 2 Linear and Time Invariant Systems
EE3054 Sigals ad Systems Lecture 2 Liear ad Time Ivariat Systems Yao Wag Polytechic Uiversity Most of the slides icluded are extracted from lecture presetatios prepared by McClella ad Schafer Licese Ifo
More information2.4 - Sequences and Series
2.4 - Sequeces ad Series Sequeces A sequece is a ordered list of elemets. Defiitio 1 A sequece is a fuctio from a subset of the set of itegers (usually either the set 80, 1, 2, 3,... < or the set 81, 2,
More informationSignals & Systems Chapter3
Sigals & Systems Chapter3 1.2 Discrete-Time (D-T) Sigals Electroic systems do most of the processig of a sigal usig a computer. A computer ca t directly process a C-T sigal but istead eeds a stream of
More informationA sequence of numbers is a function whose domain is the positive integers. We can see that the sequence
Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as
More information