The course web site s notes entitled Switches, Gates and Circuits which can be found at will be useful to you throughout the lab.

Similar documents
Combinational Logic. By : Ali Mustafa

Chapter 3 Combinational Logic Design

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Foundations of Computation

Unit 3 Session - 9 Data-Processing Circuits

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

Circuits & Boolean algebra.

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

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

UNIVERSITY OF WISCONSIN MADISON

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

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

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

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

Logic. Combinational. inputs. outputs. the result. system can

Chapter 1: Logic systems

MC9211 Computer Organization

Systems I: Computer Organization and Architecture

Experiment 7: Magnitude comparators

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

1 Boolean Algebra Simplification

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

Review: Additional Boolean operations

CSE 140 Midterm I - Solution

Unit 2 Boolean Algebra

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

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

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

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

Lecture 22 Chapters 3 Logic Circuits Part 1

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

6 Simplification of. Boolean Functions

Cs302 Quiz for MID TERM Exam Solved

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Lab #15: Introduction to Computer Aided Design

Combinational Logic Trainer Lab Manual

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

Latches. October 13, 2003 Latches 1

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Purpose: Materials: WARNING! Section: Partner 2: Partner 1:

Unit 8A Computer Organization. Boolean Logic and Gates

Mealy & Moore Machines

Floating Point Representation and Digital Logic. Lecture 11 CS301

Exclusive OR/ Exclusive NOR

Logic and Boolean algebra

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

CSE370 HW3 Solutions (Winter 2010)

MODULAR CIRCUITS CHAPTER 7

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

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

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

CS61c: Representations of Combinational Logic Circuits

θ Beam Pivot F r Figure 1. Figure 2. STATICS (Force Vectors, Tension & Torque) MBL-32 (Ver. 3/20/2006) Name: Lab Partner: Lab Partner:

Logic Gate Level. Part 2

NAND, NOR and XOR functions properties

Lecture 2 Review on Digital Logic (Part 1)

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

Computer Organization: Boolean Logic


Sample Test Paper - I

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

EGC221: Digital Logic Lab

Logic Design. Chapter 2: Introduction to Logic Circuits

CSC9R6 Computer Design. Practical Digital Logic

Computer organization

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

Logic Gates - Introduction

Philadelphia University Student Name: Student Number:

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

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

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

Philadelphia University Student Name: Student Number:

Logic Design I (17.341) Fall Lecture Outline

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Chapter 3 Combinational Logic Design

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

211: Computer Architecture Summer 2016

Propositional Logic: Equivalence

Projects about Quantum adder circuits Final examination June 2018 Quirk Simulator

Unit 2 Session - 6 Combinational Logic Circuits

CSC258: Computer Organization. Digital Logic: Transistors and Gates

CprE 281: Digital Logic

CHAPTER1: Digital Logic Circuits Combination Circuits

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

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

COMBINATIONAL LOGIC FUNCTIONS

EE 209 Spiral 1 Exam Solutions Name:

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Boolean Algebra & Logic Gates. By : Ali Mustafa

Conservation of Mechanical Energy Activity Purpose

CS311 Lecture: Introduction to Digital Logic

CS/COE0447: Computer Organization and Assembly Language

CPS311 Lecture: Introduction to Digital Logic

Computer Science. 19. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section 6.1.

LAB 3 - VELOCITY AND ACCELERATION

ELCT201: DIGITAL LOGIC DESIGN

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

Transcription:

Circuits Lab Names: Objectives Learn how circuits work, different properties of circuits, and how to derive truth tables, circuits from functions and simply circuits using Boolean circuit equivalence.. Introduction This lab will concentrate on building and understanding circuits. It will use a tool developed by two former computer science majors here at Gordon College called Circuit Sandbox. The course web site s notes entitled Switches, Gates and Circuits which can be found at will be useful to you throughout the lab. We will start off by creating a simple circuit to help you get familiar with how Circuit Sandbox works. Then we will move into more depth in exploring properties of circuits and then finally look at a couple of mystery circuits that are essential to computing. Note: In order to print from circuit sandbox - you use the File/Export Model as Image command. Save the image file in a known location and then open it and print. (Print and attach all the circuits you create.) Note: TA will initial at various places in lab (TA ) Part 1: Create a simple circuit in Circuit Sandbox 1. Start Circuit Sandbox. (Click on the beach ball) 2. Build a circuit that looks like the one in the diagram below. 3. Run and play with the switches and answer the questions below. Observations Record the truth table that the above circuit produces. The inputs are numbered from top to bottom so input A is at the top etc. 1

Input A Input B Input C Input D Output What is the Boolean expression that the truth table and circuit represents? Let output be M. (TA ) Part 2: Circuit Properties 1. In Circuit Sandbox draw a circuit containing two switches. 2. Draw a NAND-gate and an OR-gate each with their own LED output. 3. Draw two inverters (NOT-gates) hooked up to the inputs of the OR-gate. 4. Hook the inputs on the NAND-gate and the inverters to the switches. 5. The diagram should look like the one below. 6. Now run the circuit and try all the different switch positions. 2

Observations What do you observe? Record the results in the truth table below. A B Output 1 Output 2 Which of the Boolean laws does this demonstrate? (see appendix A) (TA ) Part 3: Create a Boolean expression and circuit from a truth table 1. Use the sum-of-products algorithm to convert the following truth table into a Boolean expression. A B C Result 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Boolean Expression: 2. Now put your circuit into the sandbox, verify that it works correctly, and print. (TA ) Part 4: Create a truth table, expression and circuit from a circuit description. 1. An odd parity bit is an extra bit, attached to the end of a string of bits, which is set to 1 or 0 in such a way that the entire string (including the parity bit) contains an odd number of 1 s. For example, if the original string of bits is 01101010, then the parity bit show be 1, yielding the result 011010101 with an odd number of 1 s. If the original string is 100110, the parity bit is 0 since the original string of bits already had an odd number of 1 s. Create a circuit that produces as its output the correct odd parity bit to accompany 3 one-bit input values. In other words, the circuits job is to decide what the parity should be for a 3 bit input string. (ie. If the input bits are 111 then the parity bit will be 0). Create a neat truth table, Boolean expression, and the working circuit in Circuit Sandbox. (Print and attach the circuit) 3

Odd Parity Truth Table: Odd Parity Boolean Expression: Have a TA initial that the circuit works correctly Part 5: Create a truth table and circuit from a function 1. Given the following function create a truth table. M = A BC+A ( M = ABC + A) A B C A BC+A 2. From this truth table or function construct a circuit. Print out the circuit and attach it. 3. NAND gates can be arranged to build every other type of gate. Convert the circuit diagram from the previous step to a diagram containing only NAND gates. Try to use as few gates as possible. (Hint: look at the demonstrated law in part 2 - this law is the basis for transforming all circuits into a circuit of just NAND gates.) 4. Use Circuit Sandbox to create your circuit of just NAND gates and verify that it performs as expected. Print out this circuit and attach it as well. (TA ) 4

Part 6: Simplification Circuit#1 1. Given this function: (QP(R + P))P + (QR) - create its circuit and diagram below. 2. Now using the Boolean laws discussed in class and given in appendix A - simplify it as much as possible and give the new simplified function: 3. Now use Circuit Sandbox to demonstrate that these circuits are the same. (In other words create both of the circuits and see that they function the same.) 5

Circuit#2 1. Give the Boolean function for this circuit (label the input: P and Q). 2. Now using the Boolean laws discussed in class and given in appendix A - simplify your function as much as possible: 3. Now use Circuit Sandbox to demonstrate that these circuits are the same. (In other words, create both of the circuits and see that they function the same.) Part 7: Primary Circuits 2-to-1 Multiplexer 1. Create this circuit: (switches from top to bottom: A, B, C) 2. Create a truth table that represents this circuit. (be neat in creating your table) 6

3. Run the circuit and set the switches to different states and observe how it changes the output. 2-to-4 Decoder 1. Using Circuit Sandbox, create the circuit that matches the truth table below. A B Out1 Out2 Out3 Out4 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 2. Run the circuit and set the switches to different states and observe how it changes the output. 3. What is a possible use of this device? 7

Appendix A: Boolean Equivalence Laws 8