ZHAW-Logo OAPA-Logo TAT-Logo
zurück  
Diplomarbeit 2005 (DA05): Arbeits-Archiv
 
DA Kls 05/3 - SDL code generator
Studierende: Jan Haug, haugjan
  Patrik Lengweiler, lengwpat

Betreuer: Rolf Klaus, klsr

The purpose of the thesis was to build a code generator that creates C code from SDL code.

SDL is a language to specify and describe the behaviour of systems, in particular the behaviour of state machines. SDL covers a graphical and a textual version. The code generator works only with the textual version of SDL.

Because of the big scope of the SDL recommendation, a subset had to be defined. This subset contains the most important components to describe extended finite state machines. On this basis a description file can be created. From this file command line program produce a completed C code. Only the basic functions to access the hardware have to be handmade.

The code generator checks the input file to its correctness, meaning, that the SDL code is analysed lexically, syntactically and semantically. On occurrence of any errors the user is warned. One of the challenges was to print meaningful and correct messages.

According to the remit, the road capability had to be tested with a precise example. Therefore an existing lab lesson of the subject "Technische Informatik" has to be realised. The topic of this lab is to program the state machine of a washing machine model. This example showed that the handling with the code generator is very easy. Changing the logic can be done on a high abstraction level.

The result of the thesis is complete and can be used productively.

zurück