Laboratory II. Exploring Digital Logic

Size: px
Start display at page:

Download "Laboratory II. Exploring Digital Logic"

Transcription

1 Laboratory II Exploring Digital Logic Abstract Few devices in the world are as ubiquitous as the seven-segment display. This device, which was invented in the 1960 s, can be found everywhere from digital clocks to pinball machines. Though generally used for numbers, some letters may also be displayed, include forms of a, b, c, d, e, and f. This allows seven-segment displays to be used not only for decimal values, but hexadecimal as well. To use a seven-segment display, however, an engineer must know not only how to get a segment to glow but also which segments should glow for each character. Rules must be generated for each of the seven segments based upon the different possible characters to display. In this lab, students will learn a set of basic rules for converting inputs to outputs. Furthermore, they will learn how the seven-segment display works and how to use the logical rules in conjunction with the micro-controller to display a message. Objectives Students completing this lab will be able to: Construct and minimize up to three-variable logic functions, Design and build logic circuits with up to three input variables and seven output variables with a set number of TTL gates and, Design and build logic circuits to drive a standard 7-segment display. Background Binary Notation In EGR 53, you learned that the way computers store numbers is by keeping track of several 0s and 1s using binary notation. Binary is a number system that uses only the characters 0 and 1, so that each digit ends up representing some power of 2 rather than a power of 10. While this makes numbers take up for space to record, it allows the computer to perform lightening fast calculations. For this lab, you need to be able to understand binary notation as it relates to having a computer count from 0 to some number. The micro-controller for this lab will be used to generate a counter signal made up of either two or three different outputs. Because these outputs can only take on two values - on or off - they will be used to represent a binary digit. Specifically, imagine that you have three output wires connected to lights, and that a light represents a 0 if it is off and a 1 if it is on. You must decide which light is the 1s light, which is the 2s s light, and which is the 4s light. From there, you can interpret the lights to represent a number as follows: 4s Light 2s Light 1s Light Binary Decimal off off off off off on off on off off on on on off off on off on on on off on on on

2 Later you will see how to combine the three outputs with logic to produce different output functions based on what value the counter displays. Logical Operators, Truth Tables, and Gray Code In EGR 53, you also learned how to combine logical and relational operators to ask questions. The answers to these questions generally resulted in True of False (or logical 1s and 0s, respectively) that could be used to select certain pieces of code to run (if trees) or indicate that a certain piece of code was to run again (while loops). You can also use logical operators to write logical output functions based on input conditions. For example, assume that the micro-controller is keeping track of two temperatures. One output - for now call it P12 - is on if the temperature of the room is below 60 o F and off if it is 60 o F or above. This represents a Too Cold condition. Another output - say, P13 - is on if the temperature of the room is above 85 o F and off if it is 85 o F or below. This represents the Too Hot condition. Using these, you can determine a function for the Just Right condition, which basically happens when you are (NOT Too Cold) AND (NOT Too Hot). If some variable L1 is the Just Right function, you can write this as: L1 = ( P12) & ( P13) or using a more common notation for logical statements in ECE, L1 = P12 P13 where the bar over the variable means NOT and having variables multiplied by each other means AND. This latter part makes sense since for the product of two boolean to be 1, both variables must be 1. This exactly parallels the fact that for a logical AND to be true, both parts have to be true. Note that you can rewrite (NOT Too Cold) AND (NOT Too Hot) using DeMorgan s Theorem 1 as NOT (Too Cold OR Too Hot). This gives: or, again using more typical notation, L1 = (P12 P13) L1 = P12 + P13 where summation represents the OR operator. Note in this case that the bar stretches out over the entire term, meaning the NOT happens after the OR is completed. This is fundamentally different from LX = P12 + P13 which would be read as (NOT Too Cold) OR (NOT Too Hot), which will always be true! Once you determine the proper function, it can be used to generate a table that indicates the outputs of the function based upon all possible input combinations. This kind of table is known as a truth table, because it presents the different input combinations that make a function true (as well as how it is false). For example, for L1 above, the truth table would be: P12 P13 L Generally, truth tables are written in such a way that the inputs count up in binary from 0. For the truth table above, assuming P13 is your least significant, or 1s digit and P12 is your 2s digit, the inputs count from 0 to 3. 1 Elements of Digital Logic, Barrowman, p Parallax,

3 Compound Logic and Minimization Sometimes, you will end up writing complicated logical functions with several variables and may want to find the most efficient way to represent the function. For example, assume you are teaching a robot how to maneuver through a room while avoiding running into fires and getting stuck on walls. You have temperature sensors on either side of the front (Tright and Tleft, which indicate 0 if the temperature is loow and 1 if the temperature is high) as well as impact sensors on either side of the front (Iright and Ileft, which indicate 0 if the sensor is not against an object and 1 if the sensor is against an object). Given these inputs, you decide the courses of action given in Table 1. Note that the case number will eventually refer to the binary value obtained by translating the outputs. 0. If your right temperature is low and your left temperature is low and your right impact sensor is off and your left impact sensor is off, move forward one step 1. If your right temperature is low and your left temperature is low and your right impact sensor is off and your left impact sensor is on, back up a little then turn right 2. If your right temperature is low and your left temperature is low and your right impact sensor is on and your left impact sensor is off, back up a little then turn left 3. If your right temperature is low and your left temperature is low and your right impact sensor is on and your left impact sensor is on, back up a little then turn right 4. If your right temperature is low and your left temperature is high and your right impact sensor is off and your left impact sensor is off, turn right 5. If your right temperature is low and your left temperature is high and your right impact sensor is off and your left impact sensor is on, back up a little and turn right 6. If your right temperature is low and your left temperature is high and your right impact sensor is on and your left impact sensor is off, back up a little and turn right 7. If your right temperature is low and your left temperature is high and your right impact sensor is on and your left impact sensor is on, back up a little and turn right 8. If your right temperature is high and your left temperature is low and your right impact sensor is off and your left impact sensor is on, back up a little then turn left 9. If your right temperature is high and your left temperature is low and your right impact sensor is off and your left impact sensor is off, turn left 10. If your right temperature is high and your left temperature is low and your right impact sensor is on and your left impact sensor is off, back up a little then turn left 11. If your right temperature is high and your left temperature is low and your right impact sensor is on and your left impact sensor is on, back up a little then turn left 12. If your right temperature is high and your left temperature is high and your right impact sensor is off and your left impact sensor is off, back up a little turn around 13. If your right temperature is high and your left temperature is high and your right impact sensor is off and your left impact sensor is on, back up a little turn around 14. If your right temperature is high and your left temperature is high and your right impact sensor is on and your left impact sensor is off, back up a little turn around 15. If your right temperature is high and your left temperature is high and your right impact sensor is on and your left impact sensor is on, back up a little turn around Table 1: Decision tree for a hypothetical robot The first step along the path to determining and minimizing the output functions is to give names to the input and output functions. In this case, the input functions already have convenient names - Tright, Tleft, Iright, and Ileft. The output functions can be named based on the actions the robot might take: Forward, BackAndRight, BackAndLeft, UTurn, Right, and Left. Now the decision tree can be recast as a set of truth tables as in Table 2 Given the truth tables, it is somewhat easier to construct logical equations for six different output 3

4 Case Tright Tleft Iright Ileft Forward BackAndRight BackAndLeft UTurn Right Left Table 2: Truth tables for six different actions for hypothetical robot functions. For example, an equation for the BackAndLeft would be: BackAndLeft = Tright Tleft Iright Ileft + Tright Tleft Iright Ileft + Tright Tleft Iright Ileft + Tright Tleft Iright Ileft Similar equations can be developed for each of the other possible robot actions. The issue then becomes: is this the most efficient way to write this function? For BackAndLeft in particular, you may notice that if the temperature on the right is high, and the temperature on the left is low, and the robot has hit something on the right side, then it does not matter what is going on with the left side - the robot will back up and turn left. This demonstrates one of the properties of boolean algebra, which is the combining property: or, in this case, ab + ab = a (Tright Tleft Iright) Ileft + (Tright Tleft Iright) Ileft = Tright Tleft Iright This takes two products of four terms and reduces it to a single product of three terms. The difficulty is in the amount of work required to visualize such combinations, especially for multiple variables. It is for that reason that we use a visual device called a Karnaugh map 2. The Karnaugh map is nothing more than an organizational tool to help visualize possible applications of the combining property. The key is to use order the different variables according to a Gray code, which is a sequence of codes, or calculations, where consecutive codes differ in one variable only. 3. You do this so that elements appearing right next to each other represent changes in only one variable. That way, if there are two 1s next to each other, you know you can combine those elements together to eliminate one of the variables. For multi-variable functions, larger collections can be merged to reduce the number of terms and the size of each term. To create the Karnaugh map of a function, pick the variables and then create a two-dimensional version of the truth table by assigning variables to a particular dimension. For example, a possible two-input function you want to minimize may be: F1 = ab + ab Pick a to go along the top and b to go down the side, then use Gray code for the ordering (which for this example is easy - just go from 0 to 1). Then fill in the appropriate value of the truth table in the proper blocks. The Karnaugh map for F1 would be: 2 Fundamentals of Digital Logic, Brown and Vranesic, p McGraw Hill, Fundamentals of Digital Logic, Brown and Vranesic, p McGraw Hill,

5 b xxx a Now comes the minimization - once you have your 1s and 0s together, look for elements that are right next to each other with the same value. For example, in this case, there are the two 1s that are right on top of each other. What you are looking for are sub-matrices of similar values that have dimensions rxc, where r and c are both integer powers of 2. In this example, the 1s form a sub-matrix that is 2x1, so it is a valid grouping for potential minimization. The number of variables you can eliminate from a grouping is equal to log 2 (r c), because that value tells you how many combinations you have in the sub-matric. In the sub-matrix described above, log 2 (r c) = 1 meaning you should be able to get rid of one variable. The variable you can get rid of is whichever one changes in the adjacent blocks. In this case, b is the one that is changes, so b is irrelevant in that sub-matrix and will be removed from the term, thus leaving only some function of a. From the table headings, you can see that b truly does not matter to F1 - F1 is true if a is true regardless of b, and so we can minimize the function to be F1=a. This process can be extended to three- and four-variable functions quite easily. The major organizational change is that you will have to represent two input variables in a single dimension. This is where the Gray code comes in. For example, if we were to choose to minimize the BackAndLeft function, we could choose to have Tright and Tleft along the side and Iright and Ileft along the top. Using the Gray code to determine how each dimension is established yields the Karnaugh map skeleton below. To clarify what each block means, note that x represents the location where Tright is 0, Tleft is 1 (both of which come from the fact x is in the 01 row), Iright is 1, and Ileft is 0 (the latter two coming from x being in the 10 column). Using the same indexing, you can see that y represents the location where Tright is 1, Tleft is 1, Iright is 0, and Ileft is 0. TrightTleft xxx Iright Ileft x 11 y 10 Once the table is organized, you can fill in the logical values. It is often easier to do this if you consider the binary numbers represented by the four variables. For example, if you assume that Tright represents the most significant, or 8s digit, and Ileft represents the least significant, or 1s digit, you can form four-digit binary numbers by looking first at the row and then the column. x above, for example, is in the or 6 10 block while y is in the or block. The full set of block numbers would give: TrightTleft xxx Iright Ileft Now you can simply take the case numbers from the decision tree and enter them into the Karnaugh map. For instance, if you create the Karnaugh map for BackAndLeft you get: TrightTleft xxx Iright Ileft From this, look for the largest sub-matrices that satisfy the size constraints given above and determine the smallest subset of these matrices that covers every 1 at least once. You are allowed to overlap, but do not overlap needlessly. For example, given the locations above, there are three sub-matrices of size 2, but you only need two of them to completely represent the output of the function. The first sub-matrix contains 0010 and 1011 (first and last entries in the fourth column - so note that you are allowed to wrap), meaning 5

6 you can eliminate one variable. This combination covers two values of Tright, meaning Tright is irrelevant for those two blocks, and the logic of the sub-matrix can be represented by Tleft Iright Ileft. A possible second sub-matrix contains 1001 and 1011, which covers two values of Ileft. The logic for that submatrix is thus Tright Tleft Iright. There is a third sub-matrix of size two that contains 1011 and 1010, but since both of those values have already been represented by other logic, you do not need to include that particular expression. Generally, you try to make the largest groupings possible and then make sure you do not include terms that are wholly included by other terms. When finished, you can combine the logic for each of your sub-matrices with OR statements. For example, the final minimized logic for this function is: BackAndLeft = Tleft Iright Ileft + Tright Tleft Iright which is decidedly shorter than the initial version. The same process could be used to minimize the BackAndRight function. The Karnaugh map for that is: TrightTleft xxx Iright Ileft In this case, you can form a 2x2 sub-matrix with the first and second rows of the second and third columns. Because the sub-matrix has four entries, you can eliminate two variables total. Looking at the specific rows and columns for that sub-matrix, you can see that Tleft and Iright are irrelevant - the logic those four entries have in common involves Tright being false and Ileft begin true. Logically, that portion becomes Tright Ileft. All that remains is the 1 at The largest group it can be a part of is a 1x2 sub-matrix of the terms 0111 and You can eliminate Ileft from this grouping to get Tright Tleft Iright. Now that all the possible 1s are covered, you can write the BackAndRight as a combination of the two sub-matrices: BackAndRight = Tright Ileft + Tright Tleft Iright As a final note on Karnaugh maps, occasionally it is easier to make large groupings of 0s than it is of 1s. For those times, you simply build the reverse logic and throw a NOT at the beginning. Basic Gate Symbols and Operation When planning out a logic circuit, you can either draw it by hand or use a computer aided design tool such as MMLogic to help. Regardless, you need to know what the common symbols for different logic gates are. Figure 1 is a screen-shot from the MMLogic program that displays the symbols for 2, 3, and 4-input versions of the six most common gates: AND, OR, XOR, NAND, NOR, and XNOR. The gates for IS (a buffer) and NOT are also shown. Note that the inverting functions NAND, NOR, XNOR, and NOT have circles at the output node - this indicates you are inverting the typical output of a gate. When you want to represent a logical function, you simply connect wires from the input variables to the input nodes of a gate. The value obtain by the gate s function will obtained at the output node. For example, the two different circuits to represent the Just Right function, L1a = P12 P13 L1b = P12 + P13 are in Figure 2 and there are two different input combinations shown. Note that in the top figure, both switches are set to off, meaning P12 is a 0 and P13 is a 0, leading to L1a being on. For the bottom figure, P12 is on, so the function shows that L1b is off. Seven Segment Displays One version of the Seven-Segment Display is discussed on pp of the Elements of Digital Logic book from Parallax. Basically, a seven-segment display is nothing more that seven (or potentially 6

7 Figure 1: Common Logic Gate Symbols 7

8 Figure 2: Circuits for L1a = P12 P13 and L1b = P12 + P13 eight) light emitting diodes in a specific pattern. The eighth light comes from the decimal point, which is added to some versions of the display. There are two fundamentally different ways you can send inputs to a seven-segment display. In one version, which Parallax uses, you have eight inputs - one for each of the segments and one for the decimal point. Whenever you want to have a particular diode or set of diodes come on, you run current through the corresponding inputs. This input scheme leads to maximum flexibility for the display, as you can choose any 1 of the 256 possible combinations of LEDs to come on. On the other hand, it also means you have to do some translation if you know you want to display a particular number. For example, if simply want the number 2 to show up, you have to use the map on p. 125 of the Elements of Digital Logic book to figure out that you will need to turn diodes A, B, D, E, and G on. To get the number 7, you would need A, B, and C only. Because there are many instances where you simply want to display a number, another version of the seven-segment display is available that is created specifically to convert the binary representation of a number into the number in base 10 on the display. For these displays, there are only five inputs where one input controls the decimal point and the other four are translated from binary into the appropriate signals to the other seven segments to produce the number in decimal form. For these, if you want to display a 2, you input the binary version of 2 into the four numerical inputs - in other words, low-low-high-low. For a 7, you would put in low-high-high-high. Furthermore, the translator built into the chip is generally made to understand hexadecimal as well, so you can get the letters A, b, C, d, E, and F by entering the binary versions of 10, 11, 12, 13, 14, and 15 respectively. The mix of upper and lower case letters comes from the fact that, with seven segments, you cannot represent a, B, or D as distinct from o, 8, and 0. Furthermore, you cannot represent lower case E or F at all. Convention has C displayed upper case. The MMLogic program is capable of using both 8- and 5-input versions of the seven-segment display. The graphical pinout for MMLogic is somewhat different from the actual wiring of the display used by Parallax. It is also somewhat difficult to connect since there are eight leads very close together. To alleviate this problem, you will be given a model for a pre-wired display that uses MMLogic senders and receivers. These two structures in MMLogic make wiring easier, as you can hook some input variable to a sender and then use a receiver somewhere else in the circuit to relay that value along. The contents of the Two7SD.lgi file are shown in Figure 3. Notice that the top-to-bottom order of the MMLogic inputs matches the counter-clockwise order of the Parallax display. If you need more than two displays, you simply need to change the names of the senders and receivers. Note that you can have multiple receivers for a single sender, but you cannot have multiple senders with the same name. To test various combinations of the eight inputs, you will be given the Sample7SD.lgi file shown in Figure 4. When this program is running, you can change any of the eight inputs to see what shows up on the display. In this case, power is being delivered to segments C, E, F, and G and an approximation of the letter h is on the display. 8

9 Figure 3: Two7SD.lgi file showing two sender/receiver enabled seven segment displays Figure 4: Sample7SD.lgi file showing an h Equipment Equipment, including software, needed for this laboratory includes 1. Parallax Digital Logic Trainer Board, including 17 grounded LEDs, breadboard, 4 pushbuttons, and pre-installed Texas Instrument 74-series TTL logic gates, specifically: (2) 74C00 quad NAND (2) 74C02 quad NOR (2) 74C08 quad AND (2) 74C32 quad OR (1) 74C14 hex NOT Parallax Elements of Digital Logic Instruction Booklet Parallax Basic Stamp 2 Micro-controller Parallax PBASIC compiler Softronix Multimedia Logic program (1) Seven-segment display (8) 470 Ω resistors Connecting wires Experiment 1. Parallax Guide Chapter 5 Activities 1 and 2 Activity 1: Guided Tour. Note especially that the trainer board (parallax digital trainer, or PDT) has several built-in components that will prove useful for this lab, including digital logic chips along the top, LEDs at various locations, pushbuttons, and rocker switches. Also notice that the PDT work space allows up to two connections for each input to each gate. If you need more than two connections, you will need to use the breadboard. Activity 2: Exploring Gates. The contact bounce problem is one that can cause problems if you try to use pushbuttons to simulate a crisp change from 5 V to 0 V or vice versa. You will discover a way around it by using the micro-controller outputs to simulate the action of a switch. 9

10 Also, if you discover a problem with a particular gate while running tests, note this in your lab book and inform the instructor. Either the gates will be replaced or, for just this week, you will need to avoid that particular gate. Activities 3 & 4. Though you will not be performing Activities 3-4, you should know the truth table for the NAND, NOR, XOR, and XNOR gates. 2. Parallax Guide Chapter 6 Activities 4 and 5 Activity 4: Building the Multiplexer. A multiplexer is basically an electrical device that allows you to have several input channels and select which one goes to the output. Basically, it is a cable box - your cable box receives multiple inputs all centered on different frequencies, as the channel changers selects the channel (or address) that is allowed to send its information to your single output (the television set). Activity 5: Building the Demultiplexer. A demultiplexer allows you to take a single input signal and decide which among several outputs will receive the signal. An analogy for this would be going to an electronics store and wanting to test out different CD players with a CD that you bring. You get to decide which player (address) gets the output from the single CD (input) that you have. 3. Micro-controller-based counter. Rather than exploring Chapter 7 and beyond of the Parallax guide at this time, you will write a program to make your BS2 count to 7 in binary using PBASIC program for use in later parts of this lab. To do this, you will write a program that counts to 1, then expand to 3, and finally to 7. You will be using outputs P12-P14 on the digital logic trainer as your bits with P12 serving as the least significant bit (2 0, or the 1 s place) and P14 serving as your most significant bit (2 2, or the 4 s place). To visualize the outputs, connect P12 through P14 to LEDs 0 through 2, respectively. That way, the number of the LED is the same as the power of 2 it represents. Note that these LEDs already have their anode connected to the ground of the device - generally, you will need to make sure that the anode is wired to ground. Once you have connected the three wires, you should enter, save, compile, and run the following program, OneBitCounter.bs2: {$STAMP BS2} {$PBASIC 2. 5 } LOW 12 DO PAUSE 500 TOGGLE 12 LOOP This program should toggle LED 0 every half-second. Congratulations - you now have a one bit counter! The other two LEDs remain dark, indicating the the 2 s place and the 4 s place remain at 0. This kind of output would be useful if you wanted to simulate the action of a single pushbutton being switched every half second, because avoids any problems with contact bounce. Next, you expand this counter to two bits so that you can both examine circuits with two inputs and count to 3. Enter, save, compile, and run the following code for TwoBitCounter.bs2: {$STAMP BS2} {$PBASIC 2. 5 } LOW 13 LOW 12 DO PAUSE 500 TOGGLE 12 PAUSE 500 TOGGLE 13 TOGGLE 12 LOOP 10

11 This version should toggle LED 0 every half-second and LED 1 every second. If you look carefully, you are now counting from 0 to 3 with those two lights. Later, you will design a three-bit counter program as part of the Exploration for use with your Assignment. 4. The logic behind ECE. For this, you are going to design the logic necessary to make a seven-segment display write the letters ECE in order with a space after the second E. TRUTH TABLE LISTED FOR OUTPUTS TRUTH TABLE FOR EACH SEGMENT MMLogic Information WIRING DIAGRAM ASSISTANCE Exploration Expand the TwoBitCounter.bs2 program into a ThreeBitCounter.bs2 program by having the microcontroller also toggle P14. When completed, you should run through the numbers 0 through 7 in binary every 4 seconds. Assignment Now that you have a three-bit counter and experience in programming a scrolling message board, design and build the logic for writing SUCCESS with a space after the third S. TRUTH TABLE LISTED FOR OUTPUTS TRUTH TABLE FOR EACH SEGMENT MMLogic information - stop here as a take home assignment? 11

Chapter 1: Logic systems

Chapter 1: Logic systems Chapter 1: Logic systems 1: Logic gates Learning Objectives: At the end of this topic you should be able to: identify the symbols and truth tables for the following logic gates: NOT AND NAND OR NOR XOR

More information

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

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

More information

Introduction to Karnaugh Maps

Introduction to Karnaugh Maps Introduction to Karnaugh Maps Review So far, you (the students) have been introduced to truth tables, and how to derive a Boolean circuit from them. We will do an example. Consider the truth table for

More information

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES This chapter in the book includes: Objectives Study Guide 7.1 Multi-Level Gate Circuits 7.2 NAND and NOR Gates 7.3 Design of Two-Level Circuits Using

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: Digital Logic Our goal for the next few weeks is to paint a a reasonably complete picture of how we can go from transistor

More information

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder Overview The objective of this lab is to understand two basic combinational circuits the multiplexor and

More information

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014 Page 1/12 Exam 1 May the Schwartz Instructions: be with you! Turn off all cell phones and other noise making devices and put away all electronics Show all work on the front of the test papers Box each

More information

Digital Electronics Final Examination. Part A

Digital Electronics Final Examination. Part A Digital Electronics Final Examination Part A Spring 2009 Student Name: Date: Class Period: Total Points: /50 Converted Score: /40 Page 1 of 13 Directions: This is a CLOSED BOOK/CLOSED NOTES exam. Select

More information

Digital Logic (2) Boolean Algebra

Digital Logic (2) Boolean Algebra Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh

More information

Why digital? Overview. Number Systems. Binary to Decimal conversion

Why digital? Overview. Number Systems. Binary to Decimal conversion Why digital? Overview It has the following advantages over analog. It can be processed and transmitted efficiently and reliably. It can be stored and retrieved with greater accuracy. Noise level does not

More information

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

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors CSC258 Week 3 1 Logistics If you cannot login to MarkUs, email me your UTORID and name. Check lab marks on MarkUs, if it s recorded wrong, contact Larry within a week after the lab. Quiz 1 average: 86%

More information

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2. Digital Circuits 1. Inputs & Outputs are quantized at two levels. 2. inary arithmetic, only digits are 0 & 1. Position indicates power of 2. 11001 = 2 4 + 2 3 + 0 + 0 +2 0 16 + 8 + 0 + 0 + 1 = 25 Digital

More information

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015

University of Florida EEL 3701 Summer 2015 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Tuesday, 30 June 2015 University of Florida EEL 3701 Summer 2015 Dr Eric M Schwartz Page 1/13 Exam 1 May the Schwartz be with you! Instructions: Turn off all cell phones and other noise making devices Show all work on the front

More information

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Contents. Chapter 3 Combinational Circuits Page 1 of 36 Chapter 3 Combinational Circuits Page of 36 Contents Combinational Circuits...2 3. Analysis of Combinational Circuits...3 3.. Using a Truth Table...3 3..2 Using a Boolean Function...6 3.2 Synthesis of

More information

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

More information

Boolean Algebra & Digital Logic

Boolean Algebra & Digital Logic Boolean Algebra & Digital Logic Boolean algebra was developed by the Englishman George Boole, who published the basic principles in the 1854 treatise An Investigation of the Laws of Thought on Which to

More information

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C. Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter 2.4-2.6, 3.2, C.5 C.6 Example: Big Picture Computer System Organization and Programming

More information

211: Computer Architecture Summer 2016

211: Computer Architecture Summer 2016 211: Computer Architecture Summer 2016 Liu Liu Topic: Storage Project3 Digital Logic - Storage: Recap - Review: cache hit rate - Project3 - Digital Logic: - truth table => SOP - simplification: Boolean

More information

Using a Microcontroller to Study the Time Distribution of Counts From a Radioactive Source

Using a Microcontroller to Study the Time Distribution of Counts From a Radioactive Source Using a Microcontroller to Study the Time Distribution of Counts From a Radioactive Source Will Johns,Eduardo Luiggi (revised by Julia Velkovska, Michael Clemens September 11, 2007 Abstract In this lab

More information

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates ECE 250 / CPS 250 Computer Architecture Basics of Logic Design Boolean Algebra, Logic Gates Benjamin Lee Slides based on those from Andrew Hilton (Duke), Alvy Lebeck (Duke) Benjamin Lee (Duke), and Amir

More information

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz Page 1/8 fpinstructions: Show all work on the front of the test papers. If you need more room, make a clearly indicated note on the front of the page, "MORE ON BACK", and use the back. The back of the

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS Copyright Cengage Learning. All rights reserved. SECTION 2.4 Application: Digital Logic Circuits Copyright Cengage Learning. All rights reserved. Application:

More information

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both). hapter : oolean lgebra.) Definition of oolean lgebra The oolean algebra is named after George ool who developed this algebra (854) in order to analyze logical problems. n example to such problem is: Prove

More information

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture) COSC 243 Introduction to Logic And Combinatorial Logic 1 Overview This Lecture Introduction to Digital Logic Gates Boolean algebra Combinatorial Logic Source: Chapter 11 (10 th edition) Source: J.R. Gregg,

More information

Combinational Logic Trainer Lab Manual

Combinational Logic Trainer Lab Manual Combinational Logic Trainer Lab Manual Control Inputs Microprocessor Data Inputs ff Control Unit '0' Datapath MUX Nextstate Logic State Memory Register Output Logic Control Signals ALU ff Register Status

More information

Combinational logic systems

Combinational logic systems Combinational logic systems Learners should be able to: (a) recognise 1/0 as two-state logic levels (b) identify and use NOT gates and 2-input AND, OR, NAND and NOR gates, singly and in combination (c)

More information

ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee

ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee ECE/CS 250: Computer Architecture Basics of Logic Design: Boolean Algebra, Logic Gates Benjamin Lee Slides based on those from Alvin Lebeck, Daniel Sorin, Andrew Hilton, Amir Roth, Gershon Kedem Admin

More information

Lab #15: Introduction to Computer Aided Design

Lab #15: Introduction to Computer Aided Design Lab #15: Introduction to Computer Aided Design Revision: 02 Nov 2016 Print Name: Section: GETTING FAMILIAR WITH YOUR BASYS3 DIGILAB BOARD. Problem 1: (26 points) Visually inspect the Digilab board, enter

More information

ECE/CS 250 Computer Architecture

ECE/CS 250 Computer Architecture ECE/CS 250 Computer Architecture Basics of Logic Design: Boolean Algebra, Logic Gates (Combinational Logic) Tyler Bletsch Duke University Slides are derived from work by Daniel J. Sorin (Duke), Alvy Lebeck

More information

Implementation of Boolean Logic by Digital Circuits

Implementation of Boolean Logic by Digital Circuits Implementation of Boolean Logic by Digital Circuits We now consider the use of electronic circuits to implement Boolean functions and arithmetic functions that can be derived from these Boolean functions.

More information

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

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q Digital Arithmetic In Chapter 2, we have discussed number systems such as binary, hexadecimal, decimal, and octal. We have also discussed sign representation techniques, for example, sign-bit representation

More information

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1 Ch 2. Combinational Logic II - Combinational Logic Contemporary Logic Design 1 Combinational logic Define The kind of digital system whose output behavior depends only on the current inputs memoryless:

More information

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 3 Additional Gates and Circuits Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active in

More information

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date. Schedule Date Day Class No. Dec Mon 25 Final Review 2 Dec Tue 3 Dec Wed 26 Final Review Title Chapters HW Due date Lab Due date LAB 8 Exam 4 Dec Thu 5 Dec Fri Recitation HW 6 Dec Sat 7 Dec Sun 8 Dec Mon

More information

Combinational Digital Design. Laboratory Manual. Experiment #6. Simplification using Karnaugh Map

Combinational Digital Design. Laboratory Manual. Experiment #6. Simplification using Karnaugh Map The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2013 Khaleel I. Shaheen Combinational Digital Design Laboratory Manual Experiment #6 Simplification

More information

EEE130 Digital Electronics I Lecture #4

EEE130 Digital Electronics I Lecture #4 EEE130 Digital Electronics I Lecture #4 - Boolean Algebra and Logic Simplification - By Dr. Shahrel A. Suandi Topics to be discussed 4-1 Boolean Operations and Expressions 4-2 Laws and Rules of Boolean

More information

Chapter 7 Logic Circuits

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

More information

Experiment 7: Magnitude comparators

Experiment 7: Magnitude comparators Module: Logic Design Lab Name:... University no:.. Group no: Lab Partner Name: Experiment 7: Magnitude comparators Mr. Mohamed El-Saied Objective: Realization of -bit comparator using logic gates. Realization

More information

CS311 Lecture: Introduction to Digital Logic

CS311 Lecture: Introduction to Digital Logic CS311 Lecture: Introduction to Digital Logic Objectives: last revised August 15, 2007 1. Ability to read simple logic diagrams 2. Ability to design simple combinatorial circuits 3. To introduce basic building

More information

CPS311 Lecture: Introduction to Digital Logic

CPS311 Lecture: Introduction to Digital Logic Objectives: CPS311 Lecture: Introduction to Digital Logic 1. Ability to read simple logic diagrams 2. Ability to design simple combinatorial circuits 3. To introduce basic building blocks of more complex

More information

Cs302 Quiz for MID TERM Exam Solved

Cs302 Quiz for MID TERM Exam Solved Question # 1 of 10 ( Start time: 01:30:33 PM ) Total Marks: 1 Caveman used a number system that has distinct shapes: 4 5 6 7 Question # 2 of 10 ( Start time: 01:31:25 PM ) Total Marks: 1 TTL based devices

More information

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 3 Additional Gates and Circuits Overview Part 1 Gate Circuits and Boolean Equations Binary Logic and Gates Boolean Algebra

More information

of Digital Electronics

of Digital Electronics 26 Digital Electronics 729 Digital Electronics 26.1 Analog and Digital Signals 26.3 Binary Number System 26.5 Decimal to Binary Conversion 26.7 Octal Number System 26.9 Binary-Coded Decimal Code (BCD Code)

More information

MC9211 Computer Organization

MC9211 Computer Organization MC92 Computer Organization Unit : Digital Fundamentals Lesson2 : Boolean Algebra and Simplification (KSB) (MCA) (29-2/ODD) (29 - / A&B) Coverage Lesson2 Introduces the basic postulates of Boolean Algebra

More information

CS/COE0447: Computer Organization and Assembly Language

CS/COE0447: Computer Organization and Assembly Language CS/COE0447: Computer Organization and Assembly Language Logic Design Introduction (Brief?) Appendix B: The Basics of Logic Design Dept. of Computer Science Logic design? Digital hardware is implemented

More information

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER 7. Exercises 17/ / /2 2 0 CHAPTER 7 Exercises E7. (a) For the whole part, we have: Quotient Remainders 23/2 /2 5 5/2 2 2/2 0 /2 0 Reading the remainders in reverse order, we obtain: 23 0 = 0 2 For the fractional part we have 2

More information

CARLETON UNIVERSITY. X = Y 0 0 X > Y 1 0 X < Y 0 1 never 1 1 happens. Examples

CARLETON UNIVERSITY. X = Y 0 0 X > Y 1 0 X < Y 0 1 never 1 1 happens. Examples CARLETON UNIVERSITY Deparment of Electronics ELEC 2607 Switching Circuits January 17, 2005 Laboratory 1. Overview; A 4-Bit Binary Comparator X 3 X 2 X 1 X 0 COMPARATOR Y 3 Y 2 Y 1 Y 0 4 DATA BITS LEAST

More information

Week-I. Combinational Logic & Circuits

Week-I. Combinational Logic & Circuits Week-I Combinational Logic & Circuits Overview Binary logic operations and gates Switching algebra Algebraic Minimization Standard forms Karnaugh Map Minimization Other logic operators IC families and

More information

CprE 281: Digital Logic

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

More information

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of EE 2449 Experiment 11 Jack Levine and Nancy Warter-Perez CALIFORNIA STATE UNIVERSITY LOS ANGELES Department of Electrical and Computer Engineering EE-2449 Digital Logic Lab EXPERIMENT 11 SEQUENTIAL CIRCUITS

More information

University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Examination

University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Examination University of Toronto Faculty of Applied Science and Engineering Department of Electrical and Computer Engineering Midterm Eamination ECE 241F - Digital Systems Wednesday October 11, 2006, 6:00 7:30 pm

More information

Fundamentals of Computer Systems

Fundamentals of Computer Systems Fundamentals of Computer Systems Boolean Logic Stephen A. Edwards Columbia University Summer 2015 Boolean Logic George Boole 1815 1864 Boole s Intuition Behind Boolean Logic Variables X,,... represent

More information

Exam for Physics 4051, October 31, 2008

Exam for Physics 4051, October 31, 2008 Exam for Physics 45, October, 8 5 points - closed book - calculators allowed - show your work Problem : (6 Points) The 4 bit shift register circuit shown in Figure has been initialized to contain the following

More information

Logic and Boolean algebra

Logic and Boolean algebra Computer Mathematics Week 7 Logic and Boolean algebra College of Information Science and Engineering Ritsumeikan University last week coding theory channel coding information theory concept Hamming distance

More information

MODULAR CIRCUITS CHAPTER 7

MODULAR CIRCUITS CHAPTER 7 CHAPTER 7 MODULAR CIRCUITS A modular circuit is a digital circuit that performs a specific function or has certain usage. The modular circuits to be introduced in this chapter are decoders, encoders, multiplexers,

More information

Number System conversions

Number System conversions Number System conversions Number Systems The system used to count discrete units is called number system. There are four systems of arithmetic which are often used in digital electronics. Decimal Number

More information

ENEL Digital Circuit Design. Final Examination

ENEL Digital Circuit Design. Final Examination ELECTRICAL AND COMPUTER ENGINEERING ENEL 353 - Digital Circuit Design Final Examination Friday, December 17, 1999 Red Gymnasium, 3:30PM - 6:30 PM Instructions: Time allowed is 3 hours. The examination

More information

1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output.

1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output. Chapter 1.10 Logic Gates 1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output. Microprocessors are the central hardware that runs computers. There are several components that

More information

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics Digital Circuits 1 Why are we studying digital So that one day you can design something which is better than the... circuits? 2 Why are we studying digital or something better than the... circuits? 3 Why

More information

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure. XOR - XNOR Gates Lesson Objectives: In addition to AND, OR, NOT, NAND and NOR gates, exclusive-or (XOR) and exclusive-nor (XNOR) gates are also used in the design of digital circuits. These have special

More information

EC-121 Digital Logic Design

EC-121 Digital Logic Design EC-121 Digital Logic Design Lecture 2 [Updated on 02-04-18] Boolean Algebra and Logic Gates Dr Hashim Ali Spring 2018 Department of Computer Science and Engineering HITEC University Taxila!1 Overview What

More information

Fundamentals of Digital Design

Fundamentals of Digital Design Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric

More information

Simplifying Logic Circuits with Karnaugh Maps

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

More information

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

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

More information

ENG2410 Digital Design Combinational Logic Circuits

ENG2410 Digital Design Combinational Logic Circuits ENG240 Digital Design Combinational Logic Circuits Fall 207 S. Areibi School of Engineering University of Guelph Binary variables Binary Logic Can be 0 or (T or F, low or high) Variables named with single

More information

WEEK 3.1 MORE ON KARNAUGH MAPS

WEEK 3.1 MORE ON KARNAUGH MAPS WEEK 3. MORE ON KARNAUGH MAPS Don t Cares Sometimes, we might have inputs and it doesn t matter what the output is; i.e., we don t care what the output is. These situations are called don t cares. Rather

More information

CHAPTER 12 Boolean Algebra

CHAPTER 12 Boolean Algebra 318 Chapter 12 Boolean Algebra CHAPTER 12 Boolean Algebra SECTION 12.1 Boolean Functions 2. a) Since x 1 = x, the only solution is x = 0. b) Since 0 + 0 = 0 and 1 + 1 = 1, the only solution is x = 0. c)

More information

CSC9R6 Computer Design. Practical Digital Logic

CSC9R6 Computer Design. Practical Digital Logic CSC9R6 Computer Design Practical Digital Logic 1 References (for this part of CSC9R6) Hamacher et al: Computer Organization App A. In library Floyd: Digital Fundamentals Ch 1, 3-6, 8-10 web page: www.prenhall.com/floyd/

More information

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms Review EECS 150 - Components and Design Techniques for Digital Systems Lec 06 Minimizing Boolean Logic 9/16-04 David Culler Electrical Engineering and Computer Sciences University of California, Berkeley

More information

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

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4 Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4 4.1.1 Signal... 4 4.1.2 Comparison of Analog and Digital Signal... 7 4.2 Number Systems... 7 4.2.1 Decimal Number System... 7 4.2.2 Binary

More information

CprE 281: Digital Logic

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

More information

Logic Design. Chapter 2: Introduction to Logic Circuits

Logic Design. Chapter 2: Introduction to Logic Circuits Logic Design Chapter 2: Introduction to Logic Circuits Introduction Logic circuits perform operation on digital signal Digital signal: signal values are restricted to a few discrete values Binary logic

More information

Read this before starting!

Read this before starting! Points missed: Student's Name: Total score: / points East Tennessee State University Department of Computer and Information Sciences CSCI 25 (Tarnoff) Computer Organization TEST 2 for Spring Semester,

More information

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1 Lecture 5 - Chapter 2 Outline Other Logic Gates and their uses Other Logic Operations CS 2420 Husain Gholoom - lecturer Page 1 Digital logic gates CS 2420 Husain Gholoom - lecturer Page 2 Buffer A buffer

More information

Digital electronic systems are designed to process voltage signals which change quickly between two levels. Low time.

Digital electronic systems are designed to process voltage signals which change quickly between two levels. Low time. DIGITL ELECTRONIC SYSTEMS Digital electronic systems are designed to process voltage signals which change quickly between two levels. High Voltage Low time Fig. 1 digital signal LOGIC GTES The TTL digital

More information

Possible logic functions of two variables

Possible logic functions of two variables ombinational logic asic logic oolean algebra, proofs by re-writing, proofs by perfect induction logic functions, truth tables, and switches NOT, ND, OR, NND, NOR, OR,..., minimal set Logic realization

More information

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II Administration: o Prayer Electricity and Electronics, Section 20.1, Digital Fundamentals: o Fundamentals:

More information

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Additional Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Presentation Outline Additional Gates and Symbols Universality of NAND and NOR gates NAND-NAND

More information

Please read carefully. Good luck & Go Gators!!!

Please read carefully. Good luck & Go Gators!!! Page 1/12 Exam 1 May the Schwartz be with you! Instructions: Turn off all cell phones and other noise making devices and put away all electronics Show all work on the front of the test papers Box each

More information

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes Page 1 of 10 School of Computer Science 60-265-01 Computer Architecture and Digital Design Winter 2009 Semester Midterm Examination # 1 Wednesday, February 25, 2009 Student Name: First Name Family Name

More information

CPS311 Lecture: Introduction to Combinatorial Logic

CPS311 Lecture: Introduction to Combinatorial Logic Objectives: CPS311 Lecture: Introduction to Combinatorial Logic 1. Ability to read simple logic diagrams 2. Ability to design simple combinatorial circuits 3. To introduce basic building blocks of more

More information

STUDY GUIDE Math 20. To accompany Intermediate Algebra for College Students By Robert Blitzer, Third Edition

STUDY GUIDE Math 20. To accompany Intermediate Algebra for College Students By Robert Blitzer, Third Edition STUDY GUIDE Math 0 To the students: To accompany Intermediate Algebra for College Students By Robert Blitzer, Third Edition When you study Algebra, the material is presented to you in a logical sequence.

More information

L2: Combinational Logic Design (Construction and Boolean Algebra)

L2: Combinational Logic Design (Construction and Boolean Algebra) L2: Combinational Logic Design (Construction and Boolean Algebra) Acknowledgements: Lecture material adapted from Chapter 2 of R. Katz, G. Borriello, Contemporary Logic Design (second edition), Pearson

More information

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

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D. Basic Eperiment and Design of Electronics LOGIC GATES Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Outline Boolean algebra Logic gates Karnaugh maps

More information

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary Number System Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary BOOLEAN ALGEBRA BOOLEAN LOGIC OPERATIONS Logical AND Logical OR Logical COMPLEMENTATION

More information

Chapter 2. Boolean Algebra and Logic Gates

Chapter 2. Boolean Algebra and Logic Gates Chapter 2 Boolean Algebra and Logic Gates Basic Definitions A binary operator defined on a set S of elements is a rule that assigns, to each pair of elements from S, a unique element from S. The most common

More information

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table Lesson Objectives In this lesson, you will learn about What are combinational circuits Design procedure of combinational circuits Examples of combinational circuit design Combinational Circuits Logic circuit

More information

Design of Sequential Circuits

Design of Sequential Circuits Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable

More information

Digital Logic Appendix A

Digital Logic Appendix A Digital Logic Appendix A Boolean Algebra Gates Combinatorial Circuits Sequential Circuits 1 Boolean Algebra George Boole ideas 1854 Claude Shannon, apply to circuit design, 1938 Describe digital circuitry

More information

Exercise booklet - Logic

Exercise booklet - Logic Name: Class: Date:......... Exercise booklet Logic BCD Counter Worksheet with excercises and repetitive tasks for students and learners Find the seven logic gates in the puzzle. The words can be hidden

More information

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Computers also need devices capable of Storing data and information Performing mathematical operations on such data Sequential Machines Introduction Logic devices examined so far Combinational Output function of input only Output valid as long as input true Change input change output Computers also need devices capable

More information

Binary addition example worked out

Binary addition example worked out Binary addition example worked out Some terms are given here Exercise: what are these numbers equivalent to in decimal? The initial carry in is implicitly 0 1 1 1 0 (Carries) 1 0 1 1 (Augend) + 1 1 1 0

More information

Contents. Chapter 2 Digital Circuits Page 1 of 30

Contents. Chapter 2 Digital Circuits Page 1 of 30 Chapter 2 Digital Circuits Page 1 of 30 Contents Contents... 1 2 Digital Circuits... 2 2.1 Binary Numbers... 2 2.2 Binary Switch... 4 2.3 Basic Logic Operators and Logic Expressions... 5 2.4 Truth Tables...

More information

Logic Gates and Boolean Algebra

Logic Gates and Boolean Algebra Logic Gates and oolean lgebra The ridge etween Symbolic Logic nd Electronic Digital Computing Compiled y: Muzammil hmad Khan mukhan@ssuet.edu.pk asic Logic Functions and or nand nor xor xnor not 2 Logic

More information

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs Appendix B Review of Digital Logic Baback Izadi Division of Engineering Programs bai@engr.newpaltz.edu Elect. & Comp. Eng. 2 DeMorgan Symbols NAND (A.B) = A +B NOR (A+B) = A.B AND A.B = A.B = (A +B ) OR

More information

Building a Computer Adder

Building a Computer Adder Logic Gates are used to translate Boolean logic into circuits. In the abstract it is clear that we can build AND gates that perform the AND function and OR gates that perform the OR function and so on.

More information

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra 4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra To design a digital circuit that will perform a required function, it is necessary to manipulate and combine the various input signals in certain

More information

Systems I: Computer Organization and Architecture

Systems I: Computer Organization and Architecture Systems I: Computer Organization and Architecture Lecture 6 - Combinational Logic Introduction A combinational circuit consists of input variables, logic gates, and output variables. The logic gates accept

More information

DIGITAL LOGIC CIRCUITS

DIGITAL LOGIC CIRCUITS DIGITAL LOGIC CIRCUITS Digital logic circuits BINARY NUMBER SYSTEM electronic circuits that handle information encoded in binary form (deal with signals that have only two values, and ) Digital. computers,

More information

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits. CS211 Computer Architecture Digital Logic l Topics l Transistors (Design & Types) l Logic Gates l Combinational Circuits l K-Maps Figures & Tables borrowed from:! http://www.allaboutcircuits.com/vol_4/index.html!

More information