MODULE 3. Combinational & Sequential logic

Size: px
Start display at page:

Download "MODULE 3. Combinational & Sequential logic"

Transcription

1 MODULE 3 Combinational & Sequential logic Combinational Logic Introduction Logic circuit may be classified into two categories. Combinational logic circuits 2. Sequential logic circuits A combinational logic circuit contains logic gates only but does not contain storage elements. A sequential logic circuit contains storage elements in addition to logic gates. When logic gates are connected together to give a specified output for certain specified combination of input variables, with no storage involved, the resulting network is known as combinational logic circuit. In combinational logic circuit the output level is at all times dependent on the combination of input level. The block diagram is shown INPUT VARIABLES Combinational logic circuit (Logic gates only) OUTPUT VARIABLES The combinational logic circuit with memory elements(s) is called sequential logic circuit. It consists of a combinational circuit to which memory elements are connected to form a feed back path. The memory elements are devices, capable of storing binary information within them. The block diagram is shown. External Inputs Combinational Circuit Outputs from Combinational circuit Memory Elements Outputs from Memory elements By block diagram, it can be said that the output(s) of sequential logic circuit is (are) dependent not only on external input(s) but also on the present state of the memory element(s). The next state of the memory element(s) is also dependent on external input and the present state. Applications Logic gates find wide applications in Calculators and computers, digital measuring techniques, digital processing of communications, musical instruments, games and domestic appliances etc, for decision making in automatic control of machines and various industrial processes and for building more complex devices such as binary counters etc.

2 2 DESIGN OF COMBINATIONAL CIRCUITS The design of combinational circuits starts from the verbal outline of the problem and ends in a logic circuit diagram. The procedure involves the following steps:. State the given problem completely and exactly 2. Interpret the problem, and determine the available input variables and required output variables. 3. Assign a letter symbol to each input and output variables. 4. Design the truth table, which defines the required relations between inputs and outputs. 5. Obtain the simplified Boolean expression for each output. 6. Draw the logic circuit diagram to implement the Boolean expression. ARITHMETIC CIRCUITS One essential function of most computers and calculators is the performance of arithmetic operations. The logic gates designed so far can be used to perform arithmetic operations such as addition, subtraction, multiplication and division in electronic calculators and digital instruments. Since these circuits are electronic, they are very fast. Typically an addition operation takes less than µs. We will now study some of the basic arithmetic circuits. HALF ADDER A Logic circuit used for the addition of two one bit numbers is referred to as a half-adder. From the verbal explanation of a half adder, we find that this circuit needs two binary inputs and two binary outputs. The input variables designate the augend and addend bits; the output variables produce the sum and carry. We assign the symbols A and B to the two inputs and S (for sum) and C (for carry) to the outputs. The truth table for the half-adder is shown below. Inputs Outputs A B S C Here the C output is only when both inputs are. The S output represents the least significant bit of the sum. The logic expression for the sum output can be obtained from the truth table. It can be written as a SOP expression by summing up the input combinations for which the sum is equal to. In the truth table, the sum output is for A B and AB. Therefore, the expression for the sum is S = A B + AB = A B. Similarly, the logic expression for carry output can be written as a SOP expression by summing up the input combinations for which the carry is equal to. In the truth table, the carry is for AB. Therefore C = AB This expression for C cannot be simplified. The sum output corresponds to a logic Ex-OR function while the carry output corresponds to an AND function. So the half-adder circuit can be implemented using Ex-OR and AND gate as shown below.

3 3 A Inputs B HALF ADDER S Outputs C Logic Circuit Logic Symbol This circuit is called Half-Adder, because it cannot accept a CARRY-IN from previous additions. This is the reason that half adder circuit can be used for binary addition of lower most bits only. For higher order columns we use a 3-input adder called full-adder. FULL ADDER A combinational logic circuit for adding thee bits. As seen, a half-adder has only two inputs and there is no provision to add carry coming from the lower bit order when multi bit addition is performed. For this purpose we use a logic circuit that can add three bits, the third bit is the carry from the lower column. This implies that we need a logic circuit with 3 inputs and 2 outputs. Such a circuit is called a full adder. The truth table for the full-adder is as shown below. Inputs Outputs A B C in S C out As shown there are 8 possible input combinations for the three inputs and for each case the S and C out values are listed. From the truth table, the logic expression for S can be written by summing up the input combinations for which the sum output is as: S = A B C in + A BC in + AB C in + ABC in = A (B C in + BC in ) + A(B C in + BC in ) = A (B C in )+ A(B C in ) Let B C in = X C in AB A B A B AB AB Now, S = A X + AX = A X Replacing X in the above expression we get S = A B C in Similarly the logic expression for C out can be written as C out = A BC in + AB C in + ABC in + ABC in = BC in + AC in + AB (using the map shown) C C

4 From the simplified expressions of S and C the full adder Circuit can be implemented using two 2-input XOR gates, Three 2 input AND gates and one 3-input OR gate a shown below fig (a). The logic symbol is also shown as fig (b). 4 A B C in BC in AC in CARRY A CARRY, C out AB B FULL ADDER SUM C in SUM, S Logic circuit diagram fig(a) Logic Symbol Fig(b). The logic symbol has two inputs A and B plus a third input C in called the Carry-in and two outputs SUM and the Carry called Carry out, C out going to the next higher column.. A full adder can be made by using two half adders and an OR gate as shown below FULL ADDER A B C in HA A.B A B=D HA D.C in CARRY, C out SUM, S D C in Binary Adders 2-bit Parallel Adder MSB As we have seen a single full-adder is capable of adding two one-bit numbers and an input CARRY. For addition of binary numbers with more than one bit, additional full adders will be required. When two binary numbers are added, each column generates a sum and a Carry ( or ) to the next higher-order adder, Column as shown for a two bit adder. It is to be noted that

5 either a half-adder can be used for the LSB position or the CARRY input of a full-adder is made zero because there is no CARRY into the LSB bit position. In the figure, the LSB of the two numbers are represented by X and Y. The next higher order bits are represented by X and Y. 4-bit parallel adder 5 MSB This circuit shows a 4-bit binary parallel adder circuit. The LSBs in each number being added (operands) go into the right-most full-adder; the high order bits are applied to the successively higher-order adders, with the MSBs in each number being applied to the left most full adder. The CARRY output of each adder is connected to the CARRY input of the next higher order adder. The full adder circuit used in each position has three inputs: an X bit, a Y bit and a C IN bit and it produces two outputs: a SUM bit and CARRY OUT bit. For example the left most full-adder has inputs X, Y, and C and it produces output S and C. This arrangement is repeated for as many positions as there are in the augend and addend. Although this illustration is for 4-bit numbers, in modern computers the number usually ranges from 8 to 64 bits. The arrangement shown is called a parallel adder because all the bits of the augend and addend are present and are fed into the adder circuit simultaneously. This means that the additions in each position are taking place at the same time. This is different from how we add on paper, taking each position one at a time with LSB. Parallel addition is therefore extremely fast. The Half Subtractor A logic circuit that subtracts Y (subtrahend) from X(minuend), where X and Y are -bit numbers, is known as a half-subtractor. It has two inputs X (minuend) and Y (subtrahend) and two outputs D (difference) and B (borrow), as shown in the block diagram. X Y HS D B The operation of this logic circuit is based on the rules of binary subtraction given in the truth table reproduced on the basis of the subtraction process. Inputs Outputs X Y D B

6 The difference output in the third column has the same logic pattern as when X is XORed with Y (same as in the case of sum). Hence an Ex-Or gate can be used to give difference of two bits. The borrow output in the 4 th column can be obtained by using a NOT gate and AND gate, as shown in the circuit diagram below. 6 The logical equations for the difference D and borrow B are given as D = X Y + XY = X Y. B = X Y 4 bit Adder Subtractor The 4 bit parallel binary adder/subtractor circuit shown below performs the operations of both addition and subtraction. It has two 4 bit inputs A 3 A 2 A A and B 3 B 2 B B. the Sel (ADD /SUB) control line connected with the C of the LSB of the full-adder, is used to perform the operations of addition and subtraction. The Ex-OR gates are used as controlled inverters. When Sel= the circuit is an adder and when Sel=, the circuit becomes a subtractor. Each Ex-OR gate receives input Sel and one of the inputs of B. When Sel=, we have B =B. The full-adders receive the value of B, the input carry = and the circuit performs A plus B. When Sel=, we have B =B and C =. The B inputs are all complemented and is added through the input carry. The circuit performs the operation A plus the 2 s complement of B. (The exclusive OR with output V is for detecting an overflow.)

7 MULTIPLEXERS A multiplexer or data selector is a logic circuit that accepts several data inputs and allows only one of them at time to get through the output. In other words, the multiplexer works like the input selector of a home music system. Only one input is selected at a time, and the selected input is transmitted to the single output. While on the music system, the selection of the input is made manually, the multiplexer chooses its input based on a binary number, the address input. The basic multiplexer, then, has several data-input lines and a single output line. It has also data-select inputs or control signals that permit digital data on any of the inputs to be switched to the output line. A general multiplexer (MUX) with n input ignals, m data select inputs or control signals and one output signal is shown in the figure. 7 m CONTROL SIGNALS n INPUT SIGNALS MUX OUTPUT SIGNAL The multiplexer (MUX) acts like a digitally controlled multi position switch where the digital code applied to the SELECT inputs determines which data inputs will be switched to the output. The functional diagram of a 2 to multiplexer is shown below: Here the input signal I will be obtained at the out put when the select signal is equal to and the signal I appears at the output when the select signal is. So the MUX selects in this case one out of the 2 input data sources and transmits the selected data to a single output channel. This is called multiplexing. Now let us consider a multiplexer with 4 input signals, 2 control signals and one output signal.

8 8 A multiplexer of this type is known as a four to one multiplexer because of its 4 inputs and output. The circuit diagram of a 4-t- multiplexer is shown. Here there are 4 input bits (D to D 3 ), and two control signals (A and B). Now by controlling the level of control signals A and B, any data bit can be transmitted to the output Other 4-to- multiplexers Consider that the control inputs A and B are supplied with low level of control signals. Now the inputs I and I 2 of only AND gate A is high. If data bit D is low then output of AND gate A is low and if data bit D is high then output of AND gate A is high. So it can be said that when AB=, it makes only AND gate A enabled and only data bit associated with this gate is transferred to the output. All the other AND gates are disabled and data bits associated with them cannot be transferred to the output. So outputs of all AND gates except A remains low.

9 Output of OR gate, Z depend only on the output of AND gate A (because only AND gate A is enabled) so ultimately value of output Z depends only on the value of D. 9 Data Select Inputs Input Selected Input Output A B D D Z D D D 2 D 3 Now consider that AB=. It makes AND Gate A 2 enabled and all other gates disabled. In this condition data bit D is transferred to the output z. Truth table of a four-to-one multiplexer is shown. If n is the number of control signals in a Multiplexer, the maximum number of input Signals that can be controlled by it = 2 n. 6-to- multiplexer with 4 control lines is available in the form of IC. 8 to Multiplexer It has 8 inputs and one output. In the logic symbols there are three select inputs S, S and S 2 which selects one of the eight inputs. The truth table of 8: multiplexer is shown below. Select Lines Outputs S 2 S S Z D D D 2 D 3 D 4 D 5 D 6 D 7 In this truth table, for each input combination, output is not specified as s and s. Multiplex being a data switch does not generate a data of its own, but it simply passes external input data from the selected input to the output. Figure below shows a logic diagram of 8 to multiplexer.

10 Applications of Multiplexers Multiplexer circuits find numerous applications in digital systems. Some of the fields where multiplexing find immense use are data selection, data routing, operation sequencing, parallel to serial conversion, wave form generation and logic function generation. DEMULTIPLEXERS The word de-multiplex means one into many. A multiplexer takes several inputs and transmits one of them to the output as stated before. A de-multiplexer performs the reverse operation. That is it takes a single input and distributes it over several outputs.by applying control signals, the input signal can be steered to one of the output lines. A de-multiplexer with on input signal, m control signals and n output signals is shown below. The de-multiplexer is also called a Distributer or a serial-to-parallel converter. INPUT SIGNAL DE MUX n OUTPUT SIGNALS m CONTROL SIGNALS

11 The functional diagram for a de-multiplexer (DEMUX) is shown below. This shows a -to-2 de-multiplexer. This contains input and 2 outputs and one control line. The select input code determines to which output the DATA input will be transmitted. It means, the de-multiplexer takes one input data source and selectively distributes it to of n output terminals just like a multi-position switch. to 4 De-multiplexer Let us consider a de-multiplexer with input signal, 2 control signals and 4 output signals to explain, how input signal is transmitted to any of the outputs by control signals. This type of de-multiplexer is called one-to-four de-multiplexer because it has input and 4 outputs. Truth table for -to-4 de-multiplexer Select lines Input Output lines S S I F 3 F 2 F F The circuit diagram for a -to-4 de-multiplexer is shown below.

12 2 Here the data bit is I and the control signals are S and S. Now by controlling the level of control signals S and S input data I can be transmitted to any of the outputs. The AND gates connected to F, F, F 2 and F 3 are made enabled and disabled by changing the level of control signals. to 8 De-multiplexer The circuit diagram and truth table of a one to-eight de-multiplexer is shown below Select Lines Output Lines a 2 a a x x x 2 x 3 x 4 x 5 x 6 x 7 d d d d d d d d

13 3 DECODERS De-multiplexer with out any input. A decoder decodes the coded input signal into an active output signal. A decoder is similar to a de-multiplexer, with one exception there is no data input. Inputs for the decoder are the control signals. Most digital systems require the decoding of data. Decoding is necessary in applications such as data de-multiplexing, digital display, digital-toanalog converters and memory addressing. A decoder is logic circuit that converts an n-bit binary input code (data) into 2 n output lines, such that each output line will be activated for only one of the possible combinations of inputs. In a decoder, the number of output is greater than the number of inputs. It is important to note that if the number of inputs and outputs are equal in a digital system then it can be called Converters. 2 to 4 Decoder Figure shows the circuit diagram and truth table of a 2-to-4 line decoder which is the simplest one. The example decoder circuit would be an AND gate because the output of an AND gate is "High" () only when all its inputs are "High." Such output is called as "active High output". If instead of AND gate, the NAND gate is connected the output will be "Low" () only when all its inputs are "High". Such output is called as "active low output". 3 to 8 Decoder A 3-to-8 decoder has three inputs (A,B,C) and eight outputs (D to D 7 ). Based on the three inputs, one of the 8 outputs is selected. The truth table for the 3-to-8 decoder is shown below. INPUTS OUTPUTS A B C D D D 2 D 3 D 4 D 5 D 6 D 7

14 From the above truth table, it is clear that only one of the 8 outputs is selected based on the 3 select inputs. Also from the truth table, the logic expressions for the outputs can be written as follows: D = A B C ;D = A B C;D 2 = A BC ;D 3 = A BC;D 4 = AB C ;D 5 = AB C; D 6 = ABC ; D 7 = ABC Using the above expressions, the circuit of a 3-to-8 decoder can be implemented using three NOT gates and eight 3-input AND gates as shown. A B C 4 Enable D 7 D 6 D 5 D 4 D 3 D 2 D D The 3 inputs A, B, and C are decoded into eight outputs, each output representing one of the minterms of the 3 input variables. The three inverters provide the complement of the inputs and each one of the 8 AND gates generate one of the minterms. This decoder can be used for decoding any 3-bit code to provide 8 outputs, corresponding to 8 different combinations of the input code. This is also called a -to-8 decoder, since only one of eight output lines is HIGH for a particular input combination. For example, when ABC=, only the AND gate-2 has HIGH at all its inputs, and there fore D 2 =HIGH. Similarly if ABC=, only the AND gate-6 has all its inputs in HIGH state, and thereby D 6 =HIGH. It is also called a binary-to-octal decoder since the inputs represent three bit binary numbers and the outputs represent the eight digits in the octal number system. Enable inputs Some decoders have one or more enable inputs which are used to control the operation of the decoder. With the enable line held Low, the decoder functions normally and the input code A, B, and C will determine which output is HIGH. Hence, this decoder is enabled only if the enable line is LOW. The block diagram of a 3-to-8 decoder IC 7442 is as shown below

15 5 4-to-6 Decoder A decoder with 4 input lines and 6 output lines is shown in the figure. This is called a 4 to-6 decoder. This is also called one-of-sixteen decoder because only one of the 6 Lines is HIGH at a time for the particular Value of input signals. Let us consider the case when ABCD=, Then only AND gate with output Z has all Inputs high and so only the output Z is high. Consider another case when ABCD=, Then only AND gate with output Z 5 has all Inputs high and so only the output Z 5 is high. Consider one more case when ABCD= Then only AND gate with output Z 5 has all Inputs high and so only the output Z 5 is high. From the above discussion and after considering all other cases of possible values of ABCD (from to ) it is found that subscript of a high output gives the hexadecimal equivalent of binary number ABCD. So the circuit is also called a binary-to hexadecimal decoder since the inputs represent four bit binary number and the outputs represent the 6 digits in the hexadecimal number system.

16 6 The truth table is shown below. Decimal digit Binary Inputs Logic Function Outputs D C B A D C B A D C B A D C BA D C BA D CB A D C B A D C BA D C B A DC B A D C B A D C B A D C B A D CB A D CB A D C BA D C B A The 4-to-6 decoder is also called a -of-6 decoder, since only one of 6 outputs is selected based on a particular input combination. The circuit can also be used to give a BCD-to- decimal decoder. In this case only AND gates Z to Z 9 are used, which represent the decimal numbers to 9 and all other AND gates are removed from the circuit. Values of input signal ABCD are changed from (BCD of decimal digit ) to (BCD equivalent of decimal digit 9). This circuit has outputs and only one output is high at a time, so it is also called a - of- decoder. Applications of decoders. Decoders are used in counter systems 2. They are used in analog-to-digital converters. 3. Decoder outputs can be used to drive a display system.(ic 7446/7447 and IC 7448/7449 are BCD-to- seven segment decoders) ENCODERS An Encoder is a digital circuit that performs the inverse operation of a decoder. Hence the opposite of the decoding process is called encoding. An encoder converts an active input signal into a coded output signal. The block diagram is shown below. n Inputs m Outputs It has n input lines and m output lines. At a time only one of the input lines is active. Internal logic within the encoder converts this active input to a coded binary output with m bits.

17 7 Decimal-to-BCD encoder One of the most commonly used input device for a digital system is a set of ten switches, one for each numeral. These switches generate or logic Levels in response to turning them ON or OFF. When a particular number is to be fed to the digital circuit in BCD code, the switch corresponding to that number is pressed. There is an IC available to perform this function (7447). The truth table for this encoder is shown below. INPUTS OUTPUTS b 4 b 3 b 2 b When switch is pressed, all OR gates are inactive and so output by b 4 b 3 b 2 b is which is the BCD equivalent of digit. When switch is pressed, the OR gate is active and so output by b 4 b 3 b 2 b is which is the BCD equivalent of digit. In the same way when switch 7 is pressed OR gates 3, 2 and are active, so output b 4 b 3 b 2 b is which is again the BCD equivalent of digit 7.

18 8 Octal-to-binary encoder Another example of an encoder is the octal-to-binary encoder whose truth table is shown below. INPUTS OUTPUTS D D D 2 D 3 D 4 D 5 D 6 D 7 y 2 y y An octal-to-binary encoder accepts eight inputs and produces a 3 bit output code corresponding to the activated input. The truth table shows that Y (LSB of output code) must be whenever the input D OR D 3 OR D 5 OR D 7 is HIGH. Thus Y = D + D 3 + D 5 + D 7 Similarly Y = D 2 + D 3 + D 6 + D 7 Y 2 = D 4 + D 5 + D 6 + D 7 Using the above expressions, the octal-to-binary encoder can be implemented using three 4- input OR gates as shown below. The circuit is designed in such a way that, when D is HIGH, the binary code is generated. When D is HIGH, the binary code is generated, and so on. The design is made simple by the fact that only eight out of the total of 2 8 possible input conditions are used.

19 SEQUENTIAL LOGIC 9 Sequential circuits The digital circuits discussed so far have been combinational, where the outputs are entirely dependent on the current inputs. Although every digital system is likely to have combinational circuits, most systems encountered in practice also include storage elements, which require that the system be described in terms of sequential logic. A block diagram of a sequential circuit is shown below. Inputs Combinational circuit Memory elements Outputs It consists of a combinational circuit to which storage elements are connected to form a feed back path. The storage elements are devices capable of storing binary information. The binary information stored in these elements at any given time defines the state of the sequential circuit at that time. The sequential circuit receives binary information from external inputs. These inputs, together with the present state of the storage elements, determine the binary value of the outputs. They also determine the condition for changing the state in the storage elements. From the block diagram we can see that the outputs in a sequential circuit are a function not only of the inputs, but also of the present state of the storage elements. The next state of the storage elements is also a function of external inputs and the present state. Thus, a sequential circuit is specified by a time sequence of inputs, outputs, and internal states. Combinational circuits are often faster than sequential circuits since the combinational circuits do not require memory elements where as the sequential circuits need memory devices to perform their operations in sequence. However, modern digital computers must have memories to function properly. Thus, sequential circuits are of prime importance in modern digital devices. Types of Sequential circuits Sequential circuits are classified in two main categories depending on timing of their signals.. Synchronous or clocked sequential circuits 2. Asynchronous or un-clocked sequential circuits. Synchronous or clocked sequential circuits A sequential circuit whose behavior can be defined from the knowledge of its signals at discrete instants of time is referred to as a synchronous sequential circuit. In such circuits, the memory elements are affected only at discrete instants of time. The synchronization is obtained by a timing device, called a system clock (or a master-clock generator) which generates a periodic train of clock pulses. The outputs are affected only with the application of clock pulse. Asynchronous or un-clocked sequential circuits. A sequential circuit whose behavior depends upon the sequence in which the input signals change is referred to as an asynchronous sequential circuit. The output is affected whenever there is a change in the inputs. The commonly used memory elements in such circuits are time delay devices. These circuits may be regarded as combinational circuits with feed back. These circuits are faster than synchronous sequential circuits. However, in an asynchronous circuit, events are allowed to occur without any synchronization. In such a case,

20 the system becomes unstable which results in difficulties. To have a sequential circuit, a storage device is required to know what has happened in the past. The basic unit of storage is the flip flop. FLIP FLOPS Also called as LATCH. The simplest kind of sequential circuit is a memory cell that has only two states. It can be either a or. Such two state sequential circuits are called flip-flops because they flip from one state to another and then flop back. A flip-flop is also known as bistable multivibrator, latch or toggle. The general block diagram representation of a flip-flop is shown below. Input Q Normal output Q Inverted output It has one or more inputs and two outputs Q and Q. The two outputs are complementary to each other; if Q= i.e. Reset, then Q =; if Q= i.e. Set, then Q =. When the flip-flop output Q= or, it will remain in that stable state until one or more of the inputs are excited to effect a change in the output. Since the flip flop output will remain set/reset until the trigger pulse is given to change the state, it can be regarded as a memory device to store one binary digit. Types of Flip-Flops Flip-Flops are of different types depending on how their inputs and clock pulses cause transition between two states. There are 4 basic types. S R (Set-Reset)/R-S flip flop 2. J-K flip-flop 3. D (delay)flip-flop 4. T (trigger or Toggle)flip-flop R-S Flip-Flop The S R flip flop has two inputs, namely SET (S) and RESET (R), and two outputs Q and Q. The two outputs are complement to each other. The R-S flip-flop can be easily implemented using NOR gates or NAND gates. The block diagram of an S-R flip-flop is as shown below. 2 R Q S Q NOR based R S flip-flop (Reset) (set)

21 The S-R flip-flop can be easily constructed using two NOR gates connected back to back as shown in the figure above. The cross-coupled connections from the output of one gate to the input of the other gate constitute a feed back path. For this reason, the circuits are classified as asynchronous sequential circuits. The truth table for the NOR based S-R flip-flop is shown below. Inputs Outputs Action S R Q Q 2 Q? Q? No change Reset Set Forbidden To analyze the circuit one must remember that the out put of a NOR gate is zero if any input is and the output is only when all the inputs are zero. From the truth table it is evident that four possible input combinations exist for the S-R flip-flop. The outputs for these four possible input combinations are described below. Case For S= and R=, the flip-flop simply remains in its present state (Q). Case 2 The second input condition is S= and R=. The at the RESET input forces the Output of NOR gate LOW (i.e. Q= ). Now both the inputs of the NOR gate 2 are and and its output Q =. Thus the input condition S= and R= will always RESET the flip-flop to. The flipflop will remain in the state till the RESET input returns to. Case 3 The third input condition is S= and R=, which forces the Output of NOR gate 2 LOW (i.e. Q = ). Now both the inputs of the NOR gate are and and the output of NOR gate is HIGH, i.e. Q=. Thus the input condition S= and R= will always SET the flip-flop to. Case 4 The last input condition is S= and R=. This condition will produce at the output of both the NOR gates. Hence Q= and Q =. This condition violates the fact that the outputs Q and Q are the complements of each other. In normal operation, this condition must be avoided by making sure that s are applied to both inputs simultaneously. NAND based R S flip-flop NAND gates instead of NOR gates may also be used to form a R-S flip-flop. Circuit diagram, symbol and truth table for such a flip-flop are shown below. S (set) Q R (reset) Q

22 22 The operation of NAND S -R flip-flop can be analyzed in the same manner employed for the NOR flip-flop. To under stand the operation of NAND based S -R flip-flop, one must remember that a low at any input of a NAND gate will force its output high. The truth table for the NAND based S -R flip-flop is different from that of a NOR based S-R flip-flop. This flipflop is called S -R flip-flop, i.e. here S = and R = will set the flip-flop. Case The first condition is S = and R =. When both inputs go to zero, both outputs go to, i.e. Q= and Q =. this condition is ambiguous and should not be used. Case 2 The condition is S = and R = always produces Q= regardless of the present state of the flip-flop output. This condition sets the states of the flip-flop. Case 3 The condition S = and R = forces the lower NAND gate output to, i.e. Q =. Now, both the inputs of upper NAND gate are, and therefore the output of the upper NAND gate is LOW i.e. Q=., regardless of the prior state of the flip-flop. This condition resets (clear) the flip-flop i.e. Q= and Q =. Case 4 The last condition S = and R = does not affect the state of the flip-flop. It remains in its prior state. Comparing the NAND flip-flop and the NOR flip-flop, we see that they operate basically in the same manner except for the following difference: The NOR flip-flop inputs are normally and must be pulsed to state (active HIGH) to change the state of the flip-flop outputs; the NAND flip-flop inputs are normally and must be pulsed to (active LOW) to change the flipflop output state. CLOCKED R-S flip-flop Inputs Outputs Action S R Q Q? Q? Q Forbidden Set Reset No change The R-S flip-flop that we have seen is an asynchronous sequential logic circuit. In such a circuit the output changes immediately with the change in its input signal. When two input signals R and S are applied to a circuit, there is a time delay between these two signals, which may lead to a wrong output result. In order to overcome this problem of unequal propagation delay time of input signals, the circuit of R-S flip-flop is modified as shown below.

23 23 Inputs Next state of Q C S R X X No change No change Q=; Reset state Q=; Set state Intermediate In this circuit, two AND gates and a clock pulse train input are also added to the R-S flipflop circuit. This circuit is so called as the clocked R-S flip-flop circuit. Clock supplies the low and high levels of signal to AND gates C and D regularly. When clock signal is at low level, AND gates C and D are disabled so at this time, input signals R and S cannot be transferred to the NOR gates A and B, and therefore, NOR gates A and B, simply behave as a simple latch circuit, holding the previous values of signal at output. The use of the clock train pulses accordingly serves the important function of synchronizing the operations that takes place in digital sequential circuits. They avoid problems posed due to unequal propagation delay time associated with gates. When the clock signal is present (or at high level) AND gates C and D are enabled, so at this time, input signals R and S are transferred to NOR gates and output Q is changed accordingly. In summery, it can be said that there are three input signals R, S and Clock signal (CLK) which influences the output of flip-flop. Now signal is applied to the input R and S when clock (CLK) signal is low, so output does not change with the change in input. When CLK signal becomes HIGH this input signal changes the output of the flip-flop according to the truth table. So this way input signal is applied to the flip-flop at the same time and problem of unequal propagation time of the input signal is eliminated. Clocked R-S flip-flop circuit is a synchronous sequential logic circuit because output state of the circuit changes at discrete clocked instant of time. The D Flip-Flop In a clocked R-S flip-flop two input signals are required to drive the flip-flop which is a disadvantage with many digital circuits. In some events, both the input signals become high which is again an undesirable condition. So these drawbacks of clocked R-S flip-flop are overcome in D (delay) flip-flop. It is nothing but a clocked R-S flip-flop with an inverter in the R input. The added inverter reduces the number of inputs from two to one. Some times, this type of flip-flop is called a gated D-latch. The logic diagram, circuit diagram and symbol for D- flip-flop are shown below. Fig (a) symbol

24 24 D flip-flop using NAND circuit diagram D S Q CLK CLK R Q The operation can be explained using the truth table. CLK Input D Output Q x No change. When the CLK input is low, the D input has no effect, since the set and reset inputs of the NAND flip-flop are kept HIGH. 2. When the CLK goes high, the Q output will take on the value of the D input. If CLK= and D= the output Q=, i.e. it follows D input. Similarly, for CLK= and D= the flip-flop output will be. If D changes while the CLK is HIGH, Q will follow and change quickly. So D flip-flop transfers the data bit D to Q as it is, and Q remains in the same state until the next pulse of clock arrives. Since the transfer of data from the input to the output is delayed, the flip-flop is named delay (D) flip-flop. The D flip-flop is either used as a delay device or as a latch to store bit of binary information. The J K Flip-Flop (Edge-Triggered) The J-K flip-flop is very versatile and is perhaps the most widely used type of flip-flop. The J and K designations for the inputs have no known significance except that they are adjacent letters in the alphabet. The functioning of J-K flop-flop is identical to that of the R-S flip-flop in RESET, SET, and no change conditions of operation. The difference is that the J-K flip-flop has no invalid state as does the R-S flip-flop. Therefore, the J-K flip-flop is a very versatile device that finds wide application in digital devices such as counters, registers, arithmetic logic units, and other digital systems. In J-K flip-flop clocked R-S flip-flop along with two AND gates are used. Q A Q A 2

25 In this circuit J and K are used as input terminals and replace input terminals S and R of the S-R flip-flop respectively. Input terminal S is supplied by AND gate A to which input signals are J and flip-flop output Q. Input terminal R is supplied by gate A 2 to which K and Q are the input signals. The purpose of additional gates A and A 2 is to provide a convenient means by which the signals that are made to appear at S and R terminals are dependent not only on the input signals but also on the state of the flip-flop as well. Output state of the flip-flop remains the same when clock signal is low. But when the clock pulse arrives, input signals J and K change the output of the flip-flop. Let us consider all four combinations of input signals. 25 CLK Inputs Output X J K Q n+ Q n Q n Action No change Reset Set Toggle Case : When clock signal is high and both input signals J and K are low then both AND gates A and A 2 are disabled and there is no change in the output state of the flip-flop. Case 2: When input J is held at logic and input K is held at logic. In this case AND gate A is disabled and condition of AND gate A 2 depends on the output state Q n of the flip-flop. If Q n is low then and gate A 2 is also disabled and output state of flip-flop Q n+ remains the same as before. If Q n is high then and gate A 2 is enabled and high logic signal goes to R terminal which changes the output state Q n+ of flip-flop from high to low. So low signal at J and high signal at K input terminals reset the flip-flop irrespective of output state of flip-flop before the arrival of clock pulse. Case 3: When input J is held at logic and input K is held at logic. In this case AND gate A 2 is disabled and condition of AND gate A depends on the output state Q n of the flip-flop. If Q n is high (or Q is low) then and gate A is also disabled and output state of flip-flop Q n+ remains the same as before. If Q n is low (or Q is high) then and gate A is enabled and high logic signal goes to S terminal which changes the output state Q n+ of flip-flop from low to high. So high signal at J and low signal at K input terminals set the flip-flop irrespective of the output state of flip-flop before arrival of clock pulse. Case 4: When both input signals J and K are held at logic. In this case condition of both AND gates depends on the output state of the flip-flop before arrival of clock pulse. Suppose Q n is high then it makes and gate A 2 enabled, which sends high level signal to the input terminal R at the arrival of the clock pulse and flop-flop gets reset. Now Suppose Q n is low then it makes and gate A enabled, which sends high level signal to the input terminal S at the arrival of the clock pulse and flop-flop gets set. Hence it can be said that in this case the output state of the flip-flop toggles when fresh clock pulse arrives each time.

26 Master Slave J K Flip-Flop 26 This is also known as Pulse Triggered. The term pulse-triggered means that the data are entered into the flip-flop on the leading edge of the clock pulse. A master-slave J-K flip-flop can be constructed using two J-K flip-flops as shown below. Q Master Slave Q The first flip-flop, called the master, is driven by the positive edge of the clock pulse; the second flip-flop called the slave, is driven by the negative edge of the clock pulse. Therefore, when the clock input has a positive edge, the master acts according to its J-K inputs, but the slave does not respond since it requires a negative edge at the clock input. When the clock input has a negative edge, the slave flip-flop copies the master outputs. But the master does not respond to the feedback from Q and Q, since it requires a positive edge at its clock input. A master-slave J-K flip-flop constructed using NAND gates is shown in the figure It consists of two flip-flops connected in series. The first set of 4 NAND gates form the master flip-flop and the second set from the slave flip-flop. When the clock is positive, a change in J and IK inputs cause a change of state in the master flip-flop. During this period, the slave retains its previous state and serves as a buffer between the master and the output. When the clock goes negative, the master flip-flop does not respond, i.e. it maintains its previous state, while the slave flip-flop is enabled and changes its state to that of the master flip-flop. The new state of the slave then becomes the state of the entire master-slave flip-flop. The operation of master-slave J-K flip-flop for different J-K input combinations can be explained as follows: If J= and K=, the master flip-flop sets on the positive clock edge. The HIGH Q output of the master drives the input J of the slave. So, when the negative clock edge hits, the slave also sets. The slave flip-flop copies the action of the master flip-flop. If J= and K=, the master flip-flop resets on the leading edge of the clock pulse. The HIGH Q output of the master drives the input K of the slave. Then, the slave flip-flop resets at the arrival of the trailing edge of the CLK pulse. Once again, the slave flip-flop copies the action of the master flip-flop.

27 If J=K=, the master flip-flop toggles on the positive clock edge and the slave toggles on the negative edge. The condition J=k= input does not produce any change. Master-slave flip flops operate from a complete clock pulse, and the outputs change on the negative mission. T Flip-Flop This flip-flop is basically a J-K flip-flop. This is also called Trigger or Toggle flip-flop. This has only a single data input(t), a clock input and two outputs Q and Q. The T-type flipflop is obtained from a J-K flip-flop by connecting its J and K inputs together. The designation T comes from the ability of the flip-flop to toggle or complement its state. The block diagram of a T-flip-flop and its circuit implementation using J-K flip-flop are shown below. 27 The J and K inputs are wired together. The truth table is also shown. When the T input is in the state (i.e. J=K=) prior to a clock pulse the Q output will not change with clocking. When the T input is at a (i.e. J=K=) level prior to clocking, the output will be in the Q state after clocking. In other words, if the T input is a logical and the device is clocked, the output will change state regardless of what output was prior to clocking. This is called toggling hence the name T flip-flop. The truth table shows that when T=, then Q n+ =Q n,i.e. the next state is the same as the present state and no change occurs. When T=, then Q n+ =Q n,i.e. the state of the flip-flop is complemented. Application of T- flip-flop T-flip flop is most often seen in counters and sequential counting networks because of its inherent divide-by-2 capability. When a clock pulse is applied the output changes state once in every input cycle, thus repeating one cycle for every two input cycles. This is the action required in many cases for binary counters. REGISTERS Sequential circuit and an important building block used in digital systems like multipliers, dividers, memories, microprocessors etc. A register is a group of flip-flops. Each flip-flop is capable of storing bit of information. An n-bit register consists of a group of n-flip-flops capable of storing n-bits of binary information. In addition to the flip-flops a register may have combinational gates that perform certain data processing tasks. A register consists of a group of flip-flops and gates that effect their transition. The flip-flops hold the binary information and the gates determine how the information is transferred into the register. Various types of registers are available commercially. The simplest register is one that consists of only flip-flops without any gates. Figure below shows such a register constructed with four D-type flip-flops. The common clock input triggers all flip-flops on the positive edge of each pulse and the binary data available at the 4 inputs are transferred into the 4-bit register. The four outputs can be sampled at any time to obtain the binary information stored in the register.

28 The clear output goes to the R(reset) input of all four flip-flops. When this Input goes to zero, all flip-flops are reset asynchronously. The clear input is useful for clearing the register to all s prior to its clocked operation. The R inputs must be maintained at logic during normal clocked operation. 28 SHIFT REGISTERS A register that is used to store binary information is known as a memory register. A register capable of shifting binary information either to the right or to the left is called a shift register. The shift register permits the stored data to move from a particular location to some other location within the register. In a shift register the flip-flops are connected in such a way that the bits of a binary number are entered into the shift register, shifted from one position to another and finally shifted out. There are two methods of shifting viz., () serial shifting and (2) parallel shifting. The serial shifting method shifts one bit at a time for each clock pulse in a serial fashion, beginning with either MSB or LSB. For example, a 4-bir register requires four clock pulses to shift a bit from the input to the output. In parallel shifting operations all the data (input and output) get shifted simultaneously during a single clock pulse. Hence parallel shifting method is much faster than the serial shifting method. These two methods can be used to shift into a register and out of the register.

29 Shift registers are classified into the following four types based on how binary information is entered or shifted out:. Serial-in Serial-out (SISO) 2. Serial-in Parallel-out (SIPO) 3. Parallel-in Serial-out (PISO) 4. parallel-in Parallel-out (PIPO) The block diagrams for the 4 basic register types are shown below. Registers can be designed using discrete flip-flops (S-R, J-K, and D type). An n-bit shift register consists of n flip-flops and the required gates to control the shift operation. Registers are also available as MSI devices. 29 Serial Data input n-bit Serial Data output Serial Data input n-bit MSB LSB Parallel Data outputs Parallel Data inputs Parallel Data inputs MSB LSB MSB LSB n-bit n-bit Serial Data output MSB LSB Parallel Data outputs Shift registers are used in digital systems for temporary storage of information, data manipulation and transferring. In addition, they are used in counting circuits, such as simple counters, variable modulo counters, Up/Down counters and increment counters. SERIAL IN SERIAL OUT shift register This type of shift register accepts data serially, i.e. one bit at a time on a single input line. It produces the stored information on its single output also in serial form. Data may be shifted left (from Low to high order bits) using shift-left register or shifted right (from high to low order bits) using shift-right register. Shift-left register:

30 3 A shift-left register can be built using J-K flip-flops or D-flip-flops as shown in the figure (a) and (b). A J-K flip-flop based shift register requires connection of both J and K inputs. Input data are connected to the J and K inputs of the right most (lowest order) flip-flop. To input a, one should apply a at J input, i.e. J= and K=; to input a, a at J input i.e. J= and k=, should be applied. When the clock pulse is applied, the data will be shifted bit by bit to the left. In the shift register using D flip-flops delay (D) input of the right most flip-flops is used as a serial input line. To input a, one should apply a at D input and to input data, a at the D input should be applied. As shown the clock pulse is applied to all the flip-flops simultaneously. When the shift or clock pulse occurs, each flip-flop is set or reset according to the data at the respective flip-flop input. Thus the input data bit at the serial input line is entered into stage A by the first shift pulse. At the same time, the data of stage A is shifted into stage B and so on for the following stages. For each shift pulse, data stored in the register stage shifts to the left by one stage. New data is entered into the stage A, where as the data present in stage D are shifted out (to the left) for use by some other shift register or other building block of digital system. Shift right register:

31 3 SERIAL IN PARALLEL OUT S.R. It consists of one serial input, and out puts are taken from all the flip-flops in parallel. A bit serial in parallel out shift register is shown below. In this register data is shifted in serially but shifted out in parallel. In order to shift the data out in parallel, it is necessary to have all the data available at the outputs at the same time. Once the data is stored, each bit appears on its respective output line and all the bits are available simultaneously, rather than on a bit-by-bit basis as with the serial output. Parallel in Serial Out S.R. For a register with parallel data inputs, the bits are entered simultaneously into their respective flip-flops, rather than a bit-by-bit Basis on one line. A four bit PISO register is illustrated in the figure. Let D, D 2, D3 and D 4 be the 4 parallel data-input lines and SHIFT/LOAD is a control input that allows the 4 bits of data inputs to enter into the register in parallel or shift the data in serial. When SHIFT/LOAD is low, the data at the parallel inputs are applied to the D inputs of the respective flip-flop. When a clock pulse is applied the flip-flops with D= will be SET and the flip-flops with D= will be RESET, thereby storing all 4 bits simultaneously. When SHIFT/LOAD is HIGH the data bits shift right from one stage to the next. Parallel In Parallel Out S.R. In this type of register, data inputs can be shifted either in or out of the register in parallel. A 4- bit parallel-in-parallel-out shift register is shown below.

32 32 COUNTERS A counter by function is a sequential circuit consisting of a set of flip-flops connected in a suitable manner to count the sequence of the input pulses presented to it in digital form. Counters can be broadly classified under 3 heads as follows:. Asynchronous and Synchronous counters. 2. Single and multimode counters 3. Modulus Counters. An asynchronous or ripple counter can be constructed using minimum hardware. Here each flip-flop is triggered by the output from the previous flip-flop which limits its speed of operation. This is also called a serial counter. In synchronous counters, the speed limitation of ripple counters is overcome by applying clock pulses simultaneously to all the flip-flops. Hence these are also called parallel counters. Single mode counters operate in a single mode i.e. it counts either in the UP mode or in the DOWN mode, where as multimode counters operate in both UP and DOWN mode. BINARY RIPPLE COUNTER A binary ripple counter consists of a series connection of complementing flip-flops, with the output of each flip-flop connected to the C input of the next higher-order flip-flop. The flip-flop holding the least significant bit receives the incoming count pulses. A complementing flip-flop can be obtained from a J-K flip-flop with the J and K inputs tied together or from a T flipflop. A third possibility is to use a D flip-flop with the complement output connected to the D input. In this way the D input is always the complement of the present state and the next clock pulse will cause the flip-flop to complement. The logic diagram of two 4 bit binary ripple counters is shown below. Fig. (a) Shows counter constructed with complementing flip-flops of the T type and fig (b) shows the same with the D flip-flops.

33 33 Count Ripple counter with T flip-flop Ripple counter with D flip-flop The output of each flip-flop is connected to the C input of the next flip-flop in sequence. The flip-flop holding the least significant bit receives the incoming count pulses. The T inputs of all the flip-flops are connected to a permanent logic-. This makes each flip-flop complement if the signal in its C input goes through a negative transition. The bubble in front of the dynamic indictor symbol next to C indicates that the flip-flops respond to the Negative edge transition of the input. The negative transition occurs when the output of the previous flip-flop to which C is connected goes from to. To understand the operation of the 4-bit binary ripple counter, refer to the first nine binary numbers listed in the following table. Binary Count Sequence A 3 A 2 A A

34 The count starts with binary and increments by one with each count pulse input. After the count of 5, the Counter goes back to to repeat the count. The least Significant bit A is complemented with each count pulse input. Every time that A goes from to, it Complements A. Every time that A goes from to, it Complements A 2. Every time that A 2 goes from to, it Complements A 3 and so on for any other higher order bits of a ripple counter. For example, consider the transition from count to. A is complemented with the count pulse. Since A goes from to, it triggers A and complements it. As a result A goes from to, which in turn complements A 2, changing it from to. A 2 does not trigger A 3 because A 2 produces a positive transition and the flip-flop responds only to negative transitions. Thus the count from to is achieved by changing the bits one at a time, so the count goes from to, then to, and finally to. The flip-flops change one at a time in succession and the signal propagates through the counter in ripple fashion from one stage to the next. A binary counter with reverse count is called a binary count-down counter. In a downward counter, the binary count is decremented by with every input count pulse. The diagram of a binary count-down counter looks the same as before, provided all the flip-flops trigger on the positive edge of the clock. (the bubble in the C inputs must be absent.) BCD Ripple Counter A decimal counter follows a sequence of states and returns to after the count of 9. Such a counter must have at least 4 flip-flops to represent each decimal digit, since a decimal digit is represented by a binary code with at least four bits. If BCD is used, the sequence of states is as shown in the state diagram below. 34 This is similar to a binary counter, except that the state after is. The logic diagram of a BCD ripple counter using JK flip-flops is shown below. The four outputs are designated by the letter symbol Q with a numeric subscript equal to the binary weight of the corresponding bit in the BCD code. Note that the output of Q is applied to the C inputs of both Q 2 and Q 8 and the output of Q 2 is applied to the C input of Q 4. The J and K inputs are connected either to a permanent signal or to outputs of other flipflops. A ripple counter is an asynchronous sequential circuit. Signals that affect the flip-flop transition depend on the way they change from to. The operation of the counter can be explained by a list of conditions for flip-flop transitions. These conditions are derived from the logic diagram and from knowledge of how a JK flip-flop operates. When the C input goes from to, the flip-flop is set if J=, is cleared if K=, is complemented if J=K=, and is left unchanged if J=K=. To verify that these conditions result in the sequence required by a BCD ripple counter, it is necessary to verify that the flip-flop transitions indeed follow a sequence of states as specified by state diagram.

35 Q changes state after each clock pulse. Q 2 complements every time Q goes from to as long as Q 8 =. When Q 8 becomes, Q 2 remains at. Q 4 complements every time Q 2 goes from to. Q 8 remains at as long as Q 2 or Q 4 is. When both Q 2 ands Q 4 become, Q 8 complements when Q goes from to. Q 8 is cleared on the next transition of Q. the BCD counter shown above is a decade counter, since it counts from to 9. To count in decimal from to 99 we need a two-decade counter. To count in decimal from to 999 we need a threedecade counter. Multiple decade counters can be constructed by connecting BCD counters in cascade one for each decade. A three-decade counter is shown below 35

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, Solution to Digital Logic -2067 Solution to digital logic 2067 1.)What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, A Magnitude comparator is a combinational

More information

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW QUICK GUIDE http://www.tutorialspoint.com/computer_logical_organization/computer_logical_organization_quick_guide.htm COMPUTER LOGICAL ORGANIZATION - OVERVIEW Copyright tutorialspoint.com In the modern

More information

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING DRONACHARYA GROUP OF INSTITUTIONS, GREATER NOIDA Affiliated to Mahamaya Technical University, Noida Approved by AICTE DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Lab Manual for Computer Organization Lab

More information

Analogue Versus Digital [5 M]

Analogue Versus Digital [5 M] Q.1 a. Analogue Versus Digital [5 M] There are two basic ways of representing the numerical values of the various physical quantities with which we constantly deal in our day-to-day lives. One of the ways,

More information

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari Sequential Circuits The combinational circuit does not use any memory. Hence the previous state of input does not have any effect on the present state of the circuit. But sequential circuit has memory

More information

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

UNIT-3: SEQUENTIAL LOGIC CIRCUITS UNIT-3: SEQUENTIAL LOGIC CIRCUITS STRUCTURE 3. Objectives 3. Introduction 3.2 Sequential Logic Circuits 3.2. NAND Latch 3.2.2 RS Flip-Flop 3.2.3 D Flip-Flop 3.2.4 JK Flip-Flop 3.2.5 Edge Triggered RS Flip-Flop

More information

Chapter 4. Logic Design

Chapter 4. Logic Design Chapter 4 Logic Design 4.1 Introduction. In previous Chapter we studied gates and combinational circuits, which made by gates (AND, OR, NOT etc.). That can be represented by circuit diagram, truth table

More information

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur SEQUENTIAL LOGIC Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur www.satish0402.weebly.com OSCILLATORS Oscillators is an amplifier which derives its input from output. Oscillators

More information

Module -5 Sequential Logic Design

Module -5 Sequential Logic Design Module -5 Sequential Logic Design 5.1. Motivation: In digital circuit theory, sequential logic is a type of logic circuit whose output depends not only on the present value of its input signals but on

More information

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Find the equivalent decimal value for the given value Other number system to decimal ( Sample) VELAMMAL COLLEGE OF ENGINEERING AND TECHNOLOGY, MADURAI 65 009 Department of Information Technology Model Exam-II-Question bank PART A (Answer for all Questions) (8 X = 6) K CO Marks Find the equivalent

More information

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

IT T35 Digital system desigm y - ii /s - iii UNIT - III Sequential Logic I Sequential circuits: latches flip flops analysis of clocked sequential circuits state reduction and assignments Registers and Counters: Registers shift registers ripple counters

More information

Logic Design Viva Question Bank Compiled By Channveer Patil

Logic Design Viva Question Bank Compiled By Channveer Patil Logic Design Viva Question Bank Compiled By Channveer Patil Title of the Practical: Verify the truth table of logic gates AND, OR, NOT, NAND and NOR gates/ Design Basic Gates Using NAND/NOR gates. Q.1

More information

1. Convert the decimal number to binary, octal, and hexadecimal.

1. Convert the decimal number to binary, octal, and hexadecimal. 1. Convert the decimal number 435.64 to binary, octal, and hexadecimal. 2. Part A. Convert the circuit below into NAND gates. Insert or remove inverters as necessary. Part B. What is the propagation delay

More information

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers.

UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers. UNIT 1: DIGITAL LOGICAL CIRCUITS What is Digital Computer? OR Explain the block diagram of digital computers. Digital computer is a digital system that performs various computational tasks. The word DIGITAL

More information

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram UNIT III INTRODUCTION In combinational logic circuits, the outputs at any instant of time depend only on the input signals present at that time. For a change in input, the output occurs immediately. Combinational

More information

WINTER 15 EXAMINATION Model Answer

WINTER 15 EXAMINATION Model Answer 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 answer and the answer written by candidate

More information

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits CHAPTER 4: Logic Circuits II. Sequential Circuits Combinational circuits o The outputs depend only on the current input values o It uses only logic gates, decoders, multiplexers, ALUs Sequential circuits

More information

Logic Design. Flip Flops, Registers and Counters

Logic Design. Flip Flops, Registers and Counters Logic Design Flip Flops, Registers and Counters Introduction Combinational circuits: value of each output depends only on the values of inputs Sequential Circuits: values of outputs depend on inputs and

More information

Sequential Logic Basics

Sequential Logic Basics Sequential Logic Basics Unlike Combinational Logic circuits that change state depending upon the actual signals being applied to their inputs at that time, Sequential Logic circuits have some form of inherent

More information

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1 DAY MODU LE TOPIC QUESTIONS Day 1 Day 2 Day 3 Day 4 I Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation Phase Shift Wein Bridge oscillators.

More information

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits CHAPTER 4: Logic Circuits II. Sequential Circuits Combinational circuits o The outputs depend only on the current input values o It uses only logic gates, decoders, multiplexers, ALUs Sequential circuits

More information

Decade Counters Mod-5 counter: Decade Counter:

Decade Counters Mod-5 counter: Decade Counter: Decade Counters We can design a decade counter using cascade of mod-5 and mod-2 counters. Mod-2 counter is just a single flip-flop with the two stable states as 0 and 1. Mod-5 counter: A typical mod-5

More information

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS NH 67, Karur Trichy Highways, Puliyur C.F, 639 114 Karur District DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES SUBJECT: DIGITAL ELECTRONICS CLASS: II YEAR ECE SUBJECT CODE: EC2203

More information

MC9211 Computer Organization

MC9211 Computer Organization MC9211 Computer Organization Unit 2 : Combinational and Sequential Circuits Lesson2 : Sequential Circuits (KSB) (MCA) (2009-12/ODD) (2009-10/1 A&B) Coverage Lesson2 Outlines the formal procedures for the

More information

Vignana Bharathi Institute of Technology UNIT 4 DLD

Vignana Bharathi Institute of Technology UNIT 4 DLD DLD UNIT IV Synchronous Sequential Circuits, Latches, Flip-flops, analysis of clocked sequential circuits, Registers, Shift registers, Ripple counters, Synchronous counters, other counters. Asynchronous

More information

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053 SET - 1 1. a) What are the characteristics of 2 s complement numbers? b) State the purpose of reducing the switching functions to minimal form. c) Define half adder. d) What are the basic operations in

More information

AIM: To study and verify the truth table of logic gates

AIM: To study and verify the truth table of logic gates EXPERIMENT: 1- LOGIC GATES AIM: To study and verify the truth table of logic gates LEARNING OBJECTIVE: Identify various Logic gates and their output. COMPONENTS REQUIRED: KL-31001 Digital Logic Lab( Main

More information

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100 MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER 2016 CS 203: Switching Theory and Logic Design Time: 3 Hrs Marks: 100 PART A ( Answer All Questions Each carries 3 Marks )

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) 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 answer and the answer written by candidate

More information

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS One common requirement in digital circuits is counting, both forward and backward. Digital clocks and

More information

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

The word digital implies information in computers is represented by variables that take a limited number of discrete values. Class Overview Cover hardware operation of digital computers. First, consider the various digital components used in the organization and design. Second, go through the necessary steps to design a basic

More information

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A SET - 1 Note: Question Paper consists of two parts (Part-A and Part-B) Answer ALL the question in Part-A Answer any THREE Questions from Part-B a) What are the characteristics of 2 s complement numbers?

More information

Sequential Logic Circuits

Sequential Logic Circuits Sequential Logic Circuits By Dr. M. Hebaishy Digital Logic Design Ch- Rem.!) Types of Logic Circuits Combinational Logic Memoryless Outputs determined by current values of inputs Sequential Logic Has memory

More information

Scanned by CamScanner

Scanned by CamScanner NAVEEN RAJA VELCHURI DSD & Digital IC Applications Example: 2-bit asynchronous up counter: The 2-bit Asynchronous counter requires two flip-flops. Both flip-flop inputs are connected to logic 1, and initially

More information

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters Logic and Computer Design Fundamentals Chapter 7 Registers and Counters Registers Register a collection of binary storage elements In theory, a register is sequential logic which can be defined by a state

More information

Synchronous Sequential Logic

Synchronous Sequential Logic Synchronous Sequential Logic -A Sequential Circuit consists of a combinational circuit to which storage elements are connected to form a feedback path. The storage elements are devices capable of storing

More information

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24 2065 Computer Science and Information Technology (CSc. 151) Pass Marks: 24 Time: 3 hours. Candidates are required to give their answers in their own words as for as practicable. Attempt any TWO questions:

More information

UNIVERSITI TEKNOLOGI MALAYSIA

UNIVERSITI TEKNOLOGI MALAYSIA SULIT Faculty of Computing UNIVERSITI TEKNOLOGI MALAYSIA FINAL EXAMINATION SEMESTER I, 2016 / 2017 SUBJECT CODE : SUBJECT NAME : SECTION : TIME : DATE/DAY : VENUES : INSTRUCTIONS : Answer all questions

More information

Chapter 5: Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic Chapter 5: Synchronous Sequential Logic NCNU_2016_DD_5_1 Digital systems may contain memory for storing information. Combinational circuits contains no memory elements the outputs depends only on the inputs

More information

Experiment 8 Introduction to Latches and Flip-Flops and registers

Experiment 8 Introduction to Latches and Flip-Flops and registers Experiment 8 Introduction to Latches and Flip-Flops and registers Introduction: The logic circuits that have been used until now were combinational logic circuits since the output of the device depends

More information

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops Objective Construct a two-bit binary decoder. Study multiplexers (MUX) and demultiplexers (DEMUX). Construct an RS flip-flop from discrete gates.

More information

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET LABORATORY MANUAL EXPERIMENT NO. 1 ISSUE NO. : ISSUE DATE: REV. NO. : REV. DATE :

More information

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true.

EXPERIMENT: 1. Graphic Symbol: OR: The output of OR gate is true when one of the inputs A and B or both the inputs are true. EXPERIMENT: 1 DATE: VERIFICATION OF BASIC LOGIC GATES AIM: To verify the truth tables of Basic Logic Gates NOT, OR, AND, NAND, NOR, Ex-OR and Ex-NOR. APPARATUS: mention the required IC numbers, Connecting

More information

Computer Architecture and Organization

Computer Architecture and Organization A-1 Appendix A - Digital Logic Computer Architecture and Organization Miles Murdocca and Vincent Heuring Appendix A Digital Logic A-2 Appendix A - Digital Logic Chapter Contents A.1 Introduction A.2 Combinational

More information

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20 Advanced Devices Using a combination of gates and flip-flops, we can construct more sophisticated logical devices. These devices, while more complex, are still considered fundamental to basic logic design.

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in themodel answer scheme. 2) The model answer and the answer written by candidate may

More information

D Latch (Transparent Latch)

D Latch (Transparent Latch) D Latch (Transparent Latch) -One way to eliminate the undesirable condition of the indeterminate state in the SR latch is to ensure that inputs S and R are never equal to 1 at the same time. This is done

More information

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics Egemen K. Çetinkaya Egemen K. Çetinkaya Department of Electrical & Computer Engineering Missouri University of Science and

More information

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7). VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur-603203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Academic Year: 2015-16 BANK - EVEN SEMESTER UNIT I PART-A 1 Find the octal equivalent of hexadecimal

More information

UNIT IV. Sequential circuit

UNIT IV. Sequential circuit UNIT IV Sequential circuit Introduction In the previous session, we said that the output of a combinational circuit depends solely upon the input. The implication is that combinational circuits have no

More information

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of 1 The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of the AND gate, you get the NAND gate etc. 2 One of the

More information

Laboratory Objectives and outcomes for Digital Design Lab

Laboratory Objectives and outcomes for Digital Design Lab Class: SE Department of Information Technology Subject Logic Design Sem : III Course Objectives and outcomes for LD Course Objectives: Students will try to : COB1 Understand concept of various components.

More information

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS) DIGITAL SYSTEM DESIGN UNIT I (2 MARKS) 1. Convert Binary number (111101100) 2 to Octal equivalent. 2. Convert Binary (1101100010011011) 2 to Hexadecimal equivalent. 3. Simplify the following Boolean function

More information

WINTER 14 EXAMINATION

WINTER 14 EXAMINATION Subject Code: 17320 WINTER 14 EXAMINATION Model Answer 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)

More information

Principles of Computer Architecture. Appendix A: Digital Logic

Principles of Computer Architecture. Appendix A: Digital Logic A-1 Appendix A - Digital Logic Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A-2 Appendix A - Digital Logic Chapter Contents A.1 Introduction A.2 Combinational

More information

Synchronous Sequential Logic

Synchronous Sequential Logic Synchronous Sequential Logic Ranga Rodrigo August 2, 2009 1 Behavioral Modeling Behavioral modeling represents digital circuits at a functional and algorithmic level. It is used mostly to describe sequential

More information

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic COURSE TITLE : DIGITAL INSTRUMENTS PRINCIPLE COURSE CODE : 3075 COURSE CATEGORY : B PERIODS/WEEK : 4 PERIODS/SEMESTER : 72 CREDITS : 4 TIME SCHEDULE MODULE TOPICS PERIODS 1 Number system & Boolean algebra

More information

Counters

Counters Counters A counter is the most versatile and useful subsystems in the digital system. A counter driven by a clock can be used to count the number of clock cycles. Since clock pulses occur at known intervals,

More information

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30 Department of CSIT Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30 Section A: (All 10 questions compulsory) 10X1=10 Very Short Answer Questions: Write

More information

Asynchronous (Ripple) Counters

Asynchronous (Ripple) Counters Circuits for counting events are frequently used in computers and other digital systems. Since a counter circuit must remember its past states, it has to possess memory. The chapter about flip-flops introduced

More information

Unit 11. Latches and Flip-Flops

Unit 11. Latches and Flip-Flops Unit 11 Latches and Flip-Flops 1 Combinational Circuits A combinational circuit consists of logic gates whose outputs, at any time, are determined by combining the values of the inputs. For n input variables,

More information

St. MARTIN S ENGINEERING COLLEGE

St. MARTIN S ENGINEERING COLLEGE St. MARTIN S ENGINEERING COLLEGE Dhulapally, Kompally, Secunderabad-500014. Branch Year&Sem Subject Name : Electronics and Communication Engineering : II B. Tech I Semester : SWITCHING THEORY AND LOGIC

More information

Contents Circuits... 1

Contents Circuits... 1 Contents Circuits... 1 Categories of Circuits... 1 Description of the operations of circuits... 2 Classification of Combinational Logic... 2 1. Adder... 3 2. Decoder:... 3 Memory Address Decoder... 5 Encoder...

More information

Department of Computer Science and Engineering Question Bank- Even Semester:

Department of Computer Science and Engineering Question Bank- Even Semester: Department of Computer Science and Engineering Question Bank- Even Semester: 2014-2015 CS6201& DIGITAL PRINCIPLES AND SYSTEM DESIGN (Common to IT & CSE, Regulation 2013) UNIT-I 1. Convert the following

More information

Chapter. Synchronous Sequential Circuits

Chapter. Synchronous Sequential Circuits Chapter 5 Synchronous Sequential Circuits Logic Circuits- Review Logic Circuits 2 Combinational Circuits Consists of logic gates whose outputs are determined from the current combination of inputs. Performs

More information

TYPICAL QUESTIONS & ANSWERS

TYPICAL QUESTIONS & ANSWERS DIGITALS ELECTRONICS TYPICAL QUESTIONS & ANSWERS OBJECTIVE TYPE QUESTIONS Each Question carries 2 marks. Choose correct or the best alternative in the following: Q.1 The NAND gate output will be low if

More information

RS flip-flop using NOR gate

RS flip-flop using NOR gate RS flip-flop using NOR gate Triggering and triggering methods Triggering : Applying train of pulses, to set or reset the memory cell is known as Triggering. Triggering methods:- There are basically two

More information

Chapter 3 Unit Combinational

Chapter 3 Unit Combinational EE 200: Digital Logic Circuit Design Dr Radwan E Abdel-Aal, COE Logic and Computer Design Fundamentals Chapter 3 Unit Combinational 5 Registers Logic and Design Counters Part Implementation Technology

More information

CHAPTER 6 COUNTERS & REGISTERS

CHAPTER 6 COUNTERS & REGISTERS CHAPTER 6 COUNTERS & REGISTERS 6.1 Asynchronous Counter 6.2 Synchronous Counter 6.3 State Machine 6.4 Basic Shift Register 6.5 Serial In/Serial Out Shift Register 6.6 Serial In/Parallel Out Shift Register

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 ذو الحجة 1438 ه Winter

More information

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 23 121120 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Review Combinatorial Logic Sequential Logic 3 Combinatorial Logic Circuits

More information

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS Sequential circuits Classification of sequential circuits: Sequential circuits may be classified as two types. 1. Synchronous sequential

More information

EKT 121/4 ELEKTRONIK DIGIT 1

EKT 121/4 ELEKTRONIK DIGIT 1 EKT 2/4 ELEKTRONIK DIGIT Kolej Universiti Kejuruteraan Utara Malaysia Sequential Logic Circuits - COUNTERS - LATCHES (review) S-R R Latch S-R R Latch Active-LOW input INPUTS OUTPUTS S R Q Q COMMENTS Q

More information

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur Logic Gates, Timers, Flip-Flops & Counters Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur Logic Gates Transistor NOT Gate Let I C be the collector current.

More information

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam MIDTERM EXAMINATION Spring 2012 Question No: 1 ( Marks: 1 ) - Please choose one A SOP expression is equal to 1

More information

DIGITAL ELECTRONICS MCQs

DIGITAL ELECTRONICS MCQs DIGITAL ELECTRONICS MCQs 1. A 8-bit serial in / parallel out shift register contains the value 8, clock signal(s) will be required to shift the value completely out of the register. A. 1 B. 2 C. 4 D. 8

More information

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology Course Title: Digital Logic Full Marks: 60 + 0 + 0 Course No.: CSC Pass Marks:

More information

PURBANCHAL UNIVERSITY

PURBANCHAL UNIVERSITY [c] Implement a full adder circuit with a decoder and two OR gates. [4] III SEMESTER FINAL EXAMINATION-2006 Q. [4] [a] What is flip flop? Explain flip flop operating characteristics. [6] [b] Design and

More information

I B.SC (INFORMATION TECHNOLOGY) [ ] Semester II CORE : DIGITAL COMPUTER FUNDAMENTALS - 212B Multiple Choice Questions.

I B.SC (INFORMATION TECHNOLOGY) [ ] Semester II CORE : DIGITAL COMPUTER FUNDAMENTALS - 212B Multiple Choice Questions. Dr.G.R.Damodaran College of Science (Autonomous, affiliated to the Bharathiar University, recognized by the UGC)Re-accredited at the 'A' Grade Level by the NAAC and ISO 9001:2008 Certified CRISL rated

More information

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering BCN1043 By Dr. Mritha Ramalingam Faculty of Computer Systems & Software Engineering mritha@ump.edu.my http://ocw.ump.edu.my/ authors Dr. Mohd Nizam Mohmad Kahar (mnizam@ump.edu.my) Jamaludin Sallim (jamal@ump.edu.my)

More information

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers EEE 304 Experiment No. 07 Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers Important: Submit your Prelab at the beginning of the lab. Prelab 1: Construct a S-R Latch and

More information

Counter dan Register

Counter dan Register Counter dan Register Introduction Circuits for counting events are frequently used in computers and other digital systems. Since a counter circuit must remember its past states, it has to possess memory.

More information

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active. Flip-Flops Objectives The objectives of this lesson are to study: 1. Latches versus Flip-Flops 2. Master-Slave Flip-Flops 3. Timing Analysis of Master-Slave Flip-Flops 4. Different Types of Master-Slave

More information

CS302 - Digital Logic Design FAQs By

CS302 - Digital Logic Design FAQs By CS302 - Digital Logic Design FAQs By For BCD numbers that add up to an invalid BCD number or generate a carry the number 6 (0110) is added to the invalid number, why? These binary numbers are not allowed

More information

UNIT 1 NUMBER SYSTEMS AND DIGITAL LOGIC FAMILIES 1. Briefly explain the stream lined method of converting binary to decimal number with example. 2. Give the Gray code for the binary number (111) 2. 3.

More information

Chapter 3: Sequential Logic Systems

Chapter 3: Sequential Logic Systems Chapter 3: Sequential Logic Systems 1. The S-R Latch Learning Objectives: At the end of this topic you should be able to: design a Set-Reset latch based on NAND gates; complete a sequential truth table

More information

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering Sri Vidya College of Engineering And Technology Virudhunagar 626 005 Department of Electrical and Electronics Engineering Year/ Semester/ Class : II/ III/ EEE Academic Year: 2017-2018 Subject Code/ Name:

More information

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany Digital Logic Design Sequential Circuits Dr. Basem ElHalawany Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs

More information

LATCHES & FLIP-FLOP. Chapter 7

LATCHES & FLIP-FLOP. Chapter 7 LATCHES & FLIP-FLOP Chapter 7 INTRODUCTION Latch and flip flops are categorized as bistable devices which have two stable states,called SET and RESET. They can retain either of this states indefinitely

More information

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall Objective: - Dealing with the operation of simple sequential devices. Learning invalid condition in

More information

Chapter 7 Counters and Registers

Chapter 7 Counters and Registers Chapter 7 Counters and Registers Chapter 7 Objectives Selected areas covered in this chapter: Operation & characteristics of synchronous and asynchronous counters. Analyzing and evaluating various types

More information

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003 1 Introduction Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003 Circuits for counting both forward and backward events are frequently used in computers and other digital systems. Digital

More information

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Chapter 6. Flip-Flops and Simple Flip-Flop Applications Chapter 6 Flip-Flops and Simple Flip-Flop Applications Basic bistable element It is a circuit having two stable conditions (states). It can be used to store binary symbols. J. C. Huang, 2004 Digital Logic

More information

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Chapter Contents. Appendix A: Digital Logic. Some Definitions A- Appendix A - Digital Logic A-2 Appendix A - Digital Logic Chapter Contents Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A. Introduction A.2 Combinational

More information

Subject : EE6301 DIGITAL LOGIC CIRCUITS

Subject : EE6301 DIGITAL LOGIC CIRCUITS QUESTION BANK Programme : BE Subject : Semester / Branch : III/EEE UNIT 1 NUMBER SYSTEMS AND DIGITAL LOGIC FAMILIES Review of number systems, binary codes, error detection and correction codes (Parity

More information

SEMESTER ONE EXAMINATIONS 2002

SEMESTER ONE EXAMINATIONS 2002 SEMESTER ONE EXAMINATIONS 2002 EE101 Digital Electronics Solutions Question 1. An assembly line has 3 failsafe sensors and 1 emergency shutdown switch. The Line should keep moving unless any of the following

More information

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad ELECTRICAL AND ELECTRONICS ENGINEERING Course Name INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK : SWITCHING THEORY AND LOGIC DESISN Course Code : A40407

More information

BHARATHIDASAN ENGINEERING COLLEGE, NATTRAMPALLI DEPARTMENT OF ECE

BHARATHIDASAN ENGINEERING COLLEGE, NATTRAMPALLI DEPARTMENT OF ECE BHARATHIDASAN ENGINEERING COLLEGE, NATTRAMPALLI DEPARTMENT OF ECE CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN 1 st year 2 nd semester CSE & IT Unit wise Important Part A and Part B Prepared by L.GOPINATH

More information

211: Computer Architecture Summer 2016

211: Computer Architecture Summer 2016 211: Computer Architecture Summer 2016 Liu Liu Topic: Storage Project3 Digital Logic - Digital Logic: Recap - Review: truth table => SOP => simplification - dual / complement - Minterm / Maxterm - SOP

More information

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Introduction. NAND Gate Latch.  Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1 2007 Introduction BK TP.HCM FLIP-FLOP So far we have seen Combinational Logic The output(s) depends only on the current values of the input variables Here we will look at Sequential Logic circuits The

More information