In this (size=2.0Mbytes, duration=4m31s) example a Producer-Consumer process network is flattened. The process network is specified using TTL syntax. First, the input hierarchical process network is extracted from sources, and shown graphically. Then, the flatting directives are provided to the tool. After, transformation the resulting flattened process network is shown graphically. As demonstrated not only YAPI syntax is recognized by the tooling - something called TTL is used in this example -. In order to understand a syntax the user should provide an API definition file to SCATE. This demo also demonstrates flatting of hierarchical networks, often needed for performance reasons when going towards implementation. |
Commands issued during this demo: |
|
---|---|
> pwd | show current path |
> scotty -setup | create toplevel Makefile for scotty |
> ls | show directory listing, and open Makefile-ScottySetup |
comment-out MPC since it is a well defined environment variable | |
modify CPP_INCLUDES path since input process network is TTL | |
modify APISPECIFICATION to TTL C++ specification | |
provide flag to generate dotty output | |
> make -f Makefile-ScottySetup | create the required Makefile to execute the scotty tool |
> make -f Makefile-Scotty | execute the scotty tool via this generated Makefile |
> ls | show directory listing, and open 'dottyview.dot' file, compile text file into graphical output and show the hierarchical process network. |
> rm dottyview.* | remove all dotty related files |
> mv symtab symtab.this | rename generated symtab file, for later use |
> ls M* | list all files starting with capital M, and open Makefile-ScottySetup |
use predefined mapping file to flatten the hierarchical process network | |
use predefined mapping file to remove all units not instantiated | |
use symbol table file to speed up the parsing process | |
> make -f Makefile-ScottySetup | create the required Makefile to execute the scotty tool |
> make -f Makefile-Scotty | execute the scotty tool via this generated Makefile |
> ls | show directory listing, open 'dottyview.dot' file, compile text file into graphical output and show the flattened process network |
> The End | end of demo |