# Combinational Logic Design

Save this PDF as:

Size: px
Start display at page:

## Transcription

1 Chapter 4 Combinational Logic Design The foundations for the design of digital logic circuits were established in the preceding chapters. The elements of Boolean algebra (two-element switching algebra ) and how the operations in Boolean algebra can be represented schematically by means of gates (primitive devices) were presented in Chapter 2. How switching expressions can be manipulated and represented in different ways was the subject of Chapter 3, which also presented various ways of implementing such representations in a variety of circuits using primitive gates. With all of the tools for the purpose now in hand, we will be concerned in this chapter with the design of more complex logic circuits. Circuits in which all outputs at any given time depend only on the inputs at that time are called combinational logic circuits. The design procedures will be illustrated with important classes of circuits that are now universal in digital systems. The approach taken is to examine the tasks that a combinational logic circuit is intented to perform and then identify one or more circuits that can perform the task. One circuit may have some specific advantages over others, but it may also have certain deficiencies. Often one factor can be improved, but only at the expense of others. Some important factors are speed of operation, complexity or cost of hardware, power dissipation, and availability in prefabricated units. We will take up a number of different operations that are useful in different contexts and show how appropriate circuits can be designed to carry out these operations. BINARY ADDERS One of the most important tasks performed by a digital computer is the operation of adding two binary numbers. A useful measure of performance is speed. Of course, speed can be improved by using gate designs that favor speed at the 32 As discussed in Chapter, subtraction of two numbers is included in the meaning of addition, since subtraction is performed first by carrying out some operation on the subtrahend and then adding the result. (What operation is first performed depends on the type of computer either inverting the subtrahend or taking its two s complement, as discussed in Chapter.)

6 Binary Adders 37 A carry will be generated in the ith full adder (that is, G i = ) if A i and B i both equal. But if only one of them is, a carry out will not be generated. In that case, however, P i will be. (Confirm this.) Hence, the carry out will be C i+ = C i. We say that the carry will be propagated forward. The expression for the carry out in (5) can be updated by changing the index i to i + : C i+2 = G i+ + P i+ C i+ = G i+ + P i+ (G i + P i C i ) = G i+ + P i+ G i + P i+ P i C i (6) The last expression can be interpreted in the following way. A carry will appear at the output of the unit under three circumstances: It is generated in the last stage: G i+ =. It is generated in the first stage, G i =, and propagated forward: P i+ =. The input carry C i is propagated through both stages: P i = P i+ =. Obviously, this result can be extended through any number of stages, but the circuit will become progressively more complicated. Exercise 2 Extend the previous result by one more stage and write the expression for C i +3. Then describe the ways in which this carry out can be. Confirm your result using the general result given next. Extending the design to j stages, the expression in (6) becomes C i+j+ = G i+j + P i+j G i+j + P i+j P i+j G i+j (P i+j P i+j... P i )C i (7) This expression looks complicated, but it is easy to interpret. Since the carry out C i+j+ = if any one of the additive terms on the right is, the carry out from the unit will be for several possibilities. Either it is generated in the last (jth) stage of the unit, or it is generated in an earlier stage and is propagated through all succeeding stages, or the carry into the unit is propagated through all the stages to the output. The greater the number of full-adder stages included in a unit, the greater the improvement in speed but also the greater the complexity of the carrylookahead circuit. There is an obvious trade-off between the two. Consider a unit of four stages. This unit is to add two 4-bit words A and B. Each stage can be considered as having a sum circuit (S) and a separate carry circuit (C). The sum circuit of each stage has as inputs the carry from the preceding stage and the corresponding bits of the A and B words. The inputs to the carry network of each stage consist of all the bits of the A and B words up to that stage and the carry not just from the preceding stage, but from the input to the whole unit. Thus, if the first stage is stage i, the inputs to the carry circuit of stage i + 2 are: A i, A i+, A i+2, B i, B i+, B i+2, and C i. Exercise 3 Draw a schematic diagram for a three-stage unit using rectangles to represent the sum and carry circuits of each stage. (Let the first stage be instead of the general i.)

11 42 Chapter 4 Combinational Logic Design data in communications channel dat out multiplexer Figure 2 A data communication problem. demultiplexer Two s complement addition is the most common method implemented in modern computers due to its reduced circuit complexity compared with one s complement. This is as far as we will go with the addition of multibit words; other adder circuits are left for the problem set. 2 MULTIPLEXERS Many tasks in communications, control, and computer systems can be performed by combinational logic circuits. When a circuit has been designed to perform some task in one application, it often finds use in a different application as well. In this way, it acquires different names from its various uses. In this and the following sections, we will describe a number of such circuits and their uses. We will discuss their principles of operation, specifying their MSI or LSI implementations. One common task is illustrated in Figure 2. Data generated in one location is to be used in another location; A method is needed to transmit it from one location to another through some communications channel. The data is available, in parallel, on many different lines but must be transmitted over a single communications link. A mechanism is needed to select which of the many data lines to activate sequentially at any one time so that the data this line carries can be transmitted at that time. This process is called multiplexing.an example is the multiplexing of conversations on the telephone system. A number of telephone conversations are alternately switched onto the telephone line many times per second. Because of the nature of the human auditory system, listeners cannot detect that what they are hearing is chopped up and that other people s conversations are interspersed with their own in the transmission process. Needed at the other end of the communications link is a device that will undo the multiplexing: a demultiplexer. Such a device must accept the incoming serial data and direct it in parallel to one of many output lines. The interspersed snatches of telephone conversations, for example, must be sent to the correct listeners. A digital multiplexer is a circuit with 2 n data input lines and one output line. It must also have a way of determining the specific data input line to be selected at any one time. This is done with n other input lines, called the select or selector inputs, whose function is to select one of the 2 n data inputs for connec-

12 Multiplexers 43 D 0 0 D D 2 D 3 D 4 r D 5 D 6 D 7 7 s 0 s s 2 Figure 3 Multiplexer with eight data inputs. tion to the output. A circuit for n = 3 is shown in Figure 3. The n selector lines have 2 n = 8 combinations of values that constitute binary select numbers. Exercise 6 Write expressions for each of the AND gate outputs in terms of the s i and D i inputs, confirming that the multiplier of D k is the binary equivalent of k. When the selector inputs have the combination s 2 s s 0 = 0, for example, the outputs of all AND gates except the one to which data line D 3 is connected will be 0. All other inputs to that AND gate besides D 3 will be. Hence, D 3 appears at the output of the circuit. In this way, the select inputs whose binary combination corresponds to decimal 3 have selected data input D 3 for transmittal to the output. Standard MSI packages are available as multiplexers. Figure 4a shows the circuit for a package containing two separate multiplexers for n = 2. Practical considerations not included in Figure 3 account for some of the features of this circuit. The enable input E, for example, is used to control the period of time that the multiplexer is operative. Thus, when the value of E is, the output will be 0 no matter what the values of the select inputs. The circuit will be operative only when the corresponding enable input is 0. (In other circuits, the

13 44 Chapter 4 Combinational Logic Design E D 0 D output D 2 D 3 s s 0 D 0 D D 2 D 3 2D 0 Q 2D 2D 3 output 2 2D 0 2D 2D 2 2D 3 2Q E 2 2D 4 S 0 S EN (a) (b) Figure 4 (a) Dual four-input multiplexer with enable. (b) Dual four-input multiplexer with single enable. enable signal is not inverted; in such cases, the circuit is operative when E =, just the opposite of the case shown in Figure 4a.) In addition, note from the figure that both the selector signals and their complements are inputs to AND gates. The signal inputs themselves are obtained after two inversions. This is especially useful if n is large. In this way, the circuit that produces the select inputs has as load only a single gate (the inverter) rather than several AND gates. In Figure 4a the select inputs are common to both multiplexers, but each has its own enable. In other designs, the enable can also be common. A schematic diagram of a dual four-input multiplexer (MUX) with a single enable is shown in Figure 4b. The preferred gate form for many IC logic packages (for example, the 74LS00 and the 74LS0) is the NAND gate. Since the multiplexer design in either Figure 3 or 4 is a two-level AND-OR circuit, a direct replacement of all AND and OR gates by NAND gates will maintain the logic function, as discussed in the preceding chapter. In this way, the actual implementation of the multiplexer is carried out with NAND gates.

14 Multiplexers 45 Multiplexers as General-Purpose Logic Circuits It is clear from Figures 3 and 4 that the structure of a multiplexer is that of a two-level AND-OR logic circuit, with each AND gate having n + inputs, where n is the number of select inputs. It appears that the multiplexer would constitute a canonic sum-of-products implementation of a switching function if all the data lines together represent just one switching variable (or its complement) and each of the select inputs represents a switching variable. Let s work backward from a specified function of m switching variables for which we have written a canonic sum-of-products expression. The size of multiplexer needed (number of select inputs) is not evident. Suppose we choose a multiplexer that has m select inputs, leaving only one other variable to accommodate all the data inputs. We write an output function of these select inputs and the 2 m data inputs D i. Now we plan to assign m of these variables to the select inputs; but how to make the assignment? 4 There are really no restrictions, so it can be done arbitrarily. The next step is to write the multiplexer output after replacing the select inputs with m of the variables of the given function. By comparing the two expressions term by term, the D i inputs can be determined in terms of the remaining variable. EXAMPLE A switching function to be implemented with a multiplexer is f(x, y, z) = Σ(, 2, 4, 7) = x'y'z + x'yz' + xy'z' + xyz Since the function has three variables, the desired multiplexer will have 3 = 2 select inputs; half of the dual four-input MUX of Figure 4 will do. The expression for the multiplexer output is f = s 's 0 'D 0 + s 's 0 D + s s 0 'D 2 + s s 0 D 3 There are no restrictions on how to assign the selector inputs to the variables of the given function; let s = x and s 0 = y arbitrarily. Then f = x'y'd 0 + x'yd + xy'd 2 + xyd 3 Comparing this with the original expression for the given function leads to D 0 = D 3 = z D = D 2 = z' The original function is thus implemented with a four-input multiplexer. There are five other ways that the two select inputs could have been assigned to two of the three switching variables. No conditions need to be satisfied by the choice, so it is arbitrary. However, the specific outcome obtained for the D i inputs depends on that initial choice. 4 For a set of m variables, there are m! ways of assigning m quantities to specific variables.

15 46 Chapter 4 Combinational Logic Design yz 00 0 wx y z O s = w s 0 = x f 0 (a) Figure 5 Multiplexer implementation of f = Σ(0,, 6, 7, ). (b) Exercise 7 the D i. Answer 5 In the problem of Example, choose s = z and s 0 = x. Determine Exercise 8 For practice, choose each of the remaining possible ways of assigning select inputs to the switching variables, and then determine the required D i ; specify the external gates needed. To implement a switching function of m variables, we have seen that a multiplexer of m select inputs will work. It might be possible in some cases that even a smaller multiplexer can be used. It should be expected that, when possible, this savings in MUX complexity must come at some other cost. EXAMPLE 2 The function of four variables whose map is shown in Figure 5 is to be implemented by a multiplexer. One with 4 = 3 select variables is always possible. However, let s explore the possibility of using a multiplexer with only two select variables to implement this function. Arbitrarily assign the two select inputs s and s 0 to w and x. The expression for the output of the multiplexer is the same one given in Example, since this one has the same dimensions. For wx = s s 0 = 00, that expression reduces to D 0. But for the values wx = 00, the expression that covers the s in the map is y'z' + y'z = y'. Hence, D 0 = y'. Similarly, in the 0 column of the map, the expression reduces to D and the map gives yz + yz' = y; hence, D = y. In the same way, from the column we find D 3 = 0 and from the 0 column D 2 = yz. (Confirm these.) The rather simple circuit is shown in Figure 5b. We find that to imple- 5 D 0 = D 3 = y, D = D 2 = y'

16 Decoders and Encoders 47 ment a certain specific function of four variables, a multiplexer of order lower than 3 can be used, at the cost of an additional AND gate. (The inverter would be necessary even with a higher-order multiplexer, so it does not count as additional cost.) Exercise 9 In the preceding example, suppose that s and s 0 are identified as y and z instead of w and x. Determine expressions for the data inputs in terms of w and x, and specify the external hardware that will be needed besides the multiplexer. Note the difference in complexity for the two choices of select inputs. Answer 6 In the implementation of an arbitrary switching function, different choices for the select inputs lead to different amounts of external hardware for a smaller-than-normal multiplexer. Unfortunately, short of trying them, there is no way to determine which choice will be most economical. 3 DECODERS AND ENCODERS The previous section began by discussing an application: Given 2 n data signals, the problem is to select, under the control of n select inputs, sequences of these 2 n data signals to send out serially on a communications link. The reverse operation on the receiving end of the communications link is to receive data serially on a single line and to convey it to one of 2 n output lines. This again is controlled by a set of control inputs. It is this application that needs only one input line; other applications may require more than one. We will now investigate such a generalized circuit. Conceivably, there might be a combinational circuit that accepts n inputs (not necessarily, but a small number) and causes data to be routed to one of many, say up to 2 n, outputs. Such circuits have the generic name decoder. Semantically, at least, if something is to be decoded, it must have previously been encoded, the reverse operation from decoding. Like a multiplexer, an encoding circuit must accept data from a large number of input lines and convert it to data on a smaller number of output lines (not necessarily just one). This section will discuss a number of implementations of decoders and encoders. Demultiplexers Refer back to the diagram in Figure 2. The demultiplexer shown there is a single-input, multiple-output circuit. However, in addition to the data input, there must be other inputs to control the transmission of the data to the appropriate data output line at any given time. Such a demultiplexer circuit 6 D 0 = D = w'x', D 2 = w'x, D 3 = w x; three AND gates and one XOR gate, in addition to a four-input MUX.

17 48 Chapter 4 Combinational Logic Design data input x 0 D 0 D 2 D 2 3 D 3 4 D 4 5 D 5 Control Inputs Data Outputs C 2 C C 0 D 0 D D 2 D 3 D 4 D 5 D 6 D 7 C 0 C C 2 (a) 6 7 D 6 D 7 Figure 6 A demultiplexer circuit (a) and its truth table (b) x x x x x x x x (b) having eight output lines is shown in Figure 6a. It is instructive to compare this demultiplexer circuit with the multiplexer circuit in Figure 3. For the same number of control (select) inputs, there are the same number of AND gates. But now each AND gate output is a circuit output. Rather than each gate having its own separate data input, the single data line now forms one of the inputs to each AND gate, the other AND inputs being control inputs. When the word formed by the control inputs C 2 C C 0 is the binary equivalent of decimal k, then the data input x is routed to output D k. Viewed in another way, for a demultiplexer with n control inputs, each AND gate output corresponds to a minterm of n variables. For a given combination of control inputs, only one minterm can take on the value ; the data input is routed to the AND gate corresponding to this minterm. For example, the logical expression for the output D 3 is xc 2 'C C 0. Hence, when C 2 C C 0 = 0, then D 3 = x and all other D i are 0. The complete truth table for the eight-output demultiplexer is shown in Figure 6b.

18 Decoders and Encoders 49 A 0 A A 2 decoder A A 0 A A 2 array of 64 AND gates A 0 A A 2 B 0 B B 2 A 0 A A 2 A 0 A A 2 B 0 B B 2 B 0 B B 2 D 0 D D 4 D 46 D decoder B B 2 B 0 B Figure 7 Design of a 6-to-2 6 -line decoder from two 3-to-2 3 -line decoders with an interconnection matrix of 64 AND gates. n-to-2 n -Line Decoder In the demultiplexer circuit in Figure 6, suppose the data input line is removed. (Draw the circuit for yourself.) Each AND gate now has only n (in this case three) inputs, and there are 2 n (in this case eight) outputs. Since there isn t a data input line to control, what used to be control inputs no longer serve that function. Instead, they are the data inputs to be decoded. This circuit is an example of what is called an n-to-2 n -line decoder. Each output represents a minterm. Output k is whenever the combination of the input variable values is the binary equivalent of decimal k. Now suppose that the data input line from the demultiplexer in Figure 6 is not removed but retained and viewed as an enable input. The decoder now operates only when the enable x is. Viewed conversely, an n-to-2 n -line decoder with an enable input can also be used as a demultiplexer, where the enable becomes the serial data input and the data inputs of the decoder become the control inputs of the demultiplexer. 7 Decoders of the type just described are available as integrated circuits (MSI); n = 3 and n = 4 are quite common. There is no theoretical reason why n can t be increased to higher values. Since, however, there will always be practical limitations on the fan-in (the number of inputs that a physical gate can support), decoders of higher order are often designed using lower-order decoders interconnected with a network of other gates. An illustration is given in Figure 7 for the design of a 6-to-2 6 -line decoder constructed from two 3-to-2 3 -line decoders. Each of the component decoders 7 In practice, the physical implementation of the decoder with enable is carried out with NAND gates. In that case, it is the complements of the outputs in the circuit under discussion that are obtained, and the enable input is inverted before it is applied to the NAND gates. These are practical details that do not change the principles described here.

19 50 Chapter 4 Combinational Logic Design A B C two-input AND gates two-input AND gates two-input AND gates two-input AND gates... D E Figure 8 Design of tree decoder. has eight outputs. Each of the outputs from the A decoder must be ANDed with each of the outputs from the B decoder to yield one of the 64 outputs from the complete decoder. Thus, in addition to the 8 three-input AND gates in each component decoder, there are 64 two-input AND gates in the interconnection network. Only two of these are shown explicitly in Figure 7. Exercise 0 A 6-to-2 6 -line decoder is to be designed using the structure of Figure 6. Specify the number of AND gates and the total number of input lines to all gates. Compare this with the design in Figure 7. Tree Decoder When higher-order decoders are designed in a hierarchy of several stages of lower-order ones, a practical difficulty with fan-out (number of gates driven by one terminal) results. (By a hierarchy of stages we mean, for example, two 3 8 stages to form a 6 64 decoder, as in Figure 7; then two 6 64 stages to form a decoder; and so on.) in Figure 7, each gate in the component decoders drives eight other gates. In the next level of the hierarchy, each of the outputs from the gates in the next-to-last level will have to drive 64 other gates. This problem is overcome, but only partially, by the decoder design illustrated in Figure 8, called a tree decoder. The first stage is a 2-to-4-line decoder. A new variable is introduced in each successive stage; it or its inverse becomes one input to each of the two-input AND gates in this stage. The second input to each AND gate comes from the preceding stage. For example, one of the outputs of the second stage will be AB'C. This will result in two outputs from the next stage, AB'CD and AB'CD'. This design does avoid the fan-out problem in the early stages but not in the later stages. Nevertheless, the problem exists only for the variables introduced in those stages. Any remedies required will have to be used for relatively few variables, as opposed to the large number needed by the design of Figure 7. Decoders as General-Purpose Logic Circuits: Code Conversion Since each output from an n-to-2 n -line decoder is a canonic product of literals, simply ORing all the outputs produces a canonic sum of products. And since every switching function can be expressed as a canonic sum of products, it fol-

20 Inputs: Excess-3 Outputs: Seven-Segment Decimal Digit w x y z S S 2 S 3 S 4 S 5 S 6 S Figure 9 Excess-3 to seven-segment code conversion. Decoders and Encoders 5 lows that every switching function can be implemented by an n-to-2 n -line decoder followed by an OR gate. (If 2 n exceeds the fan-in limitation of the OR gate, additional levels of OR gates will be needed.) Indeed, if more than one function of the same variables is to be implemented, the same decoder can be used, with each function having its own set of OR gates. One major class of logic circuits is known as a code converter. This is a circuit that accepts as inputs the digits of a word that expresses some information in a particular code and that yields as outputs the digits of a word in a different code. (See Chapter for an introduction to codes.) We will illustrate the use of a decoder as a code converter by designing a circuit to convert from excess-3 code to seven-segment code. (These codes were given in Figure 4 and Exercise 2 in Chapter ; they are repeated here in Figure 9.) Assume that a 4-to-6-line decoder is available. Since there are only 0 valid excess-3 code words, only 0 of the 6 AND gate outputs ever become. So only those 0 outputs from a 4-to-6-line decoder will be used. They are indicated in Figure 9 by their decimal equivalents. Figure 9 is the truth table for each of seven output functions (the S i ) in terms of the four input variables. The circuit external to the decoder will consist of seven OR gates, one for each segment. Only one decision needs to be made: Which outputs from the decoder should become inputs to each OR gate? This is answered for each segment by listing the minterm numbers corresponding to each code word for which that segment output has the value. The minterm lists for the outputs corresponding to some of the segments are as follows: S 3 = Σ(3, 5, 6, 8, 0,, 2) S 4 = Σ(3, 4, 5, 6, 7, 0,, 2) (8) S 5 = Σ(3, 4, 6, 7, 8, 9, 0,, 2) S 6 = Σ(3, 5, 6, 8, 9, ) Only one of the OR gates (the one for S 6 ) is shown in Figure 20; there should be six others. Then, when an excess-3 code word corresponding to a decimal

21 52 Chapter 4 Combinational Logic Design w x y z 4 0 decoder Figure 20 Excess-3 to seven-segment code converter. digit appears at the input, the appropriate segments will light up, displaying the digit. Exercise Write the minterm lists for the three segments whose minterm lists were not given in (8). Confirm the inputs to the OR gate in Figure READ-ONLY MEMORY (ROM) A circuit for implementing one or more switching functions of several variables was described in the preceding section and illustrated in Figure 20. The components of the circuit are An n 2 n decoder, with n input lines and 2 n output lines One or more OR gates, whose outputs are the circuit outputs An interconnection network between decoder outputs and OR gate inputs The decoder is an MSI circuit, consisting of 2 n n-input AND gates, that produces all the minterms of n variables. It achieves some economy of implementation, because the same decoder can be used for any application involving the same number of variables. What is special to any application is the number of OR gates and the specific outputs of the decoder that become inputs to those OR gates. Whatever else can be done to result in a general-purpose circuit would be most welcome. The most general-purpose approach is to include the maximum number of OR gates, with provision to interconnect all 2 n outputs of the decoder with the inputs to every one of the OR gates. Then, for any given application, two things would have to be done: The number of OR gates used would be fewer than the maximum number, the others remaining unused. Not every decoder output would be connected to all OR gate inputs. This scheme would be terribly wasteful and doesn t sound like a good idea. Instead, suppose a smaller number, m, is selected for the number of OR gates to be included, and an interconnection network is set up to interconnect

23 54 Chapter 4 Combinational Logic Design x x 2 z z 2 z (a) m 0 m m 2 m 3 z z 2 z 3 (b) Figure 22 A ROM truth table and its program. A ROM can be completely fabricated such that all potential connections have been made. Such a ROM is also said to be blank. Programming the ROM for a specific application in this case consists of opening those connections that are unwanted. In this case, the blank ROM is said to be field programmable (designated PROM). The connections are made by placing a fuse or link at every connection point. In any specific application, the unwanted connections are opened or blown out by passing pulses of current through them. A measure of PROM cost is the number of fusible links, 2 n m. Once a ROM has been programmed, an input word x x 2... x n activates a specific word line corresponding to the minterm formed by the specific values of the x i. The connections in the output matrix result in the desired output word. EXAMPLE 3 Figure 22a gives the truth table for the interconnection matrix of a ROM. The truth table leads to the ROM program represented by the solid dots at the intersections of the input and output word lines in Figure 22b. Each input word defines an output word, as required by the truth table. If the input word is 0 (corresponding to minterm m ), for example, only output line z 2 will be activated because that is the only connection with m in the connection matrix. Hence, the output word will be 00, as confirmed also from the truth table. (Confirm from the truth table that the rest of the program is correct.) Exercise 2 A ROM is to be programmed to implement the conversion from excess-3 to seven-segment code whose table was given in Figure 9. ROMs come in standard sizes, and m = 7 is not one of them. The next larger standard size is m = 8. Hence, the truth table will have six more rows and one more column than shown in Figure 9. (Specify what the entries in the truth table will be for these extra rows and column.) Draw the appropriate number of crossing lines for the input and output words. Using the truth table, program the ROM by putting dots at the appropriate intersections of the two words. Some PROMs are fabricated so that it is possible to restore them to their blank condition after they have been programmed for a specific application; these are erasable PROMs, or EPROMs. They have some clear advantages over the nonerasable kind, but their cost is correspondingly higher.

24 Other LSI Programmable Logic Devices 55 In Exercise 2 the number of entries in the truth table (which corresponds to the number of links between the input and output words) is 2 n m = 6 8 = 28. Of these, fully half represent don t-cares. There are cases far worse than this; sometimes as few as percent of the links are used, resulting in considerable waste in such ROM implementations. Another implementation that avoids this waste would be most welcome. That s the subject of the next section. 5 OTHER LSI PROGRAMMABLE LOGIC DEVICES One way of looking at the ROM discussed in the previous section is as a device with a specific structure (a set of AND gates and a set of OR gates) that a designer can use to achieve desired outputs by making a few modifications. We might say that the ROM has been programmed to produce its specific outputs. There are other structures that have this property, namely, programmability. A generic name for them is programmable (or programmed) logic device (PLD). The ROM implements logic functions as sums of minterms. For n input variables there are 2 n minterms and, hence, 2 n AND gates, each one with n inputs. As just discussed, in a number of important logic functions, many of the AND gates and the links connecting them to the output OR gates are unused. We will now discuss two implementations in which some of this waste is avoided. Programmed Logic Array (PLA) The canonic sum-of-products implementation of a logic function is wasteful in two ways: in the number of AND gates used (as many as there are minterms, 2 n ) and in the number of inputs to each AND gate (n). Suppose we contemplate a reduced (possibly minimal) sum-of-products implementation. Given a logic function of n variables, the largest number of terms in a minimal sum-of-products expression representing this function is 2 n just half the number of minterms. (See Problem 36 in Chapter 3.) That means a savings of 50 percent in AND gates for the worst single-output case. Since there will be a reduced set of inputs to the AND gates, this saving in gates is paid for by the need to program not only the outputs of the AND gates but their inputs as well. The structure of the circuit that results is called a programmable (or programmed) logic array (PLA). It is illustrated in Figure 23 for the case n = 3 input variables, m = 4 output functions, and four AND gates. The diagram in Figure 23 is not a circuit diagram but a schematic diagram. A single line is shown to represent all inputs to each AND and OR gate. The number of input lines to each AND gate should be 2n, twice the number of inputs, to accommodate the possibility of connecting each variable or its complement to each AND gate. The number of input lines to each OR gate should equal the number of AND gates, say p. (For simplicity and without fear of confusion, even the gate symbols can be omitted.) The programmed connections between the inputs and the AND gates, and between the AND-gate outputs and the OR gates for a specific set of output functions are shown by the heavy dots at the intersections.

### Sistemas Digitais I LESI - 2º ano

Sistemas Digitais I LESI - 2º ano Lesson 6 - Combinational Design Practices Prof. João Miguel Fernandes (miguel@di.uminho.pt) Dept. Informática UNIVERSIDADE DO MINHO ESCOLA DE ENGENHARIA - PLDs (1) - The

### 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

### 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

### 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

### 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

### 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

### 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

### Using Logic to Design Computer Components

CHAPTER 13 Using Logic to Design Computer Components Parallel and sequential operation In this chapter we shall see that the propositional logic studied in the previous chapter can be used to design digital

### Figure 8-1 Four Possible Results of Adding Two Bits

CHPTER EIGHT Combinational Logic pplications Thus far, our discussion has focused on the theoretical design issues of computer systems. We have not yet addressed any of the actual hardware you might find

### Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

Points ddressed in this Lecture Lecture 8: ROM Programmable Logic Devices Professor Peter Cheung Department of EEE, Imperial College London Read-only memory Implementing logic with ROM Programmable logic

### 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

### 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)

### 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

### 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,

### 5 Combinatorial Components. 5.0 Full adder. Full subtractor

5 Combatorial Components Use for data transformation, manipulation, terconnection, and for control: arithmetic operations - addition, subtraction, multiplication and division. logic operations - AND, OR,

### 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

### 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

### 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

### 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

### 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

### 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

### 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.

### Switching Algebra and Logic Gates

Chapter 2 Switching Algebra and Logic Gates The word algebra in the title of this chapter should alert you that more mathematics is coming. No doubt, some of you are itching to get on with digital design

### RAM & ROM Based Digital Design. ECE 152A Winter 2012

RAM & ROM Based Digital Design ECE 152A Winter 212 Reading Assignment Brown and Vranesic 1 Digital System Design 1.1 Building Block Circuits 1.1.3 Static Random Access Memory (SRAM) 1.1.4 SRAM Blocks in

### 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

### FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder

FORDHAM UNIVERSITY CISC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. Science Spring, 2011 Lab 2 The Full-Adder 1 Introduction In this lab, the student will construct

### 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

### 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

### 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

### 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

### 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

Adder.T(//29) 5. Lecture 3 Adder ircuits Objectives Understand how to add both signed and unsigned numbers Appreciate how the delay of an adder circuit depends on the data values that are being added together

### MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1

MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable

### 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

### Lecture #21 April 2, 2004 Relays and Adder/Subtractors

Lecture #21 April 2, 2004 Relays and Adder/Subtractors In this lecture we look at a real technology for implementing gate circuits, as well as a more-or-less complete design for a general purpose adder/subtractor

### 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

### 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

### 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

### Systems I: Computer Organization and Architecture

Systems I: Computer Organization and Architecture Lecture 9 - Register Transfer and Microoperations Microoperations Digital systems are modular in nature, with modules containing registers, decoders, arithmetic

### 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

### 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

### Two's Complement Adder/Subtractor Lab L03

Two's Complement Adder/Subtractor Lab L03 Introduction Computers are usually designed to perform indirect subtraction instead of direct subtraction. Adding -B to A is equivalent to subtracting B from A,

### EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors I. Introduction I.a. Objectives In this experiment, parallel adders, subtractors and complementors will be designed and investigated. In the

### CSE140 Homework #7 - Solution

CSE140 Spring2013 CSE140 Homework #7 - Solution You must SHOW ALL STEPS for obtaining the solution. Reporting the correct answer, without showing the work performed at each step will result in getting

### Basic Logic Gates Richard E. Haskell

BASIC LOGIC GATES 1 E Basic Logic Gates Richard E. Haskell All digital systems are made from a few basic digital circuits that we call logic gates. These circuits perform the basic logic functions that

### 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

### The string of digits 101101 in the binary number system represents the quantity

Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for

### Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders

SE 370 Spring 2006 Introduction to Digital Design Lecture 12: dders Last Lecture Ls and Ls Today dders inary full 1-bit full omputes sum, carry-out arry-in allows cascaded s = xor xor = + + 32 ND2 11 ND2

### CONTENTS PREFACE 1 INTRODUCTION 1 2 NUMBER SYSTEMS AND CODES 25. vii

2006 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is CONTENTS PREFACE xv 1 INTRODUCTION 1 1.1 About Digital Design 1 1.2 Analog versus Digital 3 1.3 Digital Devices

### FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. The Binary Adder

FORDHAM UNIVERITY CIC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. cience pring, 2011 1 Introduction The Binar Adder The binar adder circuit is an important building

### 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:

### 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

### Multipliers. Introduction

Multipliers Introduction Multipliers play an important role in today s digital signal processing and various other applications. With advances in technology, many researchers have tried and are trying

### List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

G. H. RAISONI COLLEGE OF ENGINEERING, NAGPUR Department of Electronics & Communication Engineering Branch:-4 th Semester[Electronics] Subject: - Digital Circuits List of Experiment Sr. Name Of Experiment

### 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

### 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

### 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

### Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

Gates J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, T 77251 1. The Evolution of Electronic Digital Devices...1 2. Logical Operations and the Behavior of Gates...2

### Fundamentals of Digital Electronics

Fundamentals of Digital Electronics by Professor Barry Paton Dalhousie University March 998 Edition Part Number 32948A- Fundamentals of Digital Electronics Copyright Copyright 998 by National Instruments

### C H A P T E R. Logic Circuits

C H A P T E R Logic Circuits Many important functions are naturally computed with straight-line programs, programs without loops or branches. Such computations are conveniently described with circuits,

### ELEC 2210 - EXPERIMENT 1 Basic Digital Logic Circuits

Objectives ELEC - EXPERIMENT Basic Digital Logic Circuits The experiments in this laboratory exercise will provide an introduction to digital electronic circuits. You will learn how to use the IDL-00 Bit

### 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.

### Discrete Structures. Rajmohan Rajaraman Eric Ropiak Chris Burrows Ravi Sundaram

Discrete Structures Harriet Fell Javed A. Aslam Rajmohan Rajaraman Eric Ropiak Chris Burrows Ravi Sundaram Discrete Structures Version 2.1 Harriet Fell Javed A. Aslam Rajmohan Rajaraman Eric Ropiak Chris

### Digital Fundamentals

Digital Fundamentals Tenth Edition Floyd Chapter 1 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Analog Quantities Most natural quantities that we see

### Boolean Algebra Part 1

Boolean Algebra Part 1 Page 1 Boolean Algebra Objectives Understand Basic Boolean Algebra Relate Boolean Algebra to Logic Networks Prove Laws using Truth Tables Understand and Use First Basic Theorems

### 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

### 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

### DESIGN OF GATE NETWORKS

DESIGN OF GATE NETWORKS DESIGN OF TWO-LEVEL NETWORKS: and-or and or-and NETWORKS MINIMAL TWO-LEVEL NETWORKS KARNAUGH MAPS MINIMIZATION PROCEDURE AND TOOLS LIMITATIONS OF TWO-LEVEL NETWORKS DESIGN OF TWO-LEVEL

### DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs

DM9368 7-Segment Decoder/Driver/Latch with Constant Current Source Outputs General Description The DM9368 is a 7-segment decoder driver incorporating input latches and constant current output circuits

### plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;

### Logic Reference Guide

Logic eference Guide Advanced Micro evices INTOUCTION Throughout this data book and design guide we have assumed that you have a good working knowledge of logic. Unfortunately, there always comes a time

### Chapter 1: Digital Systems and Binary Numbers

Chapter 1: Digital Systems and Binary Numbers Digital age and information age Digital computers general purposes many scientific, industrial and commercial applications Digital systems telephone switching

### 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,

### 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

### RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY Fall 2012 Contents 1 LABORATORY No 1 3 11 Equipment 3 12 Protoboard 4 13 The Input-Control/Output-Display

### University of St. Thomas ENGR 230 ---- Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54

Fall 2005 Instructor Texts University of St. Thomas ENGR 230 ---- Digital Design 4 Credit Course Monday, Wednesday, Friday from 1:35 p.m. to 2:40 p.m. Lecture: Room OWS LL54 Lab: Section 1: OSS LL14 Tuesday

Experiment No. 1. THE DIGI DESIGNER Experiment 1-1. Socket Connections on the Digi Designer Experiment No. 2. LOGIC LEVELS AND THE 7400 QUADRUPLE 2-INPUT POSITIVE NAND GATE Experiment 2-1. Truth Table

### To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

Binary Numbers In computer science we deal almost exclusively with binary numbers. it will be very helpful to memorize some binary constants and their decimal and English equivalents. By English equivalents

### 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

### 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

### Operating Manual Ver.1.1

4 Bit Binary Ripple Counter (Up-Down Counter) Operating Manual Ver.1.1 An ISO 9001 : 2000 company 94-101, Electronic Complex Pardesipura, Indore- 452010, India Tel : 91-731- 2570301/02, 4211100 Fax: 91-731-

### Building Blocks for Digital Design

Building Blocks for Digital Design The construction of most digital systems is a large task. Disciplined designers in any field will subdivide the original task into manageable subunits building blocks

### Binary Numbering Systems

Binary Numbering Systems April 1997, ver. 1 Application Note 83 Introduction Binary numbering systems are used in virtually all digital systems, including digital signal processing (DSP), networking, and

### 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

### 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,

### 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

### ENGI 241 Experiment 5 Basic Logic Gates

ENGI 24 Experiment 5 Basic Logic Gates OBJECTIVE This experiment will examine the operation of the AND, NAND, OR, and NOR logic gates and compare the expected outputs to the truth tables for these devices.

### Lab 1: Study of Gates & Flip-flops

1.1 Aim Lab 1: Study of Gates & Flip-flops To familiarize with circuit implementations using ICs and test the behavior of different logic gates and Flip-flops. 1.2 Hardware Requirement a. Equipments -

CMOS Binary Full Adder A Survey of Possible Implementations Group : Eren Turgay Aaron Daniels Michael Bacelieri William Berry - - Table of Contents Key Terminology...- - Introduction...- 3 - Design Architectures...-

### Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

2 Ver..4 George Boole was an English mathematician of XIX century can operate on logic (or Boolean) variables that can assume just 2 values: /, true/false, on/off, closed/open Usually value is associated

### Lecture N -1- PHYS 3330. Microcontrollers

Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers

### Decimal Number (base 10) Binary Number (base 2)

LECTURE 5. BINARY COUNTER Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be

### Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Introduction Gates & Boolean lgebra Boolean algebra: named after mathematician George Boole (85 864). 2-valued algebra. digital circuit can have one of 2 values. Signal between and volt =, between 4 and

### A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Other architectures Example. Accumulator-based machines A single register, called the accumulator, stores the operand before the operation, and stores the result after the operation. Load x # into acc

### Cooperative Learning in a Digital Logic Course

Introduction Cooperative Learning in a Digital Logic Course Russell L. Pimmel http://www.foundationcoalition.org Active and cooperative learning (ACL) techniques have proved to be effective in a wide assortment

### 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

### Lecture 2. Binary and Hexadecimal Numbers

Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations