








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for an exercise on designing and implementing digital logic circuits using NAND gates. It covers the basics of Boolean algebra, logical functions and gates, and the use of NAND and NOR gates to implement other logic gates. The exercise includes a table of contents, a list of required theoretical knowledge, and a series of steps to design and implement the circuits. It also mentions various hazards and safety precautions.
Typology: Exams
1 / 14
This page cannot be seen from the preview
Don't miss anything!









Version 1.0 (24 March 2016)
Fig. 1. The symbols of additional logic gates and their truth tables.
Moreover, two additional derived operators are very important in practice. The first is called exclusive-or (EX-OR) or parity (in Polish: operator ALBO, WYŁĄCZNE LUB). The second is defined as the negation NOT of EX-OR (EX-NOR) and is called logical biconditional, logical equality, or logical equivalence (in Polish: funkcja równoważności lub funkcja tożsamości).
Fig. 2. The symbols of additional logic gates and their truth tables.
To design the logic circuits the following laws of Boolean algebra are commonly used: commutativity, associativity, distributivity, and De Morgan's laws. Note that distributivity of disjunction over conjunction and both De Morgan’s laws do not have their counterparts in ordinary algebra of real numbers.
Property For conjunction For disjunction Commutativity A ⋅ B = B ⋅ A A + B = B + A Associativity A ⋅ ( B ⋅ C )=( A ⋅ B )⋅ C A + ( B + C )=( A + B )+ C Distributivity A ⋅ ( B + C )= A ⋅ B + A ⋅ C A + B ⋅ C =( A + B )⋅( A + C ) De Morgan's laws (^) A ⋅ B ⋅K = A + B +K A + B +K = A ⋅ B ⋅K Basic identities A ⋅ 0 = 0 A ⋅ 1 = A A ⋅ A = A A ⋅ A = 0
A + 1 = 1 A + 0 = A A + A = A A + A = 1 Additional identities A ⋅ (A + B) = A A + A ⋅ B = A + B ( A + B )⋅( A + B )= B
A + A ⋅ B = A A ⋅ (A + B) = A ⋅ B A ⋅ B + A ⋅ B = B
Table 1. Principal identities and laws of Boolean algebra.
Using De Morgan’s laws it can be proved that only NAND and NOR logic gates are universal. All other types of Boolean operators (i.e., AND, OR, NOT, EX-OR, and EX-NOR) can be implemented as a suitable network of just NAND or just NOR gates. Reduction of a set of logical functors used to implement any Boolean function has many advantages and is often used in practice.
Suppose that analysis of a certain control problem led to the following truth table, which describes the response W of a system for all possible logic states of the four inputs A , B , C , and D.
A B C D W A B C D W 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 0 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 – 1 1 1 1 –
Table 2. A logical function written in the form of a truth table. Dash (–) are used for cases in which the logic state of output does not matter.
If one is given a truth table of a Boolean function, it is easy to write the function in a canonical sum form, i.e. as a sum of minterms, where each minterm is a logical product of all input variables in either literal or negated form and is related to one unique row, which has output W = 1 in the truth table
Note, that all operations occurring in Eq. (5) can be implemented directly employing assumed available gates, while the outer logical product (AND) in Eq. (6) must be expressed as a negation (NOT) of negated product (NAND)
W = ( AC ) ( AD ) ( ABC ). (7)
As seen in figures 4 and 5 a hardware implementation of the function given by Eq. (7) requires more NOT gates than in the case of Eq. (5), but smaller number of inputs of NAND gates in the circuit shown in Fig. 5 leads to a similar amount of work effort when building both systems. These solutions, however, are not equivalent in terms of signal propagation time from inputs to output.
Fig. 4. Schematic of a system implementing the function (5).
Fig. 5. Schematic of a system implementing the function (7).
The block of logic state switches are composed of five switches, which allow to select 0 or 1 logic state at the sockets below the switches. When more than five independent inputs must be driven, please use also the sockets on the bottom of the front panel, which has fixed 0 or 1 state. Moreover, the block contains three generators of single square pulse. The generators are used only to investigate sequential logic circuits, which go beyond the scope of the present experiment.
Fig. 6. The front panel of the block of logic state switches.
The table of logic gates contains 4 NOT gates, 8 two-input NAND gates, and 8 three-input NAND gates (fig. 7a). All other functors must be implemented as a network of available NAND and NOT gates. Alternatively, a set of 12 two-input NAND gates and 8 three-input NAND gates (Fig. 7b) may be available in the laboratory. The missing NOT gate may be implemented e.g. as two-input NAND gate with a jumper between the inputs.
The block of logic probes contains 10 independent channels (fig. 8). There are a one input socket for each channel with red and green LED lights, which indicate the high and low logic state, respectively. When the investigated state changes continuously the both lights may be visible. Oscillations should not appear in correct combinational circuits, so if it occurs, you should check the network of connections. When the input of logic probe is in the high-resistance state or the applied voltage does not correspond to any specific logic state, the both lights are switched off. If the input of logic probe is connected with the output of any logic gate or logic state switch, such a situation indicates a failure of the cable or device, or a lack of power supply.
Fig. 8. The front panel of the block of logic probes.
All experimental modules described above are powered by a single laboratory power supply SIGLENT SPD3303D [10]. Among the three channels of this power supply only the channel with a fixed voltage of +5V DC is used in this exercise. Alternatively, plug-in power supply +5V DC with cable terminated with banana plugs may be available in the laboratory.
First, you need to prepare your own project of combinational logic circuit. Then, you can begin to connect the circuit according to the project using available logic gates. The response of your circuit will be investigated by logic probe for all combinations of input states. Next, the experimental truth table will be compared with the theoretical one.
Report has to be composed of:
w 1
G 1 4 kW
w 2
G 2 2 kW
w 3
Circuit diagram for the
The report will be evaluated for the language, completeness, correctness, clarity of presentation of the results (in the form of tables, functions and circuit diagrams together with descriptions) and quality of discussion and conclusions. All of the components listed above will be evaluated in the report. Theoretical introduction is not required and is not included in the assessment. Moreover, the assessment for the complete and correct report depend on the total number of marks received for the solutions documented in the scratchpad and approved by the supervisor. Unless the supervisor has specified otherwise, the following table applies:
The sum of marks for solved problems The highest score of the report on a scale of 0 ... 5 points 0 failed 1 2 pkt. 2 3 pkt. 3 4 pkt. ≥ 4 5 pkt.
[1] J. Kalisz, Podstawy elektroniki cyfrowej , WKiŁ, Warszawa 2002. [2] P. Horowitz, W. Hill, Sztuka elektroniki , WKiŁ, Warszawa 2001, [3] U. Tietze, Ch. Schenk, Układy półprzewodnikowe , WNT, Warszawa 2009. [4] M. Molski, Wstęp do techniki cyfrowej , WKiŁ, Warszawa 1989. [5] R. Ćwirko, M. Rusek, W. Marciniak, Układy scalone w pytaniach i odpowiedziach , WNT, Warszawa, 1987. [6] W. Traczyk, Układy cyfrowe. Podstawy teoretyczne i metody syntezy , WNT, Warszawa
[7] P. Misiurewicz, Układy automatyki cyfrowej, Wydawnictwa Szkolne i Pedagogiczne, Warszawa, 1984. [8] A. Rusek, Podstawy elektroniki , część 2, Wydawnictwa Szkolne i Pedagogiczne, Warszawa, 1983. [9] W. Głocki, Układy cyfrowe , Wydawnictwa Szkolne i Pedagogiczne, Warszawa, 2008.
[10] B. Zbierzchowski, T. Łuba, K. Jasiński, M. A. Markowski, Synteza logiczna w układach programowalnych , Wydawnictwa Politechniki Warszawskiej, Warszawa, 1992.