Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops
|
|
- Brandon Joseph
- 6 years ago
- Views:
Transcription
1 Module 2 asic Digital uilding locks Lecturer: Dr. Yongsheng Gao Office: Tech Web: Structure: Textbook: yongsheng.gao@griffith.edu.au maxwell.me.gu.edu.au 6 lecturers 1 tutorial 1 laboratory (5%) 1 test (20%) Floyd, "Digital Fundamentals 8 ed" Chapters: Chapter 6 Chapter 7 Covers: inary rithmetic & rithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops INRY RITHMETIC ND RITHMETIC CIRCUITS 1.1 im In the previous lectures you have been shown the logic functions and how to minimise the logic functions. In this section you will learn how to perform addition and subtraction in binary, and how to combine the logic gates to make adders and subtractors, how to represent positive and negative numbers in binary, and how to perform arithmetic on these positive and negative numbers. 1
2 1.2 Decimal rithmetic ddition Truth Table + \ signifies a carry e.g = 3 with carry = 1 To add Decimal numbers 1. set carry = 0 2. start at right column 3. add all the digits in the column including the carry 4. If (sum > 10) then set carry=1 else set carry=0 5. Move to the next column on the left. 6. Repeat steps 3 to 5 until no more columns Example = Carry 1 Result 2 4 2
3 1.2.2 Subtraction Truth Table for Decimal Subtraction - \ signifies a borrow e.g. 5-6 = 9 with borrow = 1 To subtract Decimal numbers 1. set borrow = 0 2. start at right column 3. subtract all the digits in the column including the borrow 4. If (sub < 0) then add 10 to sub set borrow=1 else set borrow=0 5. Move to the next column on the left. 6. Repeat steps 3 to 5 until no more columns Example = orrow 1 Result 0 5 3
4 1.3 inary rithmetic ddition Truth Table for inary ddition + Σ Carry To add inary numbers 1. set carry = 0 2. start at right column 3. add all the bits in the column including the carry 4. If (sum > 10b) then set carry=1 else set carry=0 5. Move to the next column on the left. 6. Repeat steps 3 to 5 until no more columns Example = 100 (1)+(3)=(4) Carry 1 1 Result
5 1.3.2 Subtraction Truth Table for inary Subtraction - R orrow To subtract inary numbers 1. set borrow = 0 2. start at right column 3. subtract all the bits in the column including the borrow 4. If (sub < 0) then add 10b to sub and set borrow=1 else set borrow=0 5. Move to the next column on the left. 6. Repeat steps 3 to 5 until no more columns Example = 010 (5) - (3) = (2) orrow 1 0 Result
6 1.4 Circuits For inary ddition Half adder To add two binary numbers together you use a half adder circuit. Examining the truth table for the binary addition we note that the Σ column in the truth table is an XOR. The carry can be represented by an ND of inputs, Σ C o Therefore the circuit for the half adder can be drawn: Sum Carry out The symbol for a half adder is H S Co Sum Co 6
7 1.4.2 Full dder To add the higher order columns you also need to add the carry. The truth table for the full adder is shown below C i Σ C o The circuit can be constructed out of 2 half adders H S Co H S Co Sum Ci Cout The complete circuit for the full adder is Carry in Sum Carry out 7
8 The symbol for a full adder is Ci F Sum Cin Cout Sum Co Multibit dders The full adder only adds 2 one bit values together. Multiple bits can be added by using an adder for each bit. Example nibble (4 bit value) can be represented with 4 lines ( 0 to 3 ). Two nibbles can be represented with ( 0 to 3 ) & ( 0 to 3 ). dding + will produce 4 sum bits and a carry Eg Co MS LS (1) Each column in the addition has to be added separately with a separate adder circuit. Each addition is performed in parallel (at the same time) since each column uses its own adder. The 2 0 column does not require a Carry in since it is the first to be added. This column needs a half adder. Columns 2 3 to 2 1 require a Carry in because the calculation of the previous column (bit) could have generated a carry. These columns need a full adder. 8
9 1.4.4 Ripple Carry dder ripple carry adder connects the C out of one adder to the C in of the next adder. This is known as cascading. The circuit for a ripple carry adder to add two 4-bit numbers ( & ) together is: MS LS S3 Cout S2 S1 S0 Cin Cin Cin F F F H Sum Cout Sum Cout Sum Cout S Co Stage 3 Stage 2 Stage 1 Stage 0 Q. re all the sum bits calculated at the same time?. No. It takes the carry a finite time to propagate from the least significant bit (LS) to the most significant bit (MS). Each full adder needs the carry from the previous adder to calculate its sum therefore there is a delay in the calculation of each bit. Q. Is there a way to remove this delay?. Yes. n extra circuit called a look-ahead carry can be connected to input bits of each adder. This circuit uses the input bits to predict the output carry of each stage. Q. Computer use bytes (8 bits) and words (16 or 32 bits). Is there an easier way to add these without all the full and half adder circuits?. Yes. Integrated circuits (IC) can be used. They contain all the adding stages without us have to build them separately. 9
10 1.4.5 Integrated Circuit dders four bit adder is available as integrated circuits in both TTL and CMOS. The four bit adder takes two nibbles and a carry in bit to produce four sum bits and a carry out bit. Number Description 7483 TTL 4 bit adder with fast carry 74LS83 Low Power Schottky TTL 4 bit adder with fast carry 74HC283 High Speed CMOS 4 bit adder with fast carry 74LS283 Low Power Schottky TTL 4 bit adder with fast carry 4008 CMOS 4 bit adder with fast carry Switching Characteristics There will be a finite time for the circuit to perform the addition. This will mean that there is a delay between the changing the inputs and the corresponding change in the output. This delay is known as the progation delay. The switching characteristics on the data sheets show the propogation delays for each of summing stage outputs. The delays for the carrys are also indicated. 10
11 1.4.6 dder Expansion Q. How can I add bytes (8 bit) rather than nibbles (4 bit)?. Simple. Cascade the 74LS283 in the same manner as cascading adders as done previously. Each 74LS283 allows the addition of 4 bits. Therefore two 74LS283 will allow 8 bits for (0-7) and 8 bits for (0-7). The sum will be an 8 bit value (S0-S7). The carry out (C4) of the Least Significant nibble (Stage 1) must be connected to the carry in (C0) of the Most Significant nibble (Stage 2). The carry out of the Most Significant nibble is the carry for 8 bit addition. The carry in of the Least Significant nibble is the 0 since there are no preceeding stages } } } } C LS283 74LS283 S1 S2 S3 S4 C4 C4 S1 S2 S3 S C0 } S0-S3 Stage 1 Stage 2 Exercise: Design a circuit to add 12 bit numbers. Hint: 12 bits = 3 x nibbles. C7 } S4-S7 11
12 1.5 Circuits For inary Subtraction Half subtractor To subtract two binary numbers from each other you use a half subtractor circuit. Examining the truth table for the binary subtraction we note that the R column in the truth table is an XOR. The borrow can be represented by an ND of inputs, / R b o Therefore the circuit for the half subtractor can be drawn: R orrow out The symbol for a half subtractor is HS R bo R bo 12
13 1.5.2 Full Subtractor To subtract the higher order columns you also need to subtract the borrow. The truth table for the full subtractor is shown below b i R b o The circuit can be constructed out of 2 half subtractors HS R bo HS R bo R bi bo 13
14 The complete circuit for the full subtractor is orrow in R orrow out The symbol for a full subtractor is Ci F Sum Cin Cout Sum Co Multibit Subtractors The full subtractor only subtracts 2 one bit values together. Multiple bits can be subtracted by using an subtractor for each bit. Example nibble (4 bit value) can be represented with 4 lines ( 0 to 3 ). Two nibbles can be represented with ( 0 to 3 ) & ( 0 to 3 ). Subtracting - will produce 4 sum bits and a borrow Eg bo MS LS (0) Each column in the subtraction has to be subtracted separately with a separate subtractor circuit. Each subtraction is performed in parallel (at the same time) since each column uses its own subtractor. 14
15 The 2 0 column does not require a orrow in since it is the first to be subtracted. This column needs a half subtractor. Columns 2 3 to 2 1 require a orrow in because the calculation of the previous column (bit) could have generated a borrow. These columns need a full subtractor. MS R3 bout R2 R1 LS R0 bi bi bi FS FS FS HS R bo R bo R bo R bo Stage 3 Stage 2 Stage 1 Stage 0 15
16 1.6 inary Number Systems llowing Negative Values Sign Magnitude Sign magnitude allows the representation of positive and negative numbers The Most Significant bit is used to represent the sign. 0 = positive value 1 = negative value e.g. In an 8 bit value ± Decimal Sign Magnitude The range is (-127) to (+127) The problem is you have 2 zeros (+0) (-0) 16
17 1.6.2 One s Complement Representation The one s complement representation allows both positive and negative numbers. The complement is the inverse or opposite of a number. Eg The complement of +3 is 3 and vice versa positive number is represented by its normal binary value. negative number is represented by inverting all the bits of the corresponding positive number. Example +4 take binary take binary 0100 invert 1011 Note: The most significant bit is equivalent to the sign bit The one s complement representation for 4 to 4 is shown in the table below. Decimal One's complement
18 1.6.3 Two s Complement Representation positive number is represented by its normal binary value. negative number is represented by taking the one s complement value and adding 1. Example +2 take binary 0010 Note: -2 take 1 s complement The most significant bit is equivalent to the sign bit The two s complement representation for 4 to 4 is shown in the table below. Decimal Two's complement quick method to find the 2 s complement is to start at the rightmost bit (least significant) and copy each bit while moving left until the bit is a 1. fter this keep moving to the left but invert all the bits. Eg Find the 2 s complement of invert copy
19 Find the 2 s complement of s comp method 1 s comp = result = 1011 Quick 0101 copy = 1 invert 010 = 101 result = 1011 Find the twos complement of is a positive number 5 = 0101b result = 0101 Find the twos complement of -5-5 is a negative number 5 = 0101b 1 s comp method 1 s comp = result = 1011 Quick 0101 copy = 1 invert 010 = 101 result =
20 1.6.4 Two s Complement rithmetic Two s complement is the most widely used method for performing arithmetic. Computer s perform their integer arithmetic using 2 s complement. The advantage of 2 s complement is that addition and subtraction can be performed using just addition. Thus the same circuitry can be used for additions and subtraction. ddition: + Subtraction: = + - Signed 2 s complement numbers. negative number is the 2 s complement of a positive number. The sign can be determined by examing the MSit. If the MSit is 1, then the number is in 2 s complement form and is therfore negative. Example 0100 = = = = -39 Range of a 2 s complement number The total number of possible values for an n bit number is 2 n. The Most Significant it of a 2 s complement is the sign bit. Therfore there is (1) sign bit and (n-1) magnitude bits. Range: -(2 n-1 ) to (2 n-1 1) Example For an 8 bit number the range is (2 7 ) to (2 7-1) which is 128 to
21 2 s Complement ddition To add + 1. If or negative, convert them to their 2 s complement form. 2. dd and. Ignore the carry. 3. Examine the Most Significant it of the sum. - If it is a 0 then the result is in normal binary form. - If it is a 1 then the result is in 2 s complement form. Therefore take the 2 s complement to get the true magnitude of the sum. Examples There are 4 possible cases for addition 1. oth numbers positive 2. Magnitude of positive number > magnitude of negative number 3. Magnitude of negative number >magnitude of positive number 4. oth numbers negative Case 1 (4 + 7) Sign bit = 0 therefore +ve Result = 11 Case 2 (7 + -4) (2 s comp) Sign bit = 0 therefore +ve Result = 3 21
22 Case 3 (4 + -7) (2 s comp) Sign bit = 1 therefore negative Since negative the result is in 2 s complement form. To convert to decimal: Get magnitude by taking 2 s comp of sum = Result = -3 Case 4 ( ) (2 s comp) (2 s comp) Sign bit = 1 therefore -ve Since negative the result is in 2 s complement form. To convert to decimal: Get magnitude by taking 2 s comp of sum = Result =
23 2 s Complement Subtraction We can perform subtraction by using the following property: - = + (-) 1. Negate by converting it to its 2 s complement form. 2. If negative, convert it to its 2 s complement form. 3. dd and. Ignore the carry. 4. Examine the Most Significant it of the sum. 5. If it is a 0 then the result is in normal binary form. 6. If it is a 1 then the result is in 2 s complement form. Therefore take the 2 s complement to get the true magnitude of the sum. Example (7 4) 7 4 = 7 + (-4) (2 s comp) Sign bit = 0 therefore +ve Result = 3 Example (-25 19) = (-19) (25= & 19= ) (2 s comp) (2 s comp) Sign bit = 1 therefore -ve To convert to decimal: Get magnitude by taking 2 s comp of sum = Result =
24 Overflow Condition n overflow results when + > number of bits in the numbers. i.e the result is larger than the range of and. This is indicated by an incorrect sign bit. This will only occur when and are both positive or both negative. This can be fixed by adding extra bits to the Most Significant end. Example The sign bit is a 1 which indicates a negative result. The result is expected to be positive. Therefore we have an overflow condition. The 2 s complement range of a 8 bit number is (-128 to 127). 183 > 127 This can be fixed by using another bit for each number
25 1.7.1 Putting it all together LU s LU stands for rithmetic Logic Unit. n LU is a multipurpose IC that perform arithmetic functions (add,subtract) and logic functions (nd, OR, NOT etc) on the input data. The function to be performed is selected using the select inputs into the IC. n example is the bit LU. It has 16 different logical functions and 16 different arithmetic functions. The two inputs are 4 bits in size and are labelled and. The selected function is performed on the input and the result (F) is output. If the result is a negative number then it is given in 2 s complement form. Refer to the datasheet for the functions. 25
CMSC 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 informationAddition and Subtraction
ddition and Subtraction Philipp Koehn 9 February 2018 1 addition 1-it dder 2 Let s start simple: dding two 1-it numbers Truth table + 0 0 0 0 1 1 1 0 1 1 1 10 Really 2 Operations 3 Truth table for "position
More informationCarry Look Ahead Adders
Carry Look Ahead Adders Lesson Objectives: The objectives of this lesson are to learn about: 1. Carry Look Ahead Adder circuit. 2. Binary Parallel Adder/Subtractor circuit. 3. BCD adder circuit. 4. Binary
More informationCombinational Logic. By : Ali Mustafa
Combinational Logic By : Ali Mustafa Contents Adder Subtractor Multiplier Comparator Decoder Encoder Multiplexer How to Analyze any combinational circuit like this? Analysis Procedure To obtain the output
More informationUNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018
DIGITAL ELECTRONICS SYSTEM DESIGN LL 2018 PROFS. IRIS BAHAR & ROD BERESFORD NOVEMBER 9, 2018 LECTURE 19: BINARY ADDITION, UNSIGNED BINARY NUMBERS For the binary number b n-1 b n-2 b 1 b 0. b -1 b -2 b
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 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 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 informationCOMBINATIONAL LOGIC FUNCTIONS
COMBINATIONAL LOGIC FUNCTIONS Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends only on the present
More informationCprE 281: Digital Logic
CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Signed Numbers CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Administrative
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 informationWe are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors
CSC258 Week 3 1 Logistics If you cannot login to MarkUs, email me your UTORID and name. Check lab marks on MarkUs, if it s recorded wrong, contact Larry within a week after the lab. Quiz 1 average: 86%
More informationChapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design
Chapter 03: Computer Arithmetic Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design Objective To understand adder circuit Subtractor circuit Fast adder circuit 2 Adder Circuit 3 Full
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 6 - Combinational Logic Introduction A combinational circuit consists of input variables, logic gates, and output variables. The logic gates accept
More informationENGIN 112 Intro to Electrical and Computer Engineering
ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems Overview Hexadecimal numbers Related to binary and octal numbers Conversion between hexadecimal, octal and binary Value
More informationLogic. Combinational. inputs. outputs. the result. system can
Digital Electronics Combinational Logic Functions Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends
More informationELEN Electronique numérique
ELEN0040 - Electronique numérique Patricia ROUSSEAUX Année académique 2014-2015 CHAPITRE 3 Combinational Logic Circuits ELEN0040 3-4 1 Combinational Functional Blocks 1.1 Rudimentary Functions 1.2 Functions
More informationCombina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge
Combina-onal Logic Chapter 4 EECE 256 Dr. Sidney Fels Steven Oldridge Topics Combina-onal circuits Combina-onal analysis Design procedure simple combined to make complex adders, subtractors, converters
More informationChapter 5 Arithmetic Circuits
Chapter 5 Arithmetic Circuits SKEE2263 Digital Systems Mun im/ismahani/izam {munim@utm.my,e-izam@utm.my,ismahani@fke.utm.my} February 11, 2016 Table of Contents 1 Iterative Designs 2 Adders 3 High-Speed
More informationCprE 281: Digital Logic
CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Multiplication CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev HW
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 informationLogic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR
TOPIS: Logic Logic Expressions Logic Gates Simplifying Logic Expressions Sequential Logic (Logic with a Memory) George oole (85-864), English mathematician, oolean logic used in digital computers since
More informationArithmetic Building Blocks
rithmetic uilding locks Datapath elements dder design Static adder Dynamic adder Multiplier design rray multipliers Shifters, Parity circuits ECE 261 Krish Chakrabarty 1 Generic Digital Processor Input-Output
More informationIntroduction to Digital Logic Missouri S&T University CPE 2210 Subtractors
Introduction to Digital Logic Missouri S&T University CPE 2210 Egemen K. Çetinkaya Egemen K. Çetinkaya Department of Electrical & Computer Engineering Missouri University of Science and Technology cetinkayae@mst.edu
More informationCOE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
COE 202: Digital Logic Design Combinational Circuits Part 2 Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: 22-324 Objectives Arithmetic Circuits Adder Subtractor Carry Look Ahead Adder
More informationChapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction
Chapter 5 igital systems digital system is any machine that processes information encoded in the form of digits. Modern digital systems use binary digits, encoded as voltage levels. Two voltage levels,
More informationAdvanced Information Storage 02
dvanced Information Storage 02 tsufumi Hirohata Department of Electronics 16:00 10/October/2013 Thursday (V 120) Quick Review over the Last Lecture Von Neumann s model : Memory access : Bit / byte : 1
More informationWhy digital? Overview. Number Systems. Binary to Decimal conversion
Why digital? Overview It has the following advantages over analog. It can be processed and transmitted efficiently and reliably. It can be stored and retrieved with greater accuracy. Noise level does not
More informationCprE 281: Digital Logic
CprE 281: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Fast Adders CprE 281: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev HW5
More informationAdders, subtractors comparators, multipliers and other ALU elements
CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Adders 2 Circuit Delay Transistors have instrinsic resistance and capacitance
More informationBinary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q
Digital Arithmetic In Chapter 2, we have discussed number systems such as binary, hexadecimal, decimal, and octal. We have also discussed sign representation techniques, for example, sign-bit representation
More informationIT T35 Digital system desigm y - ii /s - iii
UNIT - II Combinational Logic Adders subtractors code converters binary parallel adder decimal adder magnitude comparator encoders decoders multiplexers demultiplexers-binarymultiplier Parity generator
More informationCMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned
Focus Groups CMSC 33 Lecture 7 Need good sample of all types of CS students Mon /7 & Thu /2, 2:3p-2:p & 6:p-7:3p Announcement: in-class lab Thu /3 Homework 3 Questions Circuits for Addition Midterm Exam
More informationCombinational Logic Design Arithmetic Functions and Circuits
Combinational Logic Design Arithmetic Functions and Circuits Overview Binary Addition Half Adder Full Adder Ripple Carry Adder Carry Look-ahead Adder Binary Subtraction Binary Subtractor Binary Adder-Subtractor
More informationUNIT II COMBINATIONAL CIRCUITS:
UNIT II COMBINATIONAL CIRCUITS: INTRODUCTION: The digital system consists of two types of circuits, namely (i) (ii) Combinational circuits Sequential circuits Combinational circuit consists of logic gates
More informationDesign of Sequential Circuits
Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable
More informationPAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:
EKURHULENI TECH COLLEGE. No. 3 Mogale Square, Krugersdorp. Website: www. ekurhulenitech.co.za Email: info@ekurhulenitech.co.za TEL: 011 040 7343 CELL: 073 770 3028/060 715 4529 PAST EXAM PAPER & MEMO N3
More informationUNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY
UNIT III Design of ombinational Logic ircuits Department of omputer Science SRM UNIVERSITY Introduction to ombinational ircuits Logic circuits for digital systems may be ombinational Sequential combinational
More informationAdders, subtractors comparators, multipliers and other ALU elements
CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Instructor: Mohsen Imani UC San Diego Slides from: Prof.Tajana Simunic Rosing
More informationBuilding a Computer Adder
Logic Gates are used to translate Boolean logic into circuits. In the abstract it is clear that we can build AND gates that perform the AND function and OR gates that perform the OR function and so on.
More informationAdders - Subtractors
Adders - Subtractors Lesson Objectives: The objectives of this lesson are to learn about: 1. Half adder circuit. 2. Full adder circuit. 3. Binary parallel adder circuit. 4. Half subtractor circuit. 5.
More informationSample Test Paper - I
Scheme G Sample Test Paper - I Course Name : Computer Engineering Group Marks : 25 Hours: 1 Hrs. Q.1) Attempt any THREE: 09 Marks a) Define i) Propagation delay ii) Fan-in iii) Fan-out b) Convert the following:
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 informationCSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April
CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April Objective - Get familiar with the Xilinx ISE webpack tool - Learn how to design basic combinational digital components -
More informationEE 109 Final Don t Make the Same Mistake
EE 9 Final Don t Make the ame Mistake No calculators are allowed. how all your work to get full credit. Note: The following are all INCORRECT answers meant to highlight common misunderstandings! Try to
More informationDigital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.
Digital Circuits 1. Inputs & Outputs are quantized at two levels. 2. inary arithmetic, only digits are 0 & 1. Position indicates power of 2. 11001 = 2 4 + 2 3 + 0 + 0 +2 0 16 + 8 + 0 + 0 + 1 = 25 Digital
More informationE40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1
E40M Binary Numbers M. Horowitz, J. Plummer, R. Howe 1 Reading Chapter 5 in the reader A&L 5.6 M. Horowitz, J. Plummer, R. Howe 2 Useless Box Lab Project #2 Adding a computer to the Useless Box alows us
More informationCombinational Logic. Course Instructor Mohammed Abdul kader
Combinational Logic Contents: Combinational and Sequential digital circuits. Design Procedure of combinational circuit. Adders: Half adder and Full adder. Subtractors: Half Subtractor and Full Subtractor.
More information1 Short adders. t total_ripple8 = t first + 6*t middle + t last = 4t p + 6*2t p + 2t p = 18t p
UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences Study Homework: Arithmetic NTU IC54CA (Fall 2004) SOLUTIONS Short adders A The delay of the ripple
More informationCombinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education
MEC5 디지털공학 Combinational Logic Jee-Hwan Ryu School of Mechanical Engineering Combinational circuits Outputs are determined from the present inputs Consist of input/output variables and logic gates inary
More informationHardware Design I Chap. 4 Representative combinational logic
Hardware Design I Chap. 4 Representative combinational logic E-mail: shimada@is.naist.jp Already optimized circuits There are many optimized circuits which are well used You can reduce your design workload
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 informationA B OUT_0 OUT_1 OUT_2 OUT_
A B OUT_0 OUT_1 OUT_2 OUT_3 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 A Decoder is something that does the opposite of encoding; it converts the data back into its original form. This decoder converts
More informationLogic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits
Logic and Computer Design Fundamentals Chapter 5 Arithmetic Functions and Circuits Arithmetic functions Operate on binary vectors Use the same subfunction in each bit position Can design functional block
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 informationCs302 Quiz for MID TERM Exam Solved
Question # 1 of 10 ( Start time: 01:30:33 PM ) Total Marks: 1 Caveman used a number system that has distinct shapes: 4 5 6 7 Question # 2 of 10 ( Start time: 01:31:25 PM ) Total Marks: 1 TTL based devices
More informationFundamentals of Digital Design
Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric
More informationSchedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.
Schedule Date Day Class No. Dec Mon 25 Final Review 2 Dec Tue 3 Dec Wed 26 Final Review Title Chapters HW Due date Lab Due date LAB 8 Exam 4 Dec Thu 5 Dec Fri Recitation HW 6 Dec Sat 7 Dec Sun 8 Dec Mon
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 informationInformation Storage and Spintronics 02
Information Storage and Spintronics 02 tsufumi Hirohata Department of Electronic Engineering 09:00 Tuesday, 02/October/2018 (J/Q 004) Contents of Information Storage and Spintronics Lectures : tsufumi
More informationCSE 20 DISCRETE MATH. Fall
CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Describe and use algorithms for integer operations based on their expansions Relate algorithms for integer
More informationCOMP2611: Computer Organization. Introduction to Digital Logic
1 OMP2611: omputer Organization ombinational Logic OMP2611 Fall 2015 asics of Logic ircuits 2 its are the basis for binary number representation in digital computers ombining bits into patterns following
More informationFunction of Combinational Logic ENT263
Function of Combinational Logic ENT263 Chapter Objectives Distinguish between half-adder and full-adder Use BCD-to-7-segment decoders in display systems Apply multiplexer in data selection Use decoders
More informationDigital Electronics Circuits 2017
JSS SCIENCE AND TECHNOLOGY UNIVERSITY Digital Electronics Circuits (EC37L) Lab in-charge: Dr. Shankraiah Course outcomes: After the completion of laboratory the student will be able to, 1. Simplify, design
More informationDesign of Combinational Logic
Pune Vidyarthi Griha s COLLEGE OF ENGINEERING, NASHIK 3. Design of Combinational Logic By Prof. Anand N. Gharu (Assistant Professor) PVGCOE Computer Dept.. 30 th June 2017 CONTENTS :- 1. Code Converter
More informationSection 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic
Section 3: Combinational Logic Design Major Topics Design Procedure Multilevel circuits Design with XOR gates Adders and Subtractors Binary parallel adder Decoders Encoders Multiplexers Programmed Logic
More informationPhysics 310 Lecture 10 Microprocessors
Mon. 3/29 Wed. 3/31 Thurs. 4/1 Fri. 4/2 Mon. 4/5 Wed. 4/7 Thurs. 4/8 Fri. 4/9 Mon. 4/12 Wed. 4/14 Thurs. 4/15 Fri. 4/16 Project: Component Shopping Ch 13: Microprocessor Basics Intro to More Ch 13 Review
More informationLab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1
Lab 3 Revisited Zener diodes R C 6.091 IAP 2008 Lecture 4 1 Lab 3 Revisited +15 Voltage regulators 555 timers 270 1N758 0.1uf 5K pot V+ V- 2N2222 0.1uf V o. V CC V Vin s = 5 V Vc V c Vs 1 e t = RC Threshold
More informationPG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS
SRIMAAN COACHING CENTRE-PG-TRB-PHYSICS- DIGITAL ELECTRONICS-STUDY MATERIAL-CONTACT: 8072230063 SRIMAAN PG - TRB PHYSICS UNIT-X- DIGITAL ELECTRONICS POLYTECHNIC-TRB MATERIALS MATHS/COMPUTER SCIENCE/IT/ECE/EEE
More informationNumber representation
Number representation A number can be represented in binary in many ways. The most common number types to be represented are: Integers, positive integers one-complement, two-complement, sign-magnitude
More informationCOSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)
COSC 243 Introduction to Logic And Combinatorial Logic 1 Overview This Lecture Introduction to Digital Logic Gates Boolean algebra Combinatorial Logic Source: Chapter 11 (10 th edition) Source: J.R. Gregg,
More informationCprE 281: Digital Logic
CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Decoders and Encoders CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev
More informationNumbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.
Numbering Systems Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary. Addition & Subtraction using Octal & Hexadecimal 2 s Complement, Subtraction Using 2 s Complement.
More informationECE 2300 Digital Logic & Computer Organization
ECE 23 Digital Logic & Computer Organization Spring 28 Combinational Building Blocks Lecture 5: Announcements Lab 2 prelab due tomorrow HW due Friday HW 2 to be posted on Thursday Lecture 4 to be replayed
More informationCS 140 Lecture 14 Standard Combinational Modules
CS 14 Lecture 14 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego Some slides from Harris and Harris 1 Part III. Standard Modules A. Interconnect B. Operators. Adders Multiplier
More informationARITHMETIC COMBINATIONAL MODULES AND NETWORKS
ARITHMETIC COMBINATIONAL MODULES AND NETWORKS 1 SPECIFICATION OF ADDER MODULES FOR POSITIVE INTEGERS HALF-ADDER AND FULL-ADDER MODULES CARRY-RIPPLE AND CARRY-LOOKAHEAD ADDER MODULES NETWORKS OF ADDER MODULES
More informationFundamentals of Computer Systems
Fundamentals of omputer Systems ombinational Logic Stephen. Edwards olumbia University Fall 2012 Encoders and Decoders Decoders Input: n-bit binary number Output: 1-of-2 n one-hot code 2-to-4 in out 00
More informationCSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing
CSE4: Components and Design Techniques for Digital Systems Decoders, adders, comparators, multipliers and other ALU elements Tajana Simunic Rosing Mux, Demux Encoder, Decoder 2 Transmission Gate: Mux/Tristate
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 informationDigital Logic (2) Boolean Algebra
Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh
More informationCSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego
CSE4: Components and Design Techniques for Digital Systems Logic minimization algorithm summary Instructor: Mohsen Imani UC San Diego Slides from: Prof.Tajana Simunic Rosing & Dr.Pietro Mercati Definition
More informationHakim Weatherspoon CS 3410 Computer Science Cornell University
Hakim Weatherspoon CS 3410 Computer Science Cornell University The slides are the product of many rounds of teaching CS 3410 by Professors Weatherspoon, Bala, Bracy, and Sirer. memory inst 32 register
More informationClass Website:
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #5 Instructor: Andrew B. Kahng (lecture) Email: abk@ece.ucsd.edu Telephone: 858-822-4884 office, 858-353-0550 cell Office:
More informationNumbers and Arithmetic
Numbers and Arithmetic See: P&H Chapter 2.4 2.6, 3.2, C.5 C.6 Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University Big Picture: Building a Processor memory inst register file alu
More informationUNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables
UNIT 8 Computer Circuitry: Layers of bstraction 1 oolean Logic & Truth Tables Computer circuitry works based on oolean logic: operations on true (1) and false (0) values. ( ND ) (Ruby: && ) 0 0 0 0 0 1
More informationS.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement
S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques Time: 3 Hrs.] Prelim Question Paper Solution [Marks : Q.(a) (i) () (2) s COMPLEMENT s COMPLEMENT 2s COMPLEMENT 2s COMPLEMENT + Q.(a) (ii) ()
More informationEC 413 Computer Organization
EC 413 Computer Organization rithmetic Logic Unit (LU) and Register File Prof. Michel. Kinsy Computing: Computer Organization The DN of Modern Computing Computer CPU Memory System LU Register File Disks
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 informationNumber System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary
Number System Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary BOOLEAN ALGEBRA BOOLEAN LOGIC OPERATIONS Logical AND Logical OR Logical COMPLEMENTATION
More informationCombinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.
Combinational Logic ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, 2017 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Combinational Circuits
More informationNumbers and Arithmetic
Numbers and Arithmetic See: P&H Chapter 2.4 2.6, 3.2, C.5 C.6 Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University Big Picture: Building a Processor memory inst register file alu
More informationCS1800: Hex & Logic. Professor Kevin Gold
CS1800: Hex & Logic Professor Kevin Gold Reviewing Last Time: Binary Last time, we saw that arbitrary numbers can be represented in binary. Each place in a binary number stands for a different power of
More informationECE 341. Lecture # 3
ECE 341 Lecture # 3 Instructor: Zeshan Chishti zeshan@ece.pdx.edu October 7, 2013 Portland State University Lecture Topics Counters Finite State Machines Decoders Multiplexers Reference: Appendix A of
More informationLecture 10: Synchronous Sequential Circuits Design
Lecture 0: Synchronous Sequential Circuits Design. General Form Input Combinational Flip-flops Combinational Output Circuit Circuit Clock.. Moore type has outputs dependent only on the state, e.g. ripple
More informationCombinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.
Combinational Logic ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, 2010 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Combinational Circuits
More informationECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks
ECE 545 Digital System Design with VHDL Lecture Digital Logic Refresher Part A Combinational Logic Building Blocks Lecture Roadmap Combinational Logic Basic Logic Review Basic Gates De Morgan s Law Combinational
More informationUnit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4
Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4 4.1.1 Signal... 4 4.1.2 Comparison of Analog and Digital Signal... 7 4.2 Number Systems... 7 4.2.1 Decimal Number System... 7 4.2.2 Binary
More informationDIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute
DIGITAL TECHNICS Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 4. LECTURE: COMBINATIONAL LOGIC DESIGN: ARITHMETICS (THROUGH EXAMPLES) 2016/2017 COMBINATIONAL LOGIC DESIGN:
More informationDigital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1
Digital Systems Digital systems have such a prominent role in everyday life The digital age The technology around us is ubiquitous, that is we don t even notice it anymore Digital systems are used in:
More informationEx code
Ex. 8.4 7-4-2-1 code Codeconverter 7-4-2-1-code to BCD-code. When encoding the digits 0... 9 sometimes in the past a code having weights 7-4-2-1 instead of the binary code weights 8-4-2-1 was used. In
More information