Download D1e Model Compiler
Transcript
Figure 5.2: Automatic layout of the idct1d CAL network. matic layout. The layout places all source actors (actors with only output ports) to the left in the diagram and all sink actors (actors with only input ports) to the right in the diagram. The remaining actors are placed at a location whose x-coordinate depends on how large share of the input ports that are connected to actors already placed to the left of the current actor. An example of the automatic layout for the idct1d network is shown in Fig.5.2. Although the layout algorithm is not perfect, it works sufficiently well for its purpose. Also, if the user is not satisfied with the layout he/she can move the actors and the connections using the mouse. Also, when the mouse is moved over an actor all the actors that this actor is connected to are highlighted. Similarily, when the mouse is moved over a connection the connection is highlighted. 5.1 Classification Using the Classify action from the Compile menu all the actors in the diagram are classified. Static actors are shown in green, dynamic actors are shown in yellow, and time-dependent actors are shown in red. The latter class also contains actors which were not successfully classified as either static or dynamic, although they might in reality belong to one of these classes. The classification also returns the token patterns for all the ports of the static SDF/CSDF actors. These can be viewed by selecting the Rates action from the menu obtained by clicking on an actor. In the popup window shown it is also possible to manually edit the token patterns, should that be necessary. The result obtained when classifying the MPEG SP decoder is shown in Fig. 5.3. The green actors correspond to the SDF/CSDF idct1d sub-network. In Fig. 5.4 the popup window showing the rates for the ports of the ShuffleFly_0 actor instance is shown. 30