06.11.2013 Views

Beispiel

Beispiel

Beispiel

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

I EINLEITUNG SYNTAX SPEZIELLE PROBLEME BEISPIEL AUSBLICK . . . 26. . .<br />

<strong>Beispiel</strong><br />

13 architecture TolleFassung1 of ColaAutomat is<br />

14 type ZUSTAENDE is (WARTE, DM1, DM2, DM3, DM4, AUSWURF);<br />

15 constant MUENZE1DM : std logic vector(1 downto 0) := ‘‘00’’;<br />

16 constant MUENZE2DM : std logic vector(1 downto 0) := ‘‘01’’;<br />

17 constant MUENZE5DM : std logic vector(1 downto 0) := ‘‘10’’;<br />

18 signal ZustandAktuell : ZUSTAENDE;<br />

19 signal NeuerZustand : ZUSTAENDE;<br />

20 begin<br />

21<br />

22 -- Globale, zentrale Zuweisungen (hier nicht)<br />

23<br />

24 -- Zustandsspeicher<br />

25 . . .<br />

34 -- Zustandsuebergangsfunktion<br />

35 -- (hier kombiniert mit Ausgabefunktion)<br />

36 . . .<br />

127 end architecture TolleFassung1;<br />

128

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!