|
CS1101: Laboratory 7
Logic Design with TKGate
Academic Year 2006-2007
Lecturer:
Dr. Barry O'Sullivan
Department of Computer Science
University College Cork
b.osullivan@cs.ucc.ie
|
Objective of this Lab
The objective of this lab is to introduce students to a logic design
tool called TKGate.
Submission
During this lab you will be asked to build a circuit of your own.
It must be submitted by 5pm Friday the 9th of February (Friday of this week).
Background
- To start TKGate type
tkgate
at the bash-shell prompt.
Take a look at it and then exit (select Quit from the File menu) the
program.
Now continue with the remaining instructions.
- Visit the
TKGate Web-site.
You should spend some time reading the
documentation on this site - at a minimum read up to Section 2.7.
- Start tkgate again.
- You will find that there is a tutorial that you can follow
by selecting the Help Menu. You
should familiarise yourself with this tutorials up to, but not
including, the section on Using Modules.
- You are now ready to build a simple circuit!
Tasks
- Create a design called
myFirstCircuit.v
- Place two switches on the canvas;
- Place of each of the following gates on the canvas:
- 1 AND Gate
- 1 OR Gate
- 2 NOT Gates (an inverter)
- 1 XOR Gate
- 1 NAND Gate
- 1 NOR Gate
- Place an LED (an output) on the canvas for each gate - that means
7 LEDS are required.
- Wire up each of the two-input gates to each switch - that is the
AND, OR, XOR, NAND and NOR Gates.
- Wire up one of the NOT Gates to each of the switches.
- Test your circuit by running it and toggling the switches.
- Submit your circuit using the following command:
cs1101submit myFirstCircuit.v
b.osullivan@cs.ucc.ie
Return to the
CS1101 Home Page