Title: Lab3 Tutorial using StateCAD
1Lab3Tutorial using StateCAD
2Objective
- 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
3Sequence Generator State Table
4Sequence Generator State Diagram
5Create a New Project
6Enter a Name and Location for the Project
1
2
3
7Select the Device and Design Flow for the Project
8Create a New Source
9Select State Diagram and Enter File Name
1
2
3
10New Source Information
11New Source Information
12Next Step
13Finish
14Create a Blank StateCAD
15State Machine Wizard Draw State Machines
Draw State Machines
16Select the Appearance of the State Machine
1
2
3
17Reset the State Machine
1
2
18Setup Transitions
19Placed Template State Diagram
20Edit Conditions in the transition arrow
State0?State1
Left-Click
21Output Wizard
1
2
22Enter Constraint Value
1
2
3
4
23Completed Transition
24Modified State Diagram
25Insert a New Transition
1
3
2
26Enter Constraint Value
1
2
Left-Click
3
4
27(No Transcript)
28State2?State1
2
3
4
1
Left-Click
29Final State Diagram
30Generate HDL
31Optimize Outputs for Speed
32Result Windows
33StateCAD HDL
34Create Test Bench (State Bench)
35State Bench
36Reset
37Input CLK
38Review Sequence Generator State Table
39Summary Sequence Generator State Table
- M0, then
- State 0?2?1?3?0
- M1, then
- State 0?1 ?0 ,
- State 2?0, and State 3?0.
40Check M0 Then DOUT 0,2,1,3(State 0,2,1,3)
41Check M1 Then DOUT 0, 1(State 0,1)
42Check M1 Then State2? State0 and State3?State0
43Questions and Answers