Accelerometer Design

  1. File | New Project Wizard
  2. name of this project? Accelerometer
  3. Click on "next"
  4. Click on "next"
  5. Device family: Cyclone V, Devices: Cyclone V SE Mainsteam
  6. Click on 5CSEMA5F31C6, then select "finish"
  7. File | New | Block Diagram/Schematic File
  8. File | Save as Accelerometer.bdf
  9. Tools
  10. Click on "Symbol Tool" Symbol Tool
  11. Select altera libraries and expand: | primitives | logic | xor XOR icon
  12. Position in center of grid
  13. Press "Escape" to turn off selected primitive
  14. Click on "Pin Tool" Pin Tool
  15. Select "input", place two inputs to left of XOR Two XOR Inputs
  16. Note: While the input is selected, use the cursor keys to make small adjustments within the grid
  17. Double click on each default name for pin; top one is SW0; bottom is SW1
  18. Extend each input pin to the left side of XOR; make sure the connector icon is visable Line Icon
  19. Note: If your connecting line extends too far, click on it, then right click and choose delete; pressing the delete key does not work
  20. Click on "Pin Tool" Pin Tool
  21. Select "output", place one output to the right of XOR XOR Output
  22. Rename default pin name to f (click or right click and choose "properties"
  23. Optional: Using the "A" symbol, annotate the grid Annotated Simple Gride
  24. Click on the Save icon
  25. File | Create/Update | Create HDL Design File from Current File
  26. File Type: VHDL
  27. File | Open "vhd" file just created
  28. File | Create/Update | Create Symbol Files for Current File
  29. Processing | Start Compliation
  30. Choose "Assignments | Pin Planner"
  31. Using the values above, select the proper locations for each pin Simple XOR Pin Layout
    1. F: LOC PIN_V16
    2. SW0: LOC PIN_AB12
    3. SW1: LOC Pin_AC12
  32. Close out Pin Assignment module
  33. Tools | Programmer
  34. Click on "Auto Detect"; select 5CSEMA5 and click "OK"
  35. Double click on 5CSEMA5, select SOF from output_files
  36. Click on "Program/Configure"; click on "Start"

Return to Projects Section