Name1:___________________________
Name2:___________________________
Lab Assignment #1, Due October 10, 1997
Due 5:00PM, to be placed under the door of AP&M'4840
Introduction: The main objective of this Lab assignment is to help you get used to the tools you will be using during this course.
This lab assignment consists of two parts. In the first
part, you will implement the alarm clock in example 1.1 in the textbook by using LogicWorks.
In the second part of the experiment, you will measure the characteristics of some logic gates by using an oscilloscope.
There is an example design called ExampleClock
.
You can download and use it if you want. I also added 2 components to the
library, which will make your life much eaiser. The components are
alarm, and clock. They have A(adjust), AM(minute adjust), AH(hour adjust) inputs
to set the clock and the alarm.
Part 1: Alarm Clock Simulation
The alarm clock that you will implement will measure time in a different scale than the one given in your book. A day consists of 16 hours, each hour consists of 16 minute and each minute consists of 16 seconds.
(You will use 4-bit counters for this implementation. You can count up to 15 by using a 4-bit counter, i.e. 0,1,...,14,15.)
For the rest of the implementation, follow the structural representation in figure 1.4, page 6, Gajski.
About Logic Works:
In order to be able to implement the alarm clock, you will need to use
some logic components, such as counters, comparators, display units,
etc. There are different libraries provided by LogicWorks. Each library contains components relevant to the name of the library. For example, the library primio contains HeXDisplay, BinarySwitch, BinaryProbe, clock, etc. The library primlogi contains adders, counters, buffers, registers, decoders, etc. The library primgate contains AND, OR, NOR, XOR, NOT, and other gates.
For this design you will need a 4-bit comparator, which is not available in the original libraries. You can download the CSE140L library from the class home page. This library currently contains only a 4-bit comparator. (The CSE140L library will be updated whenever necessary during this course.)
Some useful hints:
- In order to be able to start the simulation you need to put a clock in your design sheet. In this case, you will need to connect the clock to the counters in order to be able to increment them.
- Be aware of the fact that even if some lines seem to be connected, they may not be in actuality connected. If you are not sure, you can move the components to see whether the lines connecting the components move together with the component.
Part 2: Characteristics of logic gates
In this part you will need to actually build circuits to measure the input/output characteristics.
Use the following components:
- 74LS04 Inverter
- 74LS00 Nand gate
- 74LS02 Nor gate
Before building the circuit on the breadboard, check the input/output pin connections of the components in the TTL Logic Data Book.
Do not forget to connect Ground and VCC (power) pins. VCC should be connected to +5 volts for these gates.
For each of the above gates fill in the following tables:
74LS04 Inverter
| Input | Output(Logic Level) | Output(Volts) |
| 0 | | |
| 1 | | |
74LS00 Nand Gate
| Input1 | Input2 | Output(Logic Level) | Output(Volts) |
| 0 | 0 | | |
| 0 | 1 | | |
| 1 | 0 | | |
| 1 | 1 | | |
Signature: ____________________________________
74LS00 Nor Gate
| Input1 | Input2 | Output(Logic Level) | Output(Volts) |
| 0 | 0 | | |
| 0 | 1 | | |
| 1 | 0 | | |
| 1 | 1 | | |
Signature: ____________________________________
Some useful hints: - Note that for the inputs, logic level 0 (zero) corresponds to 0 volts (connect the input to the ground), logic level 1 corresponds to 5 volts. For the outputs: the output level should be between 0-5 volts. According to the measurement, you will decide whether the logic level is 0 or 1.
- Do not forget to connect the GND (ground) of the oscilloscope to the
ground of your circuit.
- Double check your circuit before you turn on the power supply of the breadboard. If you are not sure, you can show your connections to the assistants. This is important, because you may burn your components. Connecting 12 volts instead of 5 volts may provide the same undesired results.
- The connections of Nand and Nor gates are different. Do not make any connection without looking in the TTL Logic Data Book.
Requirements
For the first part, you will need to submit a printout of your design in LogicWorks. Be careful while you are designing your circuit, since you will be asked to further improve this design in the next labs.
You will need to demonstrate your working circuits to the Lab assistants during their office hours and get your handouts signed. You have to return the signed handouts and the filled tables with your report.