Chapter 11 - Digital Logic

Size: px
Start display at page:

Download "Chapter 11 - Digital Logic"

Transcription

1 Chapter 11 - Digital Logic Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 11 - Digital Logic 1 / 73

2 Table of Contents I 1 Introduction 2 Boolean Algebra 3 Gates 4 Combinatorial Circuit Implementation of Boolean Functions Algebraic simplification Karnaugh Maps Multiplexers Decoders Adders L. Tarrataca Chapter 11 - Digital Logic 2 / 73

3 Table of Contents I 5 Sequential Circuits Flip-flops SR flip-flops D flip-flops J-K flip-flops J-K flip-flops J-K flip-flops Registers Parallel Registers Shift Registers Counters L. Tarrataca Chapter 11 - Digital Logic 3 / 73

4 Table of Contents II Asynchronous counters Synchronous counters L. Tarrataca Chapter 11 - Digital Logic 4 / 73

5 Introduction Introduction Today s class will be a revision of digital logic elements: Boolean algebra. Gates: AND, OR, NOT, XOR,... Combinatorial logic: Multiplexers, Decoders, Adders,... Sequential logic: Flip-flops, registers, counters,... L. Tarrataca Chapter 11 - Digital Logic 5 / 73

6 Introduction Computer architecture builds on these concepts to develop new ones. Lets see how to review an entire semestre of concepts in a single class =) L. Tarrataca Chapter 11 - Digital Logic 6 / 73

7 Boolean Algebra Boolean Algebra Boolean algebra makes use of variables and operations: The variables and operations are logical variables and operations. A variable may take on the value 1 (TRUE) or 0 (FALSE). L. Tarrataca Chapter 11 - Digital Logic 7 / 73

8 Boolean Algebra Figure: Boolean operators of two input variables (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 8 / 73

9 Boolean Algebra What if we have more than two variables? Figure: Boolean operators extended to more than two inputs (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 9 / 73

10 Boolean Algebra Figure: Basic identities of boolean algebra (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 10 / 73

11 Gates Gates The fundamental building block of all digital logic circuits is the gate. Logical functions are implemented by the interconnection of gates. The basic gates used in digital logic are AND, OR, NOT, NAND, NOR, and XOR. L. Tarrataca Chapter 11 - Digital Logic 11 / 73

12 Gates Figure: Basic logic L. Tarrataca gates (Source: Chapter [Stallings, 11 - Digital2015]) Logic 12 / 73

13 Gates The NAND and NOR gates are also known as universal gates: Any Boolean function can be implemented using only them (1/3). Figure: The use of NAND gates (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 13 / 73

14 Gates The NAND and NOR gates are also known as universal gates: Any Boolean function can be implemented using only them (2/3). Figure: The use of NAND gates (Source: [Stallings, 2015]) A.B = A.B L. Tarrataca Chapter 11 - Digital Logic 14 / 73

15 Gates The NAND and NOR gates are also known as universal gates: Any Boolean function can be implemented using only them (3/3). Figure: The use of NAND gates (Source: [Stallings, 2015]) A+B = A+B = A.B (DeMorgan Law) L. Tarrataca Chapter 11 - Digital Logic 15 / 73

16 Combinatorial Circuit Combinatorial Circuit A set of interconnected gates output at any time is a function only of the input at that time; consists of n binary inputs and m binary outputs Can be defined in three ways: Truth table; Graphical symbols; Boolean equations L. Tarrataca Chapter 11 - Digital Logic 16 / 73

17 Combinatorial Circuit Implementation of Boolean Functions Example Consider the following truth table for a boolean function of three variables: Figure: A boolean function of three variables (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 17 / 73

18 Combinatorial Circuit Implementation of Boolean Functions F can be expressed by itemizing the combinations that cause F to be 1: F = ĀB C + ĀBC + AB C Figure: Circuit implementation (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 18 / 73

19 Combinatorial Circuit Algebraic simplification F = ĀB C + ĀBC + AB C = ĀB( C + C)+AB C = ĀB.1+AB C = B(Ā+A C) = B((Ā+A)(Ā+ C)) = B(1(Ā+ C)) = ĀB+ B C Besides algebraic simplification we can also employ Karnaugh maps to obtain simpler expressions. L. Tarrataca Chapter 11 - Digital Logic 19 / 73

20 Combinatorial Circuit Karnaugh Maps Karnaugh Maps The algebraic simplification procedure is awkward: Lacks specific rules to predict each succeeding step; Difficult to determine if the simplest expression has been obtained; The Karnaugh map method provides a method for simplifying boolean expressions: Up to four variables; More than this becomes cumbersome to use. This section is based on [Mano and Kime, 2002]. L. Tarrataca Chapter 11 - Digital Logic 20 / 73

21 Combinatorial Circuit Karnaugh Maps The map is a diagram made up of squares: each square represents one minterm of the function; Visual diagram of all possible ways a function may be expressed; L. Tarrataca Chapter 11 - Digital Logic 21 / 73

22 Combinatorial Circuit Karnaugh Maps Lets take a look at a three-variable map. Only one bit changes in value from one column to the other; Any two adjacent squares differ in only a single variable; Figure: Three Variable Map (Source: [Mano and Kime, 2002]) Any two minterms in adjacent squares produce a product of two variables. Why? L. Tarrataca Chapter 11 - Digital Logic 22 / 73

23 Combinatorial Circuit Karnaugh Maps Lets see why... Figure: Three Variable Map (Source: [Mano and Kime, 2002]) E.g.: m 5 + m 7 = XȲZ + XYZ I.e. m 5 + m 7 = XȲ Z + XYZ = XZ(Ȳ + Y) = XZ The two squares differ in variable Y, which can be removed. L. Tarrataca Chapter 11 - Digital Logic 23 / 73

24 Combinatorial Circuit Karnaugh Maps Karnaugh Map Example 1 Figure: m(2, 3, 4, 5) = XY + XȲ (Source: [Mano and Kime, 2002]) L. Tarrataca Chapter 11 - Digital Logic 24 / 73

25 Combinatorial Circuit Karnaugh Maps Karnaugh Map Example 2 Two squares can also be adjacent without touching each other: Figure: m(0, 2, 4, 6) = X Z + X Z (Source: [Mano and Kime, 2002]) The minterms continue to differ by one variable; L. Tarrataca Chapter 11 - Digital Logic 25 / 73

26 Combinatorial Circuit Karnaugh Maps Karnaugh Map Example 3 It is also possible to combine 4 squares: Figure: m(0, 2, 4, 6) = X Z + X Z = ( X + X) Z = Z (Source: [Mano and Kime, 2002]) L. Tarrataca Chapter 11 - Digital Logic 26 / 73

27 Combinatorial Circuit Karnaugh Maps Karnaugh Map Example 4 It is also possible to have several combinations: Figure: m(0, 1, 2, 3, 6, 7) = X + Y (Source: [Mano and Kime, 2002]) L. Tarrataca Chapter 11 - Digital Logic 27 / 73

28 Combinatorial Circuit Karnaugh Maps The more squares are combined the fewer literals are used: One square represents three literals; Two squares represents a product term of two literals; Four squares represents a product term of one literal; Eight squares (entire map) is equal to value 1. L. Tarrataca Chapter 11 - Digital Logic 28 / 73

29 Combinatorial Circuit Multiplexers Multiplexers The multiplexer connects multiple inputs to a single output. At any time, one of the inputs is selected to be passed to the output. Figure: A 4-to-1 Multiplexer representation (Source: [Stallings, 2015]) Figure: A 4-to-1 Multiplexer truth table (Source: [Stallings, 2015]) Four input lines (D0, D1, D2, and D3); Two selection lines (S0 and S1); L. Tarrataca Chapter 11 - Digital Logic 29 / 73

30 Combinatorial Circuit Multiplexers Figure: Multiplexer Implementation (Source: [Stallings, 2015]) Multiplexeres are useful for: to control signal and data routing; E.g. loading PC from different sources; L. Tarrataca Chapter 11 - Digital Logic 30 / 73

31 Combinatorial Circuit Decoders Decoders Combinational circuit with a number of output lines: only one of which is asserted at any time, dependent on input; n inputs, 2 n output lines; L. Tarrataca Chapter 11 - Digital Logic 31 / 73

32 Combinatorial Circuit Decoders Figure: Decoder with 3 inputs and 2 3 = 8 outputs (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 32 / 73

33 Combinatorial Circuit Adders Adders Binary addition differs from Boolean algebra in that the result includes a carry term. L. Tarrataca Chapter 11 - Digital Logic 33 / 73

34 Combinatorial Circuit Adders Figure: Binary addition truth tables (Source: [Stallings, 2015]) The two outputs can be expressed: Sum = C in AB+ C in AB+ C in AB+ C in AB C out = C in AB+ C in AB+ CAB+ CAB L. Tarrataca Chapter 11 - Digital Logic 34 / 73

35 Combinatorial Circuit Adders Figure: 4 bit adder (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 35 / 73

36 Combinatorial Circuit Adders Figure: Implementation of an adder using AND, OR and NOT gates (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 36 / 73

37 Sequential Circuits Sequential Circuits Combinational circuits implement the essential functions of a computer. However, they provide no memory or state information, This is where sequential circuits come in: The current output of a sequential circuit depends not only on the current input and the current state of that circuit. Useful examples of sequential circuits: Flip-flops; Registers; Counters. L. Tarrataca Chapter 11 - Digital Logic 37 / 73

38 Sequential Circuits Flip-flops Flip-flops The simplest form of sequential circuit is the flip-flop. There are a variety of flipflops, all of which share two properties: Can maintain a binary state indefinitely (as long as powered is deliver to the circuit): Until directed by an input signal to switch states. The flip-flop can function as a 1-bit memory. Has two outputs, these are generally labeled Q and Q. L. Tarrataca Chapter 11 - Digital Logic 38 / 73

39 Sequential Circuits Flip-flops SR flip-flops The circuit has two inputs S (Set) and R (Reset) And two outputs Q and Q, and consists of two NOR gates connected in a feedback arrangement. Figure: The S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 39 / 73

40 Sequential Circuits Flip-flops This circuit can function as a 1-bit memory: The inputs S and R serve to write the values 1 and 0, respectively, into memory. Consider the state Q = 0, Q = 1, S = 0, R = 0 Figure: S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 40 / 73

41 Sequential Circuits Flip-flops Suppose that S changes to the value 1. Figure: S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) Figure: NOR S-R Latch timing Diagram (Source: [Stallings, 2015]) 1 Now the inputs to the lower NOR gate are S = 1, Q = 0. 2 After some time delay t, the output of the lower NOR gate will be Q = 0. L. Tarrataca Chapter 11 - Digital Logic 41 / 73

42 Sequential Circuits Flip-flops Figure: S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) Figure: NOR S-R Latch timing Diagram (Source: [Stallings, 2015]) 3 the inputs to the upper NOR gate become R = 0, Q = 0. 4 After another gate delay of t, the output Q becomes 1. L. Tarrataca Chapter 11 - Digital Logic 42 / 73

43 Sequential Circuits Flip-flops Figure: S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) Figure: NOR S-R Latch timing Diagram (Source: [Stallings, 2015]) 5 This is a stable state. The inputs to the lower gate are now S = 1, Q = 1, which maintain the output Q = 0. As long as S = 1 and R = 0, the outputs will remain Q = 1, Q = 0. Furthermore, if S returns to 0, the outputs will remain unchanged. L. Tarrataca Chapter 11 - Digital Logic 43 / 73

44 Sequential Circuits Flip-flops Figure: S-R Latch implemented with NOR Gates (Source: [Stallings, 2015]) Figure: NOR S-R Latch timing Diagram (Source: [Stallings, 2015]) 6 The R output performs the opposite function. When R goes to 1, it forces Q = 0, Q = 1 Regardless of the previous state of Q and Q. Again, a time delay of 2 t occurs before the final state is established L. Tarrataca Chapter 11 - Digital Logic 44 / 73

45 Sequential Circuits Flip-flops This behaviour can be described by a characteristic table: Figure: (Source: [Stallings, 2015]) Inputs S = 1, R = 1 are not allowed, because these would produce an inconsistent output: Q = Q = 0 L. Tarrataca Chapter 11 - Digital Logic 45 / 73

46 Sequential Circuits Flip-flops It is also possible to derive a simplified version: Figure: (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 46 / 73

47 Sequential Circuits Flip-flops Example Lets look at a particular example: Figure: (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 47 / 73

48 Sequential Circuits Flip-flops Typically events in the digital computer are synchronized to a clock pulse, So that changes occur only when a clock pulse occurs; The R and S inputs are passed to the NOR gates only during the clock pulse. Figure: Clocked SR flip-flops (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 48 / 73

49 Sequential Circuits Flip-flops D flip-flops One problem with S-R flip-flop is that the condition R = 1, S = 1 must be avoided. One way to do this is to allow just a single input. Figure: (D flip-flops [Stallings, 2015]) By using an inverter, the nonclock inputs to the two AND gates are guaranteed to be the opposite of each other. L. Tarrataca Chapter 11 - Digital Logic 49 / 73

50 Sequential Circuits Flip-flops Figure: D flip-flops [Stallings, 2015] Figure: D flip-flops Characteristic Table [Stallings, 2015] The flip-flop captures the value of the D-input during the clock cycle; That captured value becomes the Q output. At other times, the output Q does not change. L. Tarrataca Chapter 11 - Digital Logic 50 / 73

51 Sequential Circuits Flip-flops J-K flip-flops (1/3) Has two inputs. However, in this case all possible combinations of input values are valid: Figure: J-K flip-flops [Stallings, 2015] Figure: J-K flip-flops Characteristic Table [Stallings, 2015] Note that the first three combinations are the same as for the SR flip-flop; With no input asserted, the output is stable; L. Tarrataca Chapter 11 - Digital Logic 51 / 73

52 Sequential Circuits Flip-flops J-K flip-flops (2/3) Figure: J-K flip-flops [Stallings, 2015] Figure: J-K flip-flops Characteristic Table [Stallings, 2015] If only the J input is asserted, the result is a set function, causing the output to be 1; if only the K in put is asserted, the result is a reset function, causing the output to be 0. L. Tarrataca Chapter 11 - Digital Logic 52 / 73

53 Sequential Circuits Flip-flops J-K flip-flops (3/3) Figure: J-K flip-flops [Stallings, 2015] Figure: J-K flip-flops Characteristic Table [Stallings, 2015] When both J and K are 1, the output is reversed; Thus, if Q is 1 and 1 is applied to J and K, then Q becomes 0. L. Tarrataca Chapter 11 - Digital Logic 53 / 73

54 Sequential Circuits Flip-flops In summary: Figure: Basic flip-flops summary [Stallings, 2015] L. Tarrataca Chapter 11 - Digital Logic 54 / 73

55 Sequential Circuits Registers Registers A register is a digital circuit used within the CPU to store one or more bits of data. Two basic types of registers are commonly used: parallel registers; shift registers. Lets have a quick look at each one of these... L. Tarrataca Chapter 11 - Digital Logic 55 / 73

56 Sequential Circuits Registers Parallel Registers Register consisting of a set of 1-bit memories that can be read or written simultaneously. Figure: 8 Bit Parallel Register (Source: [Stallings, 2015]) Makes use of D flip-flops Load control signal controls writing into the register from signal lines, D11 through D18. L. Tarrataca Chapter 11 - Digital Logic 56 / 73

57 Sequential Circuits Registers Shift Registers (1/2) A shift register accepts and/or transfers information serially: Figure: 5 Bit Shift Register (Source: [Stallings, 2015]) A 5-bit shift register constructed from clocked D flip-flops; Data are input only to the leftmost flip-flop; With each clock pulse, data are shifted to the right one position; and the rightmost bit is transferred out. L. Tarrataca Chapter 11 - Digital Logic 57 / 73

58 Sequential Circuits Registers Shift Registers (2/2) A shift register accepts and/or transfers information serially: Figure: 5 Bit Shift Register (Source: [Stallings, 2015]) Shift registers can be used to interface to serial I/O devices. In addition, they can be used within the ALU to perform logical shift and rotate functions. L. Tarrataca Chapter 11 - Digital Logic 58 / 73

59 Sequential Circuits Counters Counters A counter is a register whose value is easily incremented by 1 modulo the capacity of the register: A register made up of n flip-flops can count up to 2 n 1. After value 2 n 1 the next increment sets the counter value to 0. An example of a counter in the CPU is the program counter. L. Tarrataca Chapter 11 - Digital Logic 59 / 73

60 Sequential Circuits Counters Counters can be designated as asynchronous or synchronous: Asynchronous counter: relatively slow because the output of one flip-flop triggers a change in the status of the next flip-flop. Synchronous counter: all of the flip-flops change state at the same time. the kind used in CPUs. Lets have a look at each one of these... L. Tarrataca Chapter 11 - Digital Logic 60 / 73

61 Sequential Circuits Counters Asynchronous counters (1/3) Figure: 4-Bit Counter (Source: [Stallings, 2015]) The output of the leftmost flip-flop(q 0 ) is the least significant bit. Extensible to an arbitrary number of bits by cascading more flip-flops. The counter is incremented with each clock pulse. L. Tarrataca Chapter 11 - Digital Logic 61 / 73

62 Sequential Circuits Counters Asynchronous counters (2/3) Figure: 4-Bit Counter (Source: [Stallings, 2015]) The J and K inputs to each flip-flop are held at a constant 1. I.e. when there is a clock pulse, the output at Q will be inverted; The change in state occurs with the falling edge of the clock pulse A.k.a. edge-triggered flip-flop This timing is very important for the correct functioning of the counter. L. Tarrataca Chapter 11 - Digital Logic 62 / 73

63 Sequential Circuits Counters Asynchronous counters (3/3) Figure: 4-Bit Counter (Source: [Stallings, 2015]) The state of each individual bit is initially set to zero If one looks at patterns of output for this counter, it can be seen that it cycles through 0000, 0001,..., 1110, 1111, 0000 Note the transitional delay from each flip-flops L. Tarrataca Chapter 11 - Digital Logic 63 / 73

64 Sequential Circuits Counters Synchronous counters (1/9) Asynchronous counters have a disadvantageous built-in delay: proportional to the length of the counter. CPUs make use of synchronous counters: all of the flip-flops of the counter change at the same time. Lets take a look at how to build a 3-bit synchronous counter. L. Tarrataca Chapter 11 - Digital Logic 64 / 73

65 Sequential Circuits Counters Synchronous counters (2/9) For a 3-bit counter, three flip-flops will be needed: Let us use J-K flip-flops. Label the uncomplemented output of the three flip-flops A, B, C respectively, with C representing the least significant bit. It is helpful to recast the characteristic table for the J-K flip-flop: Figure: Original Figure: Recast L. Tarrataca Chapter 11 - Digital Logic 65 / 73

66 Sequential Circuits Counters Synchronous counters (3/9) It is helpful to recast the characteristic table for the J-K flip-flop: Figure: Original Figure: Recast If Q n = 0 and we want to transition to Q n+1 = 0 Then J = 0 and K = 0, 1 If Q n = 0 and we want to transition to Q n+1 = 1 Then J = 1 and K = 0, 1 L. Tarrataca Chapter 11 - Digital Logic 66 / 73

67 Sequential Circuits Counters Synchronous counters (4/9) It is helpful to recast the characteristic table for the J-K flip-flop: Figure: Original Figure: Recast If Q n = 1 and we want to transition to Q n+1 = 0 Then K = 1 and J = 0, 1 If Q n = 1 and we want to transition to Q n+1 = 1 Then K = 0 and J = 0, 1 L. Tarrataca Chapter 11 - Digital Logic 67 / 73

68 Sequential Circuits Counters Synchronous counters (5/9) Figure: Synchronous Counter Truth Table (Source: [Stallings, 2015]) Consider the transition from 000 to 001 We want the value of A to remain 0, the value of B to remain 0, and the value of C to go from 0 to 1 with the next application of a clock pulse; The excitation table shows that to maintain an output of 0, we must have inputs of J = 0 and don t care for K. To effect a transition from 0 to 1, the inputs must be J = 1 and K = d. L. Tarrataca Chapter 11 - Digital Logic 68 / 73

69 Sequential Circuits Counters Synchronous counters (6/9) With this in mind we can construct a truth table that relates the J-K inputs and outputs Figure: Synchronous Counter Truth Table (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 69 / 73

70 Sequential Circuits Counters Synchronous counters (7/9) With the aid of Karnaugh maps, we can develop Boolean expressions for these six functions: Figure: Synchronous Counter Karnaugh Maps (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 70 / 73

71 Sequential Circuits Counters Synchronous counters (8/9) For example, the Karnaugh map for the variable Ja: The J input to the flip-flop that produces the A output; yields the expression Ja = BC. When all six expressions are derived, it is a straightforward matter to design the actual circuit. L. Tarrataca Chapter 11 - Digital Logic 71 / 73

72 Sequential Circuits Counters Synchronous counters (9/9) The actual circuit: Figure: Synchronous Counter Design (Source: [Stallings, 2015]) L. Tarrataca Chapter 11 - Digital Logic 72 / 73

73 References References I Mano, M. and Kime, C. R. (2002). Logic and Computer Design Fundamentals: 2nd Edition. Prentice Hall, Englewood Cliffs, NJ, USA. Stallings, W. (2015). Computer Organization and Architecture. Pearson Education. L. Tarrataca Chapter 11 - Digital Logic 73 / 73

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one

More information

CHAPTER 3 Boolean Algebra and Digital Logic

CHAPTER 3 Boolean Algebra and Digital Logic CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4

More information

Lecture 8: Synchronous Digital Systems

Lecture 8: Synchronous Digital Systems Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered

More information

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction

More information

Counters and Decoders

Counters and Decoders Physics 3330 Experiment #10 Fall 1999 Purpose Counters and Decoders In this experiment, you will design and construct a 4-bit ripple-through decade counter with a decimal read-out display. Such a counter

More information

Gates, Circuits, and Boolean Algebra

Gates, Circuits, and Boolean Algebra Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks

More information

Module 3: Floyd, Digital Fundamental

Module 3: Floyd, Digital Fundamental Module 3: Lecturer : Yongsheng Gao Room : Tech - 3.25 Email : yongsheng.gao@griffith.edu.au Structure : 6 lectures 1 Tutorial Assessment: 1 Laboratory (5%) 1 Test (20%) Textbook : Floyd, Digital Fundamental

More information

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop. Objectives Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop. describe how such a flip-flop can be SET and RESET. describe the disadvantage

More information

Let s put together a Manual Processor

Let s put together a Manual Processor Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce

More information

CS311 Lecture: Sequential Circuits

CS311 Lecture: Sequential Circuits CS311 Lecture: Sequential Circuits Last revised 8/15/2007 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce

More information

Memory Elements. Combinational logic cannot remember

Memory Elements. Combinational logic cannot remember Memory Elements Combinational logic cannot remember Output logic values are function of inputs only Feedback is needed to be able to remember a logic value Memory elements are needed in most digital logic

More information

BINARY CODED DECIMAL: B.C.D.

BINARY CODED DECIMAL: B.C.D. BINARY CODED DECIMAL: B.C.D. ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS.

More information

DEPARTMENT OF INFORMATION TECHNLOGY

DEPARTMENT OF INFORMATION TECHNLOGY DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Mahamaya Technical University, Noida Approved by AICTE DEPARTMENT OF INFORMATION TECHNLOGY Lab Manual for Computer Organization Lab ECS-453

More information

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram SEQUENTIAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/sequential_circuits.htm Copyright tutorialspoint.com The combinational circuit does not use any memory. Hence the previous

More information

Simplifying Logic Circuits with Karnaugh Maps

Simplifying Logic Circuits with Karnaugh Maps Simplifying Logic Circuits with Karnaugh Maps The circuit at the top right is the logic equivalent of the Boolean expression: f = abc + abc + abc Now, as we have seen, this expression can be simplified

More information

Flip-Flops, Registers, Counters, and a Simple Processor

Flip-Flops, Registers, Counters, and a Simple Processor June 8, 22 5:56 vra235_ch7 Sheet number Page number 349 black chapter 7 Flip-Flops, Registers, Counters, and a Simple Processor 7. Ng f3, h7 h6 349 June 8, 22 5:56 vra235_ch7 Sheet number 2 Page number

More information

2.0 Chapter Overview. 2.1 Boolean Algebra

2.0 Chapter Overview. 2.1 Boolean Algebra Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital

More information

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs. equential Logic o far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs. In sequential logic the output of the

More information

3.Basic Gate Combinations

3.Basic Gate Combinations 3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and

More information

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,

More information

ASYNCHRONOUS COUNTERS

ASYNCHRONOUS COUNTERS LB no.. SYNCHONOUS COUNTES. Introduction Counters are sequential logic circuits that counts the pulses applied at their clock input. They usually have 4 bits, delivering at the outputs the corresponding

More information

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation Karnaugh Maps Applications of Boolean logic to circuit design The basic Boolean operations are AND, OR and NOT These operations can be combined to form complex expressions, which can also be directly translated

More information

Lesson 12 Sequential Circuits: Flip-Flops

Lesson 12 Sequential Circuits: Flip-Flops Lesson 12 Sequential Circuits: Flip-Flops 1. Overview of a Synchronous Sequential Circuit We saw from last lesson that the level sensitive latches could cause instability in a sequential system. This instability

More information

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department Counters By: Electrical Engineering Department 1 Counters Upon completion of the chapter, students should be able to:.1 Understand the basic concepts of asynchronous counter and synchronous counters, and

More information

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count

More information

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps CSEE 3827: Fundamentals of Computer Systems Standard Forms and Simplification with Karnaugh Maps Agenda (M&K 2.3-2.5) Standard Forms Product-of-Sums (PoS) Sum-of-Products (SoP) converting between Min-terms

More information

The components. E3: Digital electronics. Goals:

The components. E3: Digital electronics. Goals: E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC

More information

Lecture-3 MEMORY: Development of Memory:

Lecture-3 MEMORY: Development of Memory: Lecture-3 MEMORY: It is a storage device. It stores program data and the results. There are two kind of memories; semiconductor memories & magnetic memories. Semiconductor memories are faster, smaller,

More information

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa Experiment # 9 Clock generator circuits & Counters Eng. Waleed Y. Mousa 1. Objectives: 1. Understanding the principles and construction of Clock generator. 2. To be familiar with clock pulse generation

More information

BOOLEAN ALGEBRA & LOGIC GATES

BOOLEAN ALGEBRA & LOGIC GATES BOOLEAN ALGEBRA & LOGIC GATES Logic gates are electronic circuits that can be used to implement the most elementary logic expressions, also known as Boolean expressions. The logic gate is the most basic

More information

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012 Latches, the D Flip-Flop & Counter Design ECE 52A Winter 22 Reading Assignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7. Basic Latch 7.2 Gated SR Latch 7.2. Gated SR

More information

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits

More information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 2 Logic Gates and Introduction to Computer Architecture Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are

More information

Combinational Logic Design Process

Combinational Logic Design Process Combinational Logic Design Process Create truth table from specification Generate K-maps & obtain logic equations Draw logic diagram (sharing common gates) Simulate circuit for design verification Debug

More information

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1 United States Naval Academy Electrical and Computer Engineering Department EC262 Exam 29 September 2. Do a page check now. You should have pages (cover & questions). 2. Read all problems in their entirety.

More information

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC. 8.1 Objectives To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC. 8.2 Introduction Circuits for counting events are frequently used in computers and other digital

More information

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters: Design Eample: ers er: a sequential circuit that repeats a specified sequence of output upon clock pulses. A,B,C,, Z. G, O, T, E, R, P, S,!.,,,,,,,7. 7,,,,,,,.,,,,,,,,,,,. Binary counter: follows the binary

More information

Systems I: Computer Organization and Architecture

Systems I: Computer Organization and Architecture Systems I: omputer Organization and Architecture Lecture 8: Registers and ounters Registers A register is a group of flip-flops. Each flip-flop stores one bit of data; n flip-flops are required to store

More information

Digital Electronics Detailed Outline

Digital Electronics Detailed Outline Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept

More information

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012 Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6

More information

Flip-Flops and Sequential Circuit Design

Flip-Flops and Sequential Circuit Design Flip-Flops and Sequential Circuit Design ECE 52 Winter 22 Reading ssignment Brown and Vranesic 7 Flip-Flops, Registers, Counters and a Simple Processor 7.5 T Flip-Flop 7.5. Configurable Flip-Flops 7.6

More information

Theory of Logic Circuits. Laboratory manual. Exercise 3

Theory of Logic Circuits. Laboratory manual. Exercise 3 Zakład Mikroinformatyki i Teorii Automatów yfrowych Theory of Logic ircuits Laboratory manual Exercise 3 Bistable devices 2008 Krzysztof yran, Piotr zekalski (edt.) 1. lassification of bistable devices

More information

Counters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0

Counters. Present State Next State A B A B 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 ounter ounters ounters are a specific type of sequential circuit. Like registers, the state, or the flip-flop values themselves, serves as the output. The output value increases by one on each clock cycle.

More information

Logic in Computer Science: Logic Gates

Logic in Computer Science: Logic Gates Logic in Computer Science: Logic Gates Lila Kari The University of Western Ontario Logic in Computer Science: Logic Gates CS2209, Applied Logic for Computer Science 1 / 49 Logic and bit operations Computers

More information

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1 WEEK 8.1 egisters and Counters ECE124 igital Circuits and Systems Page 1 Additional schematic FF symbols Active low set and reset signals. S Active high set and reset signals. S ECE124 igital Circuits

More information

Contents COUNTER. Unit III- Counters

Contents COUNTER. Unit III- Counters COUNTER Contents COUNTER...1 Frequency Division...2 Divide-by-2 Counter... 3 Toggle Flip-Flop...3 Frequency Division using Toggle Flip-flops...5 Truth Table for a 3-bit Asynchronous Up Counter...6 Modulo

More information

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013 DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 4. LECTURE: COUNTERS AND RELATED 2nd (Spring) term 2012/2013 1 4. LECTURE: COUNTERS AND RELATED 1. Counters,

More information

Combinational circuits

Combinational circuits Combinational circuits Combinational circuits are stateless The outputs are functions only of the inputs Inputs Combinational circuit Outputs 3 Thursday, September 2, 3 Enabler Circuit (High-level view)

More information

CHAPTER 11: Flip Flops

CHAPTER 11: Flip Flops CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach

More information

7. Latches and Flip-Flops

7. Latches and Flip-Flops Chapter 7 Latches and Flip-Flops Page 1 of 18 7. Latches and Flip-Flops Latches and flip-flops are the basic elements for storing information. One latch or flip-flop can store one bit of information. The

More information

CHAPTER 11 LATCHES AND FLIP-FLOPS

CHAPTER 11 LATCHES AND FLIP-FLOPS CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1 Introduction 11.2 Set-Reset Latch 11.3 Gated D Latch 11.4 Edge-Triggered D Flip-Flop 11.5 S-R Flip-Flop

More information

Binary Adders: Half Adders and Full Adders

Binary Adders: Half Adders and Full Adders Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order

More information

Sequential Logic Design Principles.Latches and Flip-Flops

Sequential Logic Design Principles.Latches and Flip-Flops Sequential Logic Design Principles.Latches and Flip-Flops Doru Todinca Department of Computers Politehnica University of Timisoara Outline Introduction Bistable Elements Latches and Flip-Flops S-R Latch

More information

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements ) Sequential Logic (Materials taken from: Principles of Computer Hardware by Alan Clements ) Sequential vs. Combinational Circuits Combinatorial circuits: their outputs are computed entirely from their present

More information

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 2. LECTURE: ELEMENTARY SEUENTIAL CIRCUITS: FLIP-FLOPS 1st year BSc course 2nd (Spring) term 2012/2013 1

More information

Counters are sequential circuits which "count" through a specific state sequence.

Counters are sequential circuits which count through a specific state sequence. Counters Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences. Two distinct types are in common usage:

More information

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann Chapter 7 Registers & Register Transfers J. J. Shann J.J. Shann Chapter Overview 7- Registers and Load Enable 7-2 Register Transfers 7-3 Register Transfer Operations 7-4 A Note for VHDL and Verilog Users

More information

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Registers As you probably know (if you don t then you should consider changing your course), data processing is usually

More information

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies ETEC 2301 Programmable Logic Devices Chapter 10 Counters Shawnee State University Department of Industrial and Engineering Technologies Copyright 2007 by Janna B. Gallaher Asynchronous Counter Operation

More information

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad A. M. Niknejad University of California, Berkeley EE 100 / 42 Lecture 24 p. 1/20 EE 42/100 Lecture 24: Latches and Flip Flops ELECTRONICS Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad University of California,

More information

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.

More information

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 This work covers part of outcome 3 of the Edexcel standard module: Outcome 3 is the most demanding

More information

Design: a mod-8 Counter

Design: a mod-8 Counter Design: a mod-8 Counter A mod-8 counter stores a integer value, and increments that value (say) on each clock tick, and wraps around to 0 if the previous stored value was 7. So, the stored value follows

More information

Counters & Shift Registers Chapter 8 of R.P Jain

Counters & Shift Registers Chapter 8 of R.P Jain Chapter 3 Counters & Shift Registers Chapter 8 of R.P Jain Counters & Shift Registers Counters, Syllabus Design of Modulo-N ripple counter, Up-Down counter, design of synchronous counters with and without

More information

(Refer Slide Time: 00:01:16 min)

(Refer Slide Time: 00:01:16 min) Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control

More information

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell Digital Electronics Part I Combinational and Sequential Logic Dr. I. J. Wassell Introduction Aims To familiarise students with Combinational logic circuits Sequential logic circuits How digital logic gates

More information

Lecture 5: Gate Logic Logic Optimization

Lecture 5: Gate Logic Logic Optimization Lecture 5: Gate Logic Logic Optimization MAH, AEN EE271 Lecture 5 1 Overview Reading McCluskey, Logic Design Principles- or any text in boolean algebra Introduction We could design at the level of irsim

More information

Chapter 8. Sequential Circuits for Registers and Counters

Chapter 8. Sequential Circuits for Registers and Counters Chapter 8 Sequential Circuits for Registers and Counters Lesson 3 COUNTERS Ch16L3- "Digital Principles and Design", Raj Kamal, Pearson Education, 2006 2 Outline Counters T-FF Basic Counting element State

More information

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks UNIVERSITY OF KERALA First Degree Programme in Computer Applications Model Question Paper Semester I Course Code- CP 1121 Introduction to Computer Science TIME : 3 hrs Maximum Mark: 80 SECTION A [Very

More information

Understanding Logic Design

Understanding Logic Design Understanding Logic Design ppendix of your Textbook does not have the needed background information. This document supplements it. When you write add DD R0, R1, R2, you imagine something like this: R1

More information

Chapter 9 Latches, Flip-Flops, and Timers

Chapter 9 Latches, Flip-Flops, and Timers ETEC 23 Programmable Logic Devices Chapter 9 Latches, Flip-Flops, and Timers Shawnee State University Department of Industrial and Engineering Technologies Copyright 27 by Janna B. Gallaher Latches A temporary

More information

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS CHAPTER IX-1 CHAPTER IX CHAPTER IX COUNTERS, SHIFT, AN ROTATE REGISTERS REA PAGES 249-275 FROM MANO AN KIME CHAPTER IX-2 INTROUCTION -INTROUCTION Like combinational building blocks, we can also develop

More information

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED DIGITAL TECHNICS II Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED 2nd (Spring) term 22/23 5. LECTURE: REGISTERS. Storage registers 2. Shift

More information

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters LAB OBJECTIVES 1. Introduction to latches and the D type flip-flop 2. Use of actual flip-flops to help you understand sequential

More information

ANALOG & DIGITAL ELECTRONICS

ANALOG & DIGITAL ELECTRONICS ANALOG & DIGITAL ELECTRONICS Course Instructor: Course No: PH-218 3-1-0-8 Dr. A.P. Vajpeyi E-mail: apvajpeyi@iitg.ernet.in Room No: #305 Department of Physics, Indian Institute of Technology Guwahati,

More information

Philadelphia University Faculty of Information Technology Department of Computer Science ----- Semester, 2007/2008.

Philadelphia University Faculty of Information Technology Department of Computer Science ----- Semester, 2007/2008. Philadelphia University Faculty of Information Technology Department of Computer Science ----- Semester, 2007/2008 Course Syllabus Course Title: Computer Logic Design Course Level: 1 Lecture Time: Course

More information

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw. Sequential Circuit Modeling Sequential Elements with Verilog Prof. Chien-Nan Liu TEL: 03-4227151 ext:34534 Email: jimmy@ee.ncu.edu.tw 4-1 Sequential Circuit Outputs are functions of inputs and present states of storage elements

More information

Chapter 7 Memory and Programmable Logic

Chapter 7 Memory and Programmable Logic NCNU_2013_DD_7_1 Chapter 7 Memory and Programmable Logic 71I 7.1 Introduction ti 7.2 Random Access Memory 7.3 Memory Decoding 7.5 Read Only Memory 7.6 Programmable Logic Array 77P 7.7 Programmable Array

More information

A New Paradigm for Synchronous State Machine Design in Verilog

A New Paradigm for Synchronous State Machine Design in Verilog A New Paradigm for Synchronous State Machine Design in Verilog Randy Nuss Copyright 1999 Idea Consulting Introduction Synchronous State Machines are one of the most common building blocks in modern digital

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. CHAPTER3 QUESTIONS MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. ) If one input of an AND gate is LOW while the other is a clock signal, the output

More information

Asynchronous Counters. Asynchronous Counters

Asynchronous Counters. Asynchronous Counters Counters and State Machine Design November 25 Asynchronous Counters ENGI 25 ELEC 24 Asynchronous Counters The term Asynchronous refers to events that do not occur at the same time With respect to counter

More information

COMBINATIONAL CIRCUITS

COMBINATIONAL CIRCUITS COMBINATIONAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/combinational_circuits.htm Copyright tutorialspoint.com Combinational circuit is a circuit in which we combine the different

More information

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on Digital Logic Circuits Digital circuits make up all computers and computer systems. The operation of digital circuits is based on Boolean algebra, the mathematics of binary numbers. Boolean algebra is

More information

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012 Karnaugh Maps & Combinational Logic Design ECE 52A Winter 22 Reading Assignment Brown and Vranesic 4 Optimized Implementation of Logic Functions 4. Karnaugh Map 4.2 Strategy for Minimization 4.2. Terminology

More information

Course Requirements & Evaluation Methods

Course Requirements & Evaluation Methods Course Title: Logic Circuits Course Prefix: ELEG Course No.: 3063 Sections: 01 & 02 Department of Electrical and Computer Engineering College of Engineering Instructor Name: Justin Foreman Office Location:

More information

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis

Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis Advanced Logic Design Techniques in Asynchronous Sequential Circuit Synthesis Charles R. Bond http://www.crbond.com c 1990 2013, All rights reserved. Contents I Synthesis Methods 4 1 Development of Methods

More information

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse. DIGITAL COUNTERS http://www.tutorialspoint.com/computer_logical_organization/digital_counters.htm Copyright tutorialspoint.com Counter is a sequential circuit. A digital circuit which is used for a counting

More information

EE360: Digital Design I Course Syllabus

EE360: Digital Design I Course Syllabus : Course Syllabus Dr. Mohammad H. Awedh Fall 2008 Course Description This course introduces students to the basic concepts of digital systems, including analysis and design. Both combinational and sequential

More information

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course Session ENG 206-6 Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course Nikunja Swain, Ph.D., PE South Carolina State University swain@scsu.edu Raghu Korrapati,

More information

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1) IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1) Elena Dubrova KTH / ICT / ES dubrova@kth.se BV pp. 584-640 This lecture IE1204 Digital Design, HT14 2 Asynchronous Sequential Machines

More information

Two-level logic using NAND gates

Two-level logic using NAND gates CSE140: Components and Design Techniques for Digital Systems Two and Multilevel logic implementation Tajana Simunic Rosing 1 Two-level logic using NND gates Replace minterm ND gates with NND gates Place

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: igital Circuits Chapter 7 Sequential Elements r. Curtis Nelson Sequential Elements In this chapter you will learn about: circuits that can store information; Basic cells, latches, and flip-flops;

More information

Digital Controller for Pedestrian Crossing and Traffic Lights

Digital Controller for Pedestrian Crossing and Traffic Lights Project Objective: - To design and simulate, a digital controller for traffic and pedestrian lights at a pedestrian crossing using Microsim Pspice The controller must be based on next-state techniques

More information

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576 exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576 Outline exclusive OR gate (XOR) Definition Properties Examples of Applications Odd Function Parity Generation and Checking

More information

Fig1-1 2-bit asynchronous counter

Fig1-1 2-bit asynchronous counter Digital electronics 1-Sequential circuit counters Such a group of flip- flops is a counter. The number of flip-flops used and the way in which they are connected determine the number of states and also

More information

CSE140: Components and Design Techniques for Digital Systems

CSE140: Components and Design Techniques for Digital Systems CSE4: Components and Design Techniques for Digital Systems Tajana Simunic Rosing What we covered thus far: Number representations Logic gates Boolean algebra Introduction to CMOS HW#2 due, HW#3 assigned

More information

Chapter 5. Sequential Logic

Chapter 5. Sequential Logic Chapter 5 Sequential Logic Sequential Circuits (/2) Combinational circuits: a. contain no memory elements b. the outputs depends on the current inputs Sequential circuits: a feedback path outputs depends

More information

Digital Logic Elements, Clock, and Memory Elements

Digital Logic Elements, Clock, and Memory Elements Physics 333 Experiment #9 Fall 999 Digital Logic Elements, Clock, and Memory Elements Purpose This experiment introduces the fundamental circuit elements of digital electronics. These include a basic set

More information

Sequential Logic: Clocks, Registers, etc.

Sequential Logic: Clocks, Registers, etc. ENEE 245: igital Circuits & Systems Lab Lab 2 : Clocks, Registers, etc. ENEE 245: igital Circuits and Systems Laboratory Lab 2 Objectives The objectives of this laboratory are the following: To design

More information