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

  1. 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.
  2. 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.
  3. Start tkgate again.
  4. 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.
  5. You are now ready to build a simple circuit!

Tasks

  1. Create a design called myFirstCircuit.v
  2. Place two switches on the canvas;
  3. Place of each of the following gates on the canvas:
  4. Place an LED (an output) on the canvas for each gate - that means 7 LEDS are required.
  5. Wire up each of the two-input gates to each switch - that is the AND, OR, XOR, NAND and NOR Gates.
  6. Wire up one of the NOT Gates to each of the switches.
  7. Test your circuit by running it and toggling the switches.
  8. Submit your circuit using the following command:
    cs1101submit myFirstCircuit.v
    

b.osullivan@cs.ucc.ie

Return to the CS1101 Home Page