Using Logic Works Fa 07
Using Logic Works Fa 07
Getting Started
LogicWorks 4.1 Avaliable in EWS Labs Digital Computer Lab Rm. L426 Engineering Hall Rm. 406B8
http://www.ews.uiuc.edu/labs/
What is LogicWorks?
A software that allows simulation of hardware components and their interactions. Advantages of using a simulator
Cost Time
Important
4 HWs (e.g. HW 3,5,8,10) will contain LogicWorks problem. Make sure to know how to use LogicWorks yourself. Be neat and organized!
Use labels on pins, instead of crossing wires everywhere Typically, data flows from left to right.
(Except in our datapath, where it flows up down up)
University of Illinois at Urbana Champaign
Todays outline
Interface
Simulation Gates: and, or, not, ... Simulation IO: binary switch, hex keyboard, binary probe, hex display Simulation Logic: adder, clock, flip-flop, decoder, mux double click device in parts palette single click in layout to place device
University of Illinois at Urbana Champaign
Interface (2)
Timing diagram
Can be accessed under View Timing Window For sequential circuits (HW8 & 10) Shows clock and signals over time Zoom in and out using toolbar
Interface (3)
Drawing Toolbar
Zap to delete lines & components - useful to cleanup mistakes Text tool to add labels and pin names Signal wire (1-bit) Bus wire (multi-bit)
Interface (4)
Simulation Toolbar
For sequential circuits (HW8 & 10) Adjust simulator clock speed As alternative to using a fixed clock speed, use binary switch as "clock" and manually toggle when a clock cycle happens. Easier to verify that everything happened correctly.
University of Illinois at Urbana Champaign 9
Interface (5)
10
Interface (6)
Schematic menu
Design Preferences
Show printed page breaks Make sure components don't span page breaks Show background grid
11
Interface (7)
Keyboard shortcuts
12
Connecting devices
Naming the pins reduces the mess Drag wire from one pin to another Use signal or bus tool
Ends must contact intersect is not enough! Entire wire & pins should turn yellow when selected
University of Illinois at Urbana Champaign 13
Be careful using gates with inverters Making gates with more inputs
Append the gates to each other Use some logic BUT be careful on the implications E.g. AND-6: a six input AND gate
Use AND-8 What to do with remaining pins? Use AND-3 plus AND-4 How to connect?
E.g. AND-6
Binary switch
Binary probe
Enter 1 bit To move switches (and most of the other components too) hold down shift while clicking Display 1 bit. Really useful for debugging! Z: unknown value somewhere a pin is disconnected C: conflict value 2 conflicting pins with same label Sometimes just need to toggle inputs
University of Illinois at Urbana Champaign 15
Hex keyboard
Hex display
Debugging
Remember yellow
17