Steps for SES Processing Flow

Create SES in 8 steps

1. Create a subdirectory directly below the model base directory, e.g., simparc/ses, and place the files discussed below in it 2. Create a system entity structure, e.g. simparc_ses.h which is derived from ses.h Note: every leaf entity mentioned in the system entity structure must exist in the model base directory. For example, since simparc_ses.h mentions genr then files genr.* must be present in the simparc directory and genr must be in the OBJECTS file. 3. Create one or more pruned entity structures, e.g. efpip.C 4. Place the names of pruned entity structures (pes) successively in file PES (e.g., efpip, efproc, efmul) 5. Type writeprune 6. The system then saves the existing Makefile and writes a new one to generate the *_pru.C file for the Pruned Entity Structure. When you type make *_pru this file is generated and then Make goes on to compile it, generate the simulation model and execute it. For example, if efpip is the name of a pes, placed in the PES file. Then writeprune will generate corresponding entries in Makefile. You prepare a file efpip.C containing the pruning statements and the command transform("efpip") (note use the same name). Type writeprune and then make efpip_pru. The rest will be done automatically, i.e, efpip_pru.C and efpip_pru will be placed in your directory and run. (But see 7. below) Additional files generated by the system: all.h containing all model base includes, new_ents.h containing all new class definitions prune_print which contains a print of the pruned entity structure 7. Since the system cannot handle constructors (other than having one argument for the name), you may have to edit the *_pru.C file (e.g. efpip_pru.C) to revise the constructor calls. You can also add or modify any statements in the *_pru.C file (in particular, the output coupling for blocks may have to be relocated). Then type e.g., make efipip_pru to generate and run the executable. 8. When a new pruning is developed, add it to the end of PES and rerun writeprune.