ELEN Electronique numérique

Size: px
Start display at page:

Download "ELEN Electronique numérique"

Transcription

1 ELEN Electronique numérique Patricia ROUSSEAUX Année académique

2 CHAPITRE 3 Combinational Logic Circuits ELEN

3 1 Combinational Functional Blocks 1.1 Rudimentary Functions 1.2 Functions and Functional Blocks 1.3 Decoders 1.4 Encoders 1.5 Multiplexers 1.6 Implementing Combinational Functions with Multiplexers 2 Arithmetic Functions 2.1 Binary Adders 2.2 Binary Arithmetic 2.3 Binary Adders-Subtractors 2.4 Overflow 2.5 Binary multiplication 2.6 Other Arithmetic Functions ELEN

4 Arithmetic circuits An arithmetic circuit is a combinational circuit that performs arithmetic operations : addition subtraction multiplication division The operations are performed with binary numbers or decimal numbers in a binary code Apply the rules of arithmetic with binary numbers rules for numbers representation resort to 1 or 2 s complements An arithmetic circuit : operates on binary vectors uses the same subfunction for each bit position is made of the iterative interconnection of basic functional blocks, one for each bit position = iterative array ELEN

5 Adders Functional blocks : Half-Adder : a 2-input, 2-output functional block that performs the addition of the two input bits Full-Adder : a 3-input, 2-output functional block that performs the addition of the three input bits, including a third carry input bit obtained from a previous adder Multiple bit adders : Ripple Carry Adder : an iterative array to perform binary addition Carry Look Ahead Adder : an improved structure with higher speed ELEN

6 Half-Adder A Half-Adder performs the following computations: X Y C S It adds two bits to produce a two-bit sum The sum is expressed as a Sum bit, S and a Carry bit, C 139

7 Half-Adder : Truth table From the truth table, we get the equations : For S S S = = X Y + (X X Y = + Y) (X + X Y) Y X Y C S And for C : C = X Y C = ( ( X Y) ) X Y 140

8 Half-Adder : Five Implementations We can derive the 5 following sets of equations for a half-adder: (a) S = X Y + X Y C = X Y (b) S = (X + Y) (X + Y) C = X Y (c) S = ( C+ X Y) C = X Y (d) S = (X + Y) C C = (X + Y) (e) S = X Y C = X Y (a), (b), and (e) are SOP, POS, and XOR implementations for S. In (c), the C function is used as a term in the AND- NOR implementation of S, and in (d), the C function is used in a POS term for S. 141

9 Half-Adder : Implementations The most common half adder implementation is: S = X Y C = X Y X Y S C (e) A NAND only implementation is: (d) S = (X C = ( + Y) C ) ( X Y) C X C S Y XOR 142

10 Full-Adder A full adder is similar to a half adder, but includes a carry-in bit from previous stages. Like the half-adder, it computes a sum bit, S and a carry bit, C. It performs the following computations For a carry-in Z=0 it is the same as the half-adder For a carry- in Z=1 Z X Y C S Z X Y C S

11 Full-Adder : Truth table From the truth table, we get the equations : S C = X Y Z + X Y Z + X Y Z + = X YZ + X YZ + X Y Z+ After simplification : S X Y Odd function C = = X Y C = G + Z + ( X P Z Y) Z X Y Z X YZ X Y Z X Y Z C S

12 Full-Adder : Implementation S = X Y Z C = G + P Z P G The term G=X Y is carry generate. The term P= X Y is carry propagate 145

13 Binary adders To add multiple operands, bits are grouped into vectors Binary adders operate on vectors, for example : add 4-bit input vectors A(0 : 3) and B(0 : 3) to get a sum vector S(0 : 3) a full adder is used for each bit the carry out of adder i becomes the carry in of adder i +1 ELEN

14 4-bit Ripple Carry Adder A 4-bit Ripple Carry Adder is made from four 1-bit full-adders ELEN

15 Ripple-carry adder delay The carry propagation limits the adder speed Suppose carry out is obtained through a two-level circuit instead of the 3-level XOR-AND-OR = number of gate delays ELEN

16 Ripple-carry adder timing diagram Observe carry propagation Suppose ELEN

17 Carry Look Ahead logic All carries C i, i = 1,,n are computed in parallel from the input data All the sums C i, i = 1,,n are computed in parallel Implementation of the carry look ahead logic through a 2-level circuit Large adders can be obtained by cascading simple adders Speed improvement : 4-bit ripple carry adder : 9 gate delays 4-bit carry look ahead adder : 4 gate delays But more complex combinational logic ELEN

18 Full adder - carry generate, carry propagate S i = P i C i Carry C i+1 obtained from two mechanisms : Carry generate : G i = A i B i C i+1 = G i +C i P i generate carry when both Ai and B i equal 1 Carry propagate : P i = A i B i propagate the carry Ci to next adder if one and only one of the two inputs A i, B i equals 1 ELEN

19 Carry look ahead equations Re-express the carry logic in terms of G and P. For a 4-bit adder : C 1 = G 0 +P 0 C 0 C 2 = G 1 +P 0 C 1 = G 1 +P 1 G 0 +P 1 P 0 C 0 C 3 = G 2 +P 2 C 2 = G 2 +P 2 G 1 +P 2 P 1 G 0 +P 2 P 1 P 0 C 0 C 4 = G 3 +P 3 C 3 = G 3 +P 3 G 2 +P 3 P 2 G 1 +P 3 P 2 P 1 G 0 +P 3 P 2 P 1 P 0 C 0 ELEN

20 Carry look ahead adder : final implementation The sum bits are obtained after 4 gate delays. ELEN

21 Larger adders A 16-bit adder is made by combining : a cascade of four 4-bit carry look ahead adders a carry look ahead logic circuit to compute intermediate and final carries It can be shown that gate delay is 8 ELEN

22 Integer representation Example : M = 14, N = 12 Unsigned representation : only positive numbers, M = 1110, N = 1100 n = 4 bits Signed representation : positive and negative numbers, one bit is added to represent the sign : 0 for positive numbers, 1 for negative numbers Sign-and-magnitude : the sign bit + n 1 bits for the magnitude M = N = 11100, n = 5 bits two different representations of zero : +0=00000, -0=10000 Ones complement : strictly positive numbers = sign-and-magnitude representation strictly negative numbers : sign bit : 1 + NOT of all magnitude bits : N = 10011, number represented by the n 1 magnitude bits = 2 n 1 1 N two different representations of zero : +0=00000, -0=11111 Two s complement : positive numbers = sign-and-magnitude representation strictly negative numbers : ones complement of N 1 : N = rule : beginning at the least significant bit, copy all 0 and first 1, complement all remaining bits number represented by the n 1 magnitude bits = 2 n 1 N unique representation of zero : ELEN

23 Adder/Subtractor with unsigned numbers, n bits Addition : Simple addition of positive numbers Possible overflow : if result requires n+1 bits Overflow detection : Cn = 1, carry-out of n-th bit adder Subtraction : M N, M > 0, N > problem if M < N : the result is negative, a borrow appears at the most significant bit if direct binary subtraction is used. Example : M = 8, N = 12, n = 4 bits the result of the direct subtraction is equal to the binary representation of 2 n (N M) this is the 2 s complement of N M (magnitude bits), the magnitude of the final result -4 ELEN

24 Unsigned representation : subtraction with 2 s complements Add the 2 s complement of N to M, this provides M +2 n N : if an end carry 2 n appears, this means M N discard it, M N remains s complement No overflow if no end carry, this means N > M take the 2 s complement of M +2 n N to obtain (N-M) place a - sign to its left s complement s complement ELEN

25 Adder/Subtractor with sign-and-magnitude numbers, n bits Consider the three signs : of the two operands M, N and of the operation (+/0 add, -/1 sub) If the parity of the three signs is 0 : M 0 N 0 + M +N M < 0 N < 0 + M N M 0 N < 0 - M + N M < 0 N 0 - M N If the parity of the three signs is 1 : M < 0 N 0 + M +N M 0 N < 0 + M N M 0 N 0 - M N M < 0 N < 0 - M + N ELEN add the magnitudes 2. check for overflow (a carry out of MSB adder) 3. the sign of the result is the same as M 1. use 2 s complement subtraction on magnitudes 2. if carry out of MSB : magnitude OK sign = sign of M 3. if no carry at MSB : magnitude = 2 s complement of subtraction result sign = complement of sign of M

26 Adder/Subtractor with sign-and-magnitude numbers Examples Parity Magnitude 5 5 Sign Carry No carry + -(-)=+ 9+(-4) -9-(-4) Parity Magnitude 13 5 Sign sign of M Carry - - ELEN

27 Adder/Subtractor with signed 2 s complement numbers Addition : 1. add the numbers including the sign bits 2. discard a possible carry out of the sign bits 3. if the sign bits were the same for both numbers and the sign of the result is different, an overflow has occurred : proper detection needed Subtraction : 1. form the 2 s complement of the second operand 2. add with the first operand 3. overflow can also occur if the two operands were of opposite sign Examples : (-4) Overflow ELEN

28 Adder/Subtractor implementation The same circuit is used for addition and subtraction For subtraction, the 2 s complement is formed bu complementing each bit and adding 1 to to the result Selection between addition and subtraction is made by variable S For S = 1, subtraction, the 2 s complement is obtained by using XORs to complement bits and adding 1 with C 0 For S = 0, addition, B is passed through XOR gates unchanged. ELEN

29 2-s complement adder : Overflow detection Overflow occurs if n+1 bits are required to contain the result of an n-bit addition It can only occur if the two operands are of the same sign The result should also be of the same sign It is linked to carries C n and C n 1 who affect the sign bit of the sum C n C n A n B n S n OK KO OK KO The overflow is detected by V = C n C n 1 ELEN

30 Circuit for overflow detection Unsigned adder/subtractor : addition : C = 1, overflow subtraction C = 0, correction step required, compute the 2 s complement of the result Signed 2 s complement adder/subtractor : addition and subtraction : V = 1, overflow ELEN

31 Binary multiplication Same rule as for decimal numbers. Take each bit of the multiplier, starting with the least significant one 1. Multiply the multiplicand by each bit of the multiplier 2. Left shift partial result to obtain a partial product 3. Add all the partial products Step 1 simply amounts to AND the multiplier bit with each bit of the multiplicand Binary adders are used after each partial multiplication to derive a partial product ELEN

32 Binary Multiplication Multiply B and A ELEN

33 Multiplier circuit ELEN

34 Other arithmetic functions The functional blocks already defined can be simplified to implement other elementary functions : incrementing : add a fixed value to an arithmetic variable examples : A+1, B +3 easily obtained by simplifying a ripple carry adder decrementing : subtracting a fixed value multiplication by a constant... Have a look in the reference book ELEN

35 CHAPITRE 4 Sequential circuits ELEN

36 1 Fundamentals of Sequential Circuits 1.1 Motivation 1.2 Synchronous and Asynchronous Circuits 1.3 State, State Diagram and State Table 1.4 Time simulation 2 Latches 3 Flip-Flops 4 State diagrams and State Tables 5 Finite State Machine Diagrams ELEN

37 Sequential versus Combinational Combinational systems are memoryless Outputs depends only on the present inputs Sequential systems have memory The memory is stored in a State Outputs depend on the present and previous inputs There exits a feedback between outputs and inputs ELEN

38 Components of a sequential Circuit A sequential circuit is made of : storage elements : latches and flip-flops a combinational circuit which implements a multiple output switching function Inputs are signals from the outside The Present State gathers output signals from storage elements Outputs are signals to the outside The remaining outputs constitute the Next State and are inputs of the storage elements ELEN

39 Types of Sequential Circuits Two types depending on the times at which storage elements : observe their inputs change their state Asynchronous systems : the behavior is defined from knowledge of inputs at any time instant and the order in which inputs change changes in state occur at any time instant Synchronous systems : the behavior is defined from knowledge of all inputs at the same discrete time instants changes in state occur at these specific discrete times synchronization is achieved by a clock generator producing clock pulses the clock period is the time between state changes ELEN

40 Example of a sequential system Door combination lock Enter 3 numbers in sequence and the door opens If there is an error, the lock must be reset After the door opens, the lock must be reset Inputs : sequence of numbers; reset Outputs : door open/close Memory : the combination of numbers must be remembered ELEN

41 Implement using sequential logic Use synchronous system the clock tells us when to look at inputs : a new number or reset signal Sequential system : memorize the sequence of numbers if an error occurred How to define the states? What is important is the transition from one state to the other, implied by changes in inputs The state transitions are represented on a State Diagram and a State Table The value of the output has to be defined for each state ELEN

42 Example : states We can consider 5 different states : S1 : state after reset, wait for first number, the output is closed S2 : the first correct number has been received, the output is closed S3 : the sequence of 1st and 2nd correct numbers has been received, the output is closed S4 : the sequence of the three correct numbers has been received, the output is open S5 : an incorrect number has been received, this is the error state, output is closed We will need 3 bits to encode the 5 states and thus 3 basic memorizing cells, used in parallel. We will learn latter how to build state diagrams and state tables. ELEN

43 Discrete event simulation In order to test the behavior of a sequential circuit we will have to simulate the time evolution of outputs and states. The propagation delays introduced by the gates present in the circuit have to be taken into account This is done by a discrete event simulation tool which implements the following rules : The gates are modeled by an ideal (instantaneous) function and a fixed gate delay Any change in input values is evaluated to see if it causes a change in output value Changes in output values are imposed after the proper gate delay following the input change The inputs driven by the output are accordingly changed ELEN

44 Example : simulation of a NAND gate ELEN

45 A small combinational circuit ELEN

46 Feedback creates memory - Inclusion of a storing state ELEN

47 Information path if S=1 Two modes of operation : Transparent mode Input is passed to the output ELEN

48 Information path if S=0 Memorizing mode Y remembers the previous input ELEN

49 Timing and gate delays Y is the state of the system The design of the circuit should be done in such a way that gate delays can be neglected with respect to the time period between input changes The duration of storage of a value should be longer than the gate delays We can represent the system time evolution with the following table, showing the successive values of inputs B and S and state Y ELEN

50 Unstable circuit - Oscillator If an inverter is added in the feedback path The circuit becomes unstable This race behavior should most of the time be avoided In this case, for S = 0, the circuit becomes an oscillator The period of oscillation is linked to the gate delays ELEN

51 How to control feedback? Storage can be constructed from logic with delay connected in a closed loop To be stable, there must be no inversion of the signal in the loop Two inverters in cascade form a basic memory cell The value is hold as long as power is applied : Memorizing mode How to get a new value in the memory cell? selectively break the feedback path : transparent mode load the new value into cell ELEN

52 1 Fundamentals of Sequential Circuits 1.1 Motivation 1.2 Synchronous and Asynchronous Circuits 1.3 State, State Diagram and State Table 1.4 Time simulation 2 Latches 3 Flip-Flops 4 State diagrams and State Tables 5 Finite State Machine Diagrams ELEN

53 Real Basic Memory Element (1bit) : the LATCH ( Verrou ) state = 1 binary variable = 1 bit capability to force output to 0 or 1 asynchronous storage elements from basic to more elaborated latches : 1. basic (NOR) SR Latch 2. basic (NAND) S R Latch 3. clocked SR Latches 4. D Latch ELEN

54 Basic SR Latch Formed by 2 cross-coupled NOR gates The states are defined by outputs Q, Q which normally are reciprocally complemented values There are thus 2 useful states : the Set State : Q = 1, Q = 0 the Reset State : Q = 0, Q = 1 There are two inputs : set input S : S = 1 brings the system in its Set state reset input R : R = 1 brings the system in its Reset state ELEN

55 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

56 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

57 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

58 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

59 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

60 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

61 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

62 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

63 SR Latch behavior 1. start with R = 0, S = 0, the stored state is initially unknown 2. S changes to 1, this sets Q to 1 3. S back to 0, Q remembers 1 thus, two input conditions cause the system to be in set state 4. R changes to 1, this resets Q to 0 5. R back to 0, now Q remembers 0 thus, two input conditions cause the system to be in reset state 6. suppose both S and R changes to 1 7. both Q and Q are zero!!!, undefined state 8. if both R and S go to zero simultaneously, can lead to unstable or race condition, oscillating between 00 and 11 undefined states ELEN

64 Timing diagram Race conditions : 1. S = R = 1, Q = 0, Q = 0 2. S and R go simultaneously to gate delay later Q = 1, Q = gate delay later Q = 0, Q = ELEN

65 Timing diagram Race conditions : 1. S = R = 1, Q = 0, Q = 0 2. S and R go simultaneously to gate delay later Q = 1, Q = gate delay later Q = 0, Q = ELEN

66 Timing diagram Race conditions : 1. S = R = 1, Q = 0, Q = 0 2. S and R go simultaneously to gate delay later Q = 1, Q = gate delay later Q = 0, Q = ELEN

67 Timing diagram Race conditions : 1. S = R = 1, Q = 0, Q = 0 2. S and R go simultaneously to gate delay later Q = 1, Q = gate delay later Q = 0, Q = In practice, it is very difficult to observe the SR Latch in the 1-1 state since one S or R usually changes first. The latch ambiguously resturns to state 0-1 or 1-0. ELEN

68 SR Latch state table The time behavior of the SR Latch is summarized in the state table showing next state based on the current inputs (S,R) and the current state Q(t) S R Q(t) Q(t + ) hold previous state reset set X forbidden X It can also be described by the following equation : Q(t + ) = S + RQ(t) is the gate delay, the time between change in input and corresponding change in state. One usually writes Q(t +1). ELEN

69 Basic S R Latch The cross-coupling of 2 NAND gates presents a similar behavior with : S = 0 to switch to set state R = 0 to switch to reset state both R = 0, S = 0 corresponds to an undefined state S R Q(t) Q(t + ) hold previous state reset set X forbidden X Q(t +1) = S +RQ(t) ELEN

70 Controlled SR Latch A control or enable or clock input C is added The state can only change if the control input is low The S, R inputs are only observed when C is low The behavior and the state table are exactly the same as those of the SR Latch (with NOR gates) when C = 1 When C = 0, the state remains unchanged, regardless of the values of S and R The problem of the undefined state remains : C = 1, S = 1, R = 1 ELEN

71 D Latch The undefined state is removed by imposing necessarily different values to inputs S and R To this end, an inverter is added There remains one input D : D = 1 is equivalent to S = 1 D = 0 is equivalent to R = 1 ELEN

72 D latch : modes of operation When C = 0 : the latch is in its memorizing mode, the output is the memorized state When C = 1 : the latch is in its transparent mode, the output follows the input C D Q(t) Q(t + 1) 0 X 0 0 memorizing mode 0 X reset set Q(t +1) = CQ(t)+CD ELEN

73 Références Logic and Computer Design Fundamentals, 4/E, M. Morris Mano Charles Kime, Course material http ://writphotec.com/mano4/ Cours d électronique numérique, Aurélie Gensbittel, Bertrand Granado, Université Pierre et Marie Curie http ://bertrand.granado.free.fr/licence/ue201/ coursbeameranime.pdf Lecture notes, Course CSE370 - Introduction to Digital Design, Spring 2006, University of Washington, https ://courses.cs.washington.edu/courses/cse370/06sp/pdfs/ ELEN

74 ELEN

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

Logic 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 information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, 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 information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, 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 information

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3 Digital Logic: Boolean Algebra and Gates Textbook Chapter 3 Basic Logic Gates XOR CMPE12 Summer 2009 02-2 Truth Table The most basic representation of a logic function Lists the output for all possible

More information

Combinational Logic Design Arithmetic Functions and Circuits

Combinational 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 information

Combinational Logic. By : Ali Mustafa

Combinational 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 information

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 6 Following the slides of Dr. Ahmed H. Madian محرم 1439 ه Winter

More information

Systems I: Computer Organization and Architecture

Systems 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 information

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

Midterm 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 information

Carry Look Ahead Adders

Carry 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 information

Sequential vs. Combinational

Sequential vs. Combinational Sequential Circuits Sequential vs. Combinational Combinational Logic: Output depends only on current input TV channel selector (-9) inputs system outputs Sequential Logic: Output depends not only on current

More information

Adders allow computers to add numbers 2-bit ripple-carry adder

Adders 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 information

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN ELCT2: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 4 Following the slides of Dr. Ahmed H. Madian محرم 439 ه Winter 28

More information

Design of Sequential Circuits

Design 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 information

Class Website:

Class 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 information

Synchronous Sequential Logic

Synchronous Sequential Logic 1 IT 201 DIGITAL SYSTEMS DESIGN MODULE4 NOTES Synchronous Sequential Logic Sequential Circuits - A sequential circuit consists of a combinational circuit and a feedback through the storage elements in

More information

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing IT 204 Section 3.0 Boolean Algebra and Digital Logic Boolean Algebra 2 Logic Equations to Truth Tables X = A. B + A. B + AB A B X 0 0 0 0 3 Sum of Products The OR operation performed on the products of

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

LOGIC CIRCUITS. Basic Experiment and Design of Electronics Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Outline Combinational logic circuits Output

More information

Logic. Combinational. inputs. outputs. the result. system can

Logic. 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 information

Fundamentals of Digital Design

Fundamentals 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 information

Lecture 7: Logic design. Combinational logic circuits

Lecture 7: Logic design. Combinational logic circuits /24/28 Lecture 7: Logic design Binary digital circuits: Two voltage levels: and (ground and supply voltage) Built from transistors used as on/off switches Analog circuits not very suitable for generic

More information

Chapter 5 Arithmetic Circuits

Chapter 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 information

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Unit 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 information

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering SEQUENTIAL CIRCUITS: LATCHES Overview Circuits require memory to store intermediate

More information

Latches. October 13, 2003 Latches 1

Latches. October 13, 2003 Latches 1 Latches The second part of CS231 focuses on sequential circuits, where we add memory to the hardware that we ve already seen. Our schedule will be very similar to before: We first show how primitive memory

More information

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Chapter 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 information

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS 1) Given the two binary numbers X = 1010100 and Y = 1000011, perform the subtraction (a) X -Y and (b) Y - X using 2's complements. a) X = 1010100

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D. Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Digital IC packages TTL (transistor-transistor

More information

CS61C : Machine Structures

CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks 2005-07-14 CS 61C L15 Blocks (1) Andy Carle Outline CL Blocks Latches & Flip Flops A Closer Look CS

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534 007 DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING DIGITAL

More information

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan Combinational Logic Mantıksal Tasarım BBM23 section instructor: Ufuk Çelikcan Classification. Combinational no memory outputs depends on only the present inputs expressed by Boolean functions 2. Sequential

More information

Synchronous Sequential Circuit

Synchronous Sequential Circuit Synchronous Sequential Circuit The change of internal state occurs in response to the synchronized clock pulses. Data are read during the clock pulse (e.g. rising-edge triggered) It is supposed to wait

More information

CS61C : Machine Structures

CS61C : Machine Structures CS 61C L15 Blocks (1) inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks Outline CL Blocks Latches & Flip Flops A Closer Look 2005-07-14 Andy Carle CS

More information

CPE100: Digital Logic Design I

CPE100: Digital Logic Design I Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu CPE100: Digital Logic Design I Final Review http://www.ee.unlv.edu/~b1morris/cpe100/ 2 Logistics Tuesday Dec 12 th 13:00-15:00 (1-3pm) 2 hour

More information

COMBINATIONAL LOGIC FUNCTIONS

COMBINATIONAL 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 information

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

Module 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 information

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits EE40 Lec 15 Logic Synthesis and Sequential Logic Circuits Prof. Nathan Cheung 10/20/2009 Reading: Hambley Chapters 7.4-7.6 Karnaugh Maps: Read following before reading textbook http://www.facstaff.bucknell.edu/mastascu/elessonshtml/logic/logic3.html

More information

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function Question Paper Digital Electronics (EE-204-F) MDU Examination May 2015 1. (a) represent (32)10 in (i) BCD 8421 code (ii) Excess-3 code (iii) ASCII code (b) Design half adder using only NAND gates. ( c)

More information

UNIVERSITI TENAGA NASIONAL. College of Information Technology

UNIVERSITI TENAGA NASIONAL. College of Information Technology UNIVERSITI TENAGA NASIONAL College of Information Technology BACHELOR OF COMPUTER SCIENCE (HONS.) FINAL EXAMINATION SEMESTER 2 2012/2013 DIGITAL SYSTEMS DESIGN (CSNB163) January 2013 Time allowed: 3 hours

More information

Schedule. 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. 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 information

UNIT II COMBINATIONAL CIRCUITS:

UNIT 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 information

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop EE210: Switching Systems Lecture 14: State Tables, Diagrams, Latches, and Flip Flop Prof. YingLi Tian Nov. 6, 2017 Department of Electrical Engineering The City College of New York The City University

More information

COE 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   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 information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN UNIT I : BOOLEAN ALGEBRA AND LOGIC GATES PART - A (2 MARKS) Number

More information

Sample Test Paper - I

Sample 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 information

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

PG - 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 information

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

UNSIGNED 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 information

Logic Design II (17.342) Spring Lecture Outline

Logic Design II (17.342) Spring Lecture Outline Logic Design II (17.342) Spring 2012 Lecture Outline Class # 10 April 12, 2012 Dohn Bowden 1 Today s Lecture First half of the class Circuits for Arithmetic Operations Chapter 18 Should finish at least

More information

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 100 Q.1(a) Attempt any SIX of the following : [12]

More information

Chapter 7 Logic Circuits

Chapter 7 Logic Circuits Chapter 7 Logic Circuits Goal. Advantages of digital technology compared to analog technology. 2. Terminology of Digital Circuits. 3. Convert Numbers between Decimal, Binary and Other forms. 5. Binary

More information

CHW 261: Logic Design

CHW 261: Logic Design CHW 26: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed4 http://bu.edu.eg/staff/ahmedshalaby4# Slide Digital Fundamentals Digital Concepts Slide 2 What?

More information

Chapter 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 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 information

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007 EECS 150 - Components and Design Techniques for Digital Systems FSMs 9/11/2007 Sarah Bird Electrical Engineering and Computer Sciences University of California, Berkeley Slides borrowed from David Culler

More information

vidyarthiplus.com vidyarthiplus.com vidyarthiplus.com ANNA UNIVERSITY- COMBATORE B.E./ B.TECH. DEGREE EXAMINATION - JUNE 2009. ELECTRICAL & ELECTONICS ENGG. - FOURTH SEMESTER DIGITAL LOGIC CIRCUITS PART-A

More information

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

We 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 information

Lecture 10: Synchronous Sequential Circuits Design

Lecture 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 information

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

Logic. 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 information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each) Subject Code: 17333 Model Answer Page 1/ 27 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model

More information

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Combinational 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 information

ECE 341. Lecture # 3

ECE 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 information

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Combinational 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 information

ALU A functional unit

ALU A functional unit ALU A functional unit that performs arithmetic operations such as ADD, SUB, MPY logical operations such as AND, OR, XOR, NOT on given data types: 8-,16-,32-, or 64-bit values A n-1 A n-2... A 1 A 0 B n-1

More information

IT T35 Digital system desigm y - ii /s - iii

IT 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 information

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering TIMING ANALYSIS Overview Circuits do not respond instantaneously to input changes

More information

Sequential Logic Circuits

Sequential Logic Circuits Chapter 4 Sequential Logic Circuits 4 1 The defining characteristic of a combinational circuit is that its output depends only on the current inputs applied to the circuit. The output of a sequential circuit,

More information

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Save from:   cs. Logic design 1 st Class أستاذ المادة: د. عماد Save from: www.uotiq.org/dep cs Logic design 1 st Class أستاذ المادة: د. عماد استاذة المادة: م.م ميساء Contents Lectured One: Number system operation 1- Decimal numbers. 2- Binary numbers. 3- Octal numbers.

More information

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science Sequential Logic Rab Nawaz Khan Jadoon DCS COMSATS Institute of Information Technology Lecturer COMSATS Lahore Pakistan Digital Logic and Computer Design Sequential Logic Combinational circuits with memory

More information

Chapter 2 Basic Arithmetic Circuits

Chapter 2 Basic Arithmetic Circuits Chapter 2 Basic Arithmetic Circuits This chapter is devoted to the description of simple circuits for the implementation of some of the arithmetic operations presented in Chap. 1. Specifically, the design

More information

Lecture 3 Review on Digital Logic (Part 2)

Lecture 3 Review on Digital Logic (Part 2) Lecture 3 Review on Digital Logic (Part 2) Xuan Silvia Zhang Washington University in St. Louis http://classes.engineering.wustl.edu/ese461/ ircuit Optimization Simplest implementation ost criterion literal

More information

Digital Electronics Circuits 2017

Digital 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 information

Hardware Design I Chap. 4 Representative combinational logic

Hardware 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 information

Fundamentals of Boolean Algebra

Fundamentals of Boolean Algebra UNIT-II 1 Fundamentals of Boolean Algebra Basic Postulates Postulate 1 (Definition): A Boolean algebra is a closed algebraic system containing a set K of two or more elements and the two operators and

More information

Lecture 2 Review on Digital Logic (Part 1)

Lecture 2 Review on Digital Logic (Part 1) Lecture 2 Review on Digital Logic (Part 1) Xuan Silvia Zhang Washington University in St. Louis http://classes.engineering.wustl.edu/ese461/ Grading Engagement 5% Review Quiz 10% Homework 10% Labs 40%

More information

Show that the dual of the exclusive-or is equal to its compliment. 7

Show that the dual of the exclusive-or is equal to its compliment. 7 Darshan Institute of ngineering and Technology, Rajkot, Subject: Digital lectronics (2300) GTU Question ank Unit Group Questions Do as directed : I. Given that (6)0 = (00)x, find the value of x. II. dd

More information

Integrated Circuits & Systems

Integrated Circuits & Systems Federal University of Santa Catarina Center for Technology Computer Science & Electronics Engineering Integrated Circuits & Systems INE 5442 Lecture 18 CMOS Sequential Circuits - 1 guntzel@inf.ufsc.br

More information

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of 27 WORKBOOK Detailed Eplanations of Try Yourself Questions Electrical Engineering Digital Electronics Number Systems and Codes T : Solution Converting into decimal number system 2 + 3 + 5 + 8 2 + 4 8 +

More information

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

ARITHMETIC 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 information

Overview of Chapter 4

Overview of Chapter 4 Overview of hapter 4 Types of Sequential ircuits Storage Elements Latches Flip-Flops Sequential ircuit Analysis State Tables State Diagrams Sequential ircuit Design Specification Assignment of State odes

More information

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

Written exam for IE1204/5 Digital Design with solutions Thursday 29/ Written exam for IE4/5 Digital Design with solutions Thursday 9/ 5 9.-. General Information Examiner: Ingo Sander. Teacher: William Sandqvist phone 8-794487 Exam text does not have to be returned when

More information

CHAPTER1: Digital Logic Circuits Combination Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits CS224: Computer Organization S.KHABET CHAPTER1: Digital Logic Circuits Combination Circuits 1 PRIMITIVE LOGIC GATES Each of our basic operations can be implemented in hardware using a primitive logic gate.

More information

CpE358/CS381. Switching Theory and Logical Design. Summer

CpE358/CS381. Switching Theory and Logical Design. Summer Switching Theory and Logical Design - Class Schedule Monday Tuesday Wednesday Thursday Friday May 7 8 9 - Class 2 - Class 2 2 24 - Class 3 25 26 - Class 4 27 28 Quiz Commencement 3 June 2 - Class 5 3 -

More information

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Binary 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 information

Chapter 7 Sequential Logic

Chapter 7 Sequential Logic Chapter 7 Sequential Logic SKEE2263 Digital Systems Mun im/ismahani/izam {munim@utm.my,e-izam@utm.my,ismahani@fke.utm.my} March 28, 2016 Table of Contents 1 Intro 2 Bistable Circuits 3 FF Characteristics

More information

I. Motivation & Examples

I. Motivation & Examples I. Motivation & Examples Output depends on current input and past history of inputs. State embodies all the information about the past needed to predict current output based on current input. State variables,

More information

Philadelphia University Student Name: Student Number:

Philadelphia University Student Name: Student Number: Philadelphia University Student Name: Student Number: Faculty of Engineering Serial Number: Final Exam, First Semester: 2017/2018 Dept. of Computer Engineering Course Title: Logic Circuits Date: 29/01/2018

More information

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Written reexam with solutions for IE1204/5 Digital Design Monday 14/ Written reexam with solutions for IE204/5 Digital Design Monday 4/3 206 4.-8. General Information Examiner: Ingo Sander. Teacher: William Sandqvist phone 08-7904487 Exam text does not have to be returned

More information

Introduction to Digital Logic Missouri S&T University CPE 2210 Subtractors

Introduction 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 information

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL. 2017-18 XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL HALF ADDER 1. The circuit that performs addition within the Arithmetic and Logic Unit of the CPU are called adders. 2. A unit that adds two

More information

Chapter 4. Sequential Logic Circuits

Chapter 4. Sequential Logic Circuits Chapter 4 Sequential Logic Circuits 1 2 Chapter 4 4 1 The defining characteristic of a combinational circuit is that its output depends only on the current inputs applied to the circuit. The output of

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Simple Processor CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Digital

More information

The Design Procedure. Output Equation Determination - Derive output equations from the state table

The Design Procedure. Output Equation Determination - Derive output equations from the state table The Design Procedure Specification Formulation - Obtain a state diagram or state table State Assignment - Assign binary codes to the states Flip-Flop Input Equation Determination - Select flipflop types

More information

Topic 8: Sequential Circuits

Topic 8: Sequential Circuits Topic 8: Sequential Circuits Readings : Patterson & Hennesy, Appendix B.4 - B.6 Goals Basic Principles behind Memory Elements Clocks Applications of sequential circuits Introduction to the concept of the

More information

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3) CMPE12 - Notes chapter 1 Digital Logic (Textbook Chapter 3) Transistor: Building Block of Computers Microprocessors contain TONS of transistors Intel Montecito (2005): 1.72 billion Intel Pentium 4 (2000):

More information

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO UN IVERSIT Y O F CA LIFO RNI A AT BERKELEY BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO SAN TA BARBA RA S AN TA CRUZ De p a r tm en t of Ele ctr i ca l En gin e e rin g a

More information

Numbers and Arithmetic

Numbers 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 information

COSC 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. 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 information

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010 EE 224: INTROUCTION TO IGITAL CIRCUITS & COMPUTER ESIGN Lecture 6: Sequential Logic 3 Registers & Counters 05/10/2010 Avinash Kodi, kodi@ohio.edu Introduction 2 A Flip-Flop stores one bit of information

More information

Cs302 Quiz for MID TERM Exam Solved

Cs302 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 information

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Combina-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 information

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE Estd-1984 KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE 641 006 QUESTION BANK UNIT I PART A ISO 9001:2000 Certified 1. Convert (100001110.010) 2 to a decimal number. 2. Find the canonical SOP for the function

More information