Lab GH27-13
AND, OR, D-FF
Lever
20 points

OEES 235

Back to Main Page

 


  1. Get into ispLever Project Navigator
  2. File, New Project
  3. Use gh27_13 as the project name. (Lever doesn't like spaces or dashes. Be sure to use an underscore.)
  4. At the right of the Location box is a button with three dots. Click this button.
  5. Find your folder (in My Documents, your floppy, or flash drive) and single-click it.
  6. Click the Make New Folder button.
  7. Name the new folder gh27_13.
  8. Press Enter (on the keyboard) and then click OK.
  9. In the Design Entry Type box, choose Schematic/VHDL
  10. Click Next
  11. In the Family box, choose ispLever Default Device
  12. Click Next.
  13. When the Add Source window comes up, click Next.
  14. Click Finish.
  15. Click Window, Schematic Editor (on the menu bar).
  16. There should be a window within the window that opens, and it should be named Drawing. This is the Drawing Toolbar.
    • If there is no Drawing Toolbar, click View, Drawing Toolbar.
  17. In the Drawing Toolbar, click the AND gate icon in the upper left-hand corner. This is the Add Symbol tool.
  18. In the remaining steps, toolbar means the Drawing Toolbar (unless otherwise stated).
  19. In the Library box, click the line that contains the word generic.
  20. Click and2.
  21. In the drawing area, click the mouse to place the AND gate in your drawing.
  22. Do the same to place an OR gate (or2) and a D flip-flop (FD1S1A).
  23. Click the Move tool (the four-headed arrow in the center of the drawing toolbar).
  24. Click the plus magnifying glass on the main toolbar.
  25. Draw a box around the three symbols.
  26. Move the gates and the flip-flop into the positions shown in the schematic at the top of this Web page.
    • To use the Move tool, first click the object you want to move and then release the mouse button. You may then move the object to the desired position.
  27. Click the Add wire tool.
  28. Wire up the components.
    • Once you get to the end of a wire, do a right-click to break off the wire.
  29. Add short wires onto the two AND gate inputs and onto the lower OR gate input. Also, add a short wire to the Q output of the flip-flop.
    • This is necessary because of a quirk in the schematic editor: You can't add IO connectors directly to the leads coming out of a component.
  30. Click the Add Net Name tool (second one down in the middle toolbar column).
  31. Type A in the lower left-hand corner of the screen, and press Enter.
  32. Put the center of the crosshairs directly over the red box on the end of the wire coming from the top input of the AND gate.
  33. Do the same to add the net names LFXP10C-5F388C.
  34. For net name D, use the same procedure, except put the crosshairs on the blue line going between the OR gate and the flip-flop.
  35. Click the I/O marker tool (second one down in the right toolbar column).
  36. The window that comes up should already have Input selected.
  37. Draw a box around net names A, B, C, and CLK.
  38. Choose Output in the I/O box.
  39. Draw a box around net name Q.
  40. Click File, Save As (in the menu bar).
  41. Be sure gh27_13 appears in the Save in box.
  42. Put gh27_13 in the File name box.
  43. In Project Navigator, highlight LFXP10C-5F388C in the Sources in Project window.
  44. Click Source, Import (menu bar).
  45. Double click gh27_13 (which is the schematic file you just saved).
  46. Below  LFXP10C-5F388C, you should now see [gh27_13(gh27_13.sch)].
  47. That's all for this project. For the next project, we'll use this schematic file to create the programming for the PLD (programmable logic device).
 
Back to Main Page
1