1 / 44

Lab3 Tutorial using StateCAD

Lab3 Tutorial using StateCAD. Objective. This tutorial will give you exposure to using StateCAD and VHDL Using HDL Bencher and Modelsim for simulating the functional design This tutorial shows you how to create, using StateCAD and VHDL, a simple sequence generator.

dmitri
Download Presentation

Lab3 Tutorial using StateCAD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab3Tutorial using StateCAD

  2. Objective • This tutorial will give you exposure to using StateCAD and VHDL • Using HDL Bencher and Modelsim for simulating the functional design • This tutorial shows you how to create, using StateCAD and VHDL, a simple sequence generator

  3. Sequence Generator State Table

  4. Sequence Generator State Diagram

  5. Create a New Project

  6. Enter a Name and Location for the Project 1 檔名開頭請勿使用數字或特殊符號並不要使用中文為檔名 2 3

  7. Select the Device and Design Flow for the Project

  8. Create a New Source

  9. Select State Diagram and Enter File Name 1 檔名開頭請勿使用數字或特殊符號 並不要使用中文為檔名 2 3

  10. New Source Information 1 2

  11. New Source Information

  12. Next Step

  13. Finish

  14. Create a Blank StateCAD

  15. State Machine Wizard: Draw State Machines Draw State Machines

  16. Select the Appearance of the State Machine 1 2 3

  17. Reset the State Machine 1 2

  18. Setup Transitions

  19. Placed Template State Diagram

  20. Edit Conditions in the transition arrow State0State1 Double Click

  21. Output Wizard 1 2

  22. Enter Constraint Value 1 2 3 Key in 4 5

  23. Completed Transition

  24. Modified State Diagram

  25. Insert a New Transition 3 Left-Click 1 2 Left-Click

  26. Enter Constraint Value 1 Double Click 2 3 4

  27. State2State1 2 3 4 1 Double Click

  28. Final State Diagram

  29. Generate HDL 2 1

  30. Optimize Outputs for Speed

  31. Result Windows

  32. StateCAD HDL

  33. Create Test Bench (State Bench)

  34. State Bench

  35. Reset 1

  36. Input CLK 1

  37. Review Sequence Generator State Table

  38. Summary Sequence Generator State Table • M=0, then State 02130…… • M=1, then State 01 0…… , State 20, and State 30.

  39. Check M=0 Then DOUT 0,2,1,3(State 0,2,1,3) M=0

  40. Check M=1 Then DOUT 0, 1(State 0,1) 1 2 Double Click M=1

  41. Check M=1 Then DOUT 0, 1(State 0,1) 1

  42. Check M=1 or M=0 Then State2 State0 and State3State0

  43. Questions and Answers

More Related