stateflow toolbox stateflow ® is an environment for modeling and simulating combinatorial and...

10

Upload: justin-wade

Post on 05-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and
Page 2: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and
Page 3: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Stateflow Toolbox

Stateflow® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and flow charts. Stateflow lets you combine graphical and tabular representations, including state transition diagrams, flow charts, state transition tables, and truth tables, to model how your system reacts to events, time-based conditions, and external input signals.

With Stateflow you can design logic for supervisory control, task scheduling, and fault management applications. Stateflow includes state machine animation and static and run-time checks for testing design consistency and completeness before implementation.

Page 4: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Sum of Product

Page 5: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

332211 xaxaxaY ***

(Simulink/Stateflow method)

Page 6: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Verilog codeSimulink/Stateflow method

Page 7: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Limitations

Stateflow has a large number of features, some of which may never have reasonable hardware implementations. Other features,while feasible to implement in hardware, were not supported by HDL simulink Coder for the sake of keeping the code simple. The limitations of SF2VHD are on thenumber and types of objects in HDL library. The next two subsections outline all these limitations, including why they were left out and any suggestions forfuture implementation if the need arises.

Page 8: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Future work

SVPWM

DCPower

PMSM

PIIGBT-base

Inverter

PWM1

0* di

qi

di

Park-1modifyClark-1

PWM6

—++

PWM2PWM3PWM4PWM5PI

1refv

3refv2refvqv

dvvv

*qi

r

*r

+ a,b,c

,d,q

,

Current controller

PIController

Current controller and coodinate transformation

Modelsim

Park Clark

i

ibici,

d,q ,

a,b,c

sin /cos of Flux angle

e Flux angleTransform.

ai

Simulink

A B C

r

Page 9: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

References

1. Davis, W. R. BWRC IC Design Flow Concept Slides. 2000.2. Davis, W. R. SSHAFT Manifesto.http://bwrc.eecs.berkeley.edu/Research/IC_Design_Flow/Flow. 2000.3. Harel, D. StateCharts: A Visual Formalism for Complex Systems. Sci. Comput.Programs, 8:231-274. 1987.4. The MathWorks, Inc. Using Stateflow. 1999.5. Husted, P. Design and Implementation of Digital Timing Recovery and CarrierSynchronization for High Speed Wireless Communications. Masters thesis, Departmentof Electrical Engineering and Computer Science, U. C. Berkeley. 2000.6. Ammer, J. and Sheets, M. Timing Recovery Unit For a 1.6Mbps DSSS Receiver.EE225C Final Project, Department of Electrical Engineering and Computer Science, U. C.Berkeley. 2000.

Page 10: Stateflow Toolbox  Stateflow ® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and

Thanks for attention!