# Project 3, Exercise 1:

## Overview

This Exercise is based on the material covered in Real Digital Project 3, which can be found in the red tab to the right. A downloadable document for this exercise is available in the orange tab to the right. The mention of grading within the downloadable document is due to the exercise material being used as course work for an electrical engineering class at a university.

##### Before beginning this exercise, you shouldâ€¦
• Be familiar with reading and constructing basic logic circuits.
• Be familiar with logic equations and their relation to logic circuits.
• Know how to operate Windows computers and Windows programs.
##### After completing this exercise, you shouldâ€¦
• Construct a logic circuit from a logic equation.
• Understand CAD tool use in basic circuit design.
• Be able to implement any given combinational circuit using the Xilinx ISE schematic editor.
• Be able to simulate any logic circuit.
• Be able to use a logic simulator to verify a given circuit's behavior.

#### Problem 1.

Sketch circuits for the following logic equations. Y <= (A and B and C) or not ((A and not B and C and not D) or not (B or D));

X <= (A xor (B and C) xor not D) or (not (B xor C) and not (C or D))

#### Problem 2.

Sketch circuits and write VHDL assignment statements for the following equations.

• F = Εm(1,2,6)
• F = ΠM(0,7)

#### Problem 3.

Write logic assignment statements for the following circuit.

#### Problem 4.

Sketch circuits and write VHDL assignment statements for the truth tables below.

#### Problem 5.

Sketch POS circuits for the 2XOR and 2XNOR functions.

#### Problem 6.

Sketch the circuit described by the netlist shown, and complete the timing diagram for the stimulus shown to document the circuit's response to the example stimulus. Use a 100ns vertical grid in your timing diagram, and show all inputs and outputs.

#### Problem 7.

Create a truth table that corresponds to the simulation shown below. Show all input and output values in the truth table, and sketch a logic circuit that could have been used to create the waveform.

#### Problem 8.

The Seattle Mariners haven't had a stolen base in 6 months, and the manager decided it was because the other teams were reading his signals to the base runners. He came up with a new set of signals (pulling on his EAR, lifting one LEG, patting the top of his HEAD, and BOWing) to indicate when runners should attempt to steal a base. A runner should STEAL a base if and only if the manager pulls his EAR and BOWs while patting his HEAD, or if he lifts his LEG and pats his HEAD without BOWing, or anytime he pulls his EAR without lifting his LEG. Sketch a minimal circuit that could be used to indicate when a runner should steal a base.

#### Problem 9.

A room has four doors and four light switches (one by each door). Sketch a circuit that allows the four switches to control the light—each switch should be able to turn the light on if it is currently off, and off if it is currently on. Note that it will not be possible to associate a given switch position with “light on” or “light off”—simply moving any switch should modify the light's status.

• Other product and company names mentioned herein are trademarks or trade names of their respective companies. © 2014 Digilent Inc. All rights reserved.