Download Code Generation from Cinderella
Transcript
Code Generation from Cinderella-SDL to Embedded Platforms files. They can use internal Cinderella API functions to extract all the needed components out. It is easier than reading in the SDL text specification and parses it directly. So I chose to use C++ to program and compile the program into DLL extension file as plug-in. After we have made all the things clear, we made a workflow table 4-1 for future work. Stage 1: Study Cinderella API and the examples Stage 2: Practice to extract all elements needed Stage 3: Adopt the structure in extraction Stage 4: Compile the generated codes Stage 5: Test code on AvR micro controller Table 4-1 Workflow 4.3 Elements Classification and Analysis In SDL, the elements are classified as architecture, behavior, communication and data four sections. However, in element transformation, this classification is proper. In order to give a clear and systematic structure of the SDL elements, we try to categorize all the basic and important elements into three main types: 1. Structural element. These kinds of elements have their own scope diagrams. 2. Definition element. Elements specified in text symbol. 3. Behavior element. Elements specified in behavior description area. The structural element consists of system, block, process and procedure diagram elements. In definition element field, signal definition, data definition and variable declaration will be found. Behavior elements are used to specify the behaviors of process. It contains symbols which composite the behaviors of the process. They are classified as: start, state-trigger and free action. There are still some detailed categorizations left. We will shoe the whole element structure in Figure 4-1. Leiming Chen 21 ©May 2007