- Become more familiar with Logicworks
- Learn about the Truth Table program.
- Practice with truth tables and state diagrams.
- Design simple circuits.

set path=($path ~ee260/bin)in your .cshrc file. If you don't know what this means then you're probably unfamiliar with Unix. Then see the TA or faculty instructor.

Next, create the following directories and subdirectories somewhere in your account: EE260/Lab/Lab2/. In Lab2, use the Truth Table program to enter the following truth table:

Input | Output

a1 a0 | d1 d0

0 0 | 1 1

0 1 | 0 1

1 0 | 0 1

1 1 | 1 0

Save in the two different formats. See what these files look like using an editor like "vi" or "pico".

Read about programming PROMs in Logicworks.

Be sure to read the rest of this lab assignment, so that you are prepared.

Select MC2 and attach binary switches and probes to it. "Cloc" is the clock input, and "Cont" is another input. 1" and "Y0" are the outputs. You may assume that the output equals the state.

From the truth table, create a HEX file using the Truth Table program. Then create a PROM in Logicworks and label it "FA". Due to the limitations of Logicworks, your PROM will have 4 rather than 3 inputs. Check that the PROM is a full adder by using binary switches and probes.

When Control = 0, the circuit increments its state by 1 with each clock transition, with the exception that if the current state = 3 (the largest possible value) then the next state is 0. Thus, with each clock transition, the output changes as follows: .... 00, 01, 10, 11, 00, 01, ......

When Control = 1, the circuit decrements its state by 1 with each clock transition, with the exception that if the current state = 0 (the smallest possible value) then the next state is 3. Thus, with each clock transition, the output changes as follows: .... 00, 11, 10, 01, 00, 11, .....

You will implement it as a Mealy circuit with a 74175 for the state register and a PROM for the combinational circuit.

Current State, Control, Next State, Output(Y1,Y0)

Attach binary switches at the inputs and logic probes at the outputs. Debug until it works. Demonstrate it to the TA when you have it working.

Title: EE 260 Spring 2004

Laboratory 2 Designing Circuits with LogicWorks.

Team Members:

Date:

Your report should have the following three sections.

1. Introduction

Explain the objectives of the assignment.

2. Accomplishments

Explain all the tasks you accomplished. You should have the following figures with appropriate figure captions.

- Figure 1. Truth Table of MC1.
- Figure 2. State Diagram of MC2.
- Figure 3. Truth Table of FA
- Figure 4. State Diagram of Counter
- Figure 5. State Transition Table of Counter
- Figure 6. Print out of the Logicworks circuits that contains Counter attached to logic switches and probes.

Also explain the equipment you used, what each team member did, and any difficulties you encountered and how you solved them.

3. Conclusions

Give your conclusions and observations (anything you want to say about the lab).