3 \subsection{What will you see}
6 \frametitle{What will we see?}
8 \item Small tour: what can we describe in \clash{}
14 \subsection{What is \texorpdfstring{\clash{}}{CLasH}}
17 \frametitle{What is \clash{}?}
19 \item \clash{}: CAES Language for Hardware Descriptions
20 \item Rapid prototyping language
21 \item Subset of Haskell can be translated to Hardware (VHDL)
22 \item Structural Description of a Mealy Machine
28 \item \clash{} voor rapid prototyping
29 \item Subset haskell vertaalbaar
30 \item Mealy machine beschrijving
33 \subsection{Mealy Machine}
36 \frametitle{Mealy Machine}
38 \centerline{\includegraphics[width=10cm]{mealymachine}}
39 \label{img:mealymachine}
43 Voor wie het niet meer weet, dit is een mealy machine
48 \frametitle{Haskell Description}
49 \begin{beamercolorbox}[sep=-2.5ex,rounded=true,shadow=true,vmode]{codebox}
53 {-"{\color<2>[rgb]{1,0,0}"-}State{-"}"-} ->
54 (State, OutputSignals)
55 mealyMachine inputs {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} = ({-"{\color<3>[rgb]{1,0,0}"-}new_state{-"}"-}, output)
57 {-"{\color<3>[rgb]{1,0,0}"-}new_state{-"}"-} = logic {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} input
58 outputs = logic {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} input
62 \subsection{Simulation}
65 \frametitle{Simulating a Mealy Machine}
66 \begin{beamercolorbox}[sep=-2.5ex,rounded=true,shadow=true,vmode]{codebox}
68 run func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} [] = []
69 run func {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-} (i:input) = o:out
71 ({-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-}, o) = func i {-"{\color<2>[rgb]{1,0,0}"-}state{-"}"-}
72 out = run func {-"{\color<3>[rgb]{1,0,0}"-}state'{-"}"-} input