Rational Rhapsody projects Creating Rational Rhapsody SDL blocks Systems engineers often use the System Design Language (SDL) to model discrete (event driven) algorithms. The SDL Suite also generates C code for its models. Rational Rhapsody in C++ is integrated with the SDL Suite (version 5.0 or greater) to enable system simulation based on Rational Rhapsody and the SDL Suite’s discrete behavior. Engineers can import an SDL model into Rational Rhapsody. Rational Rhapsody manages the imported model as a class, stereotyped with the SDLBlock. Note The naming convention for an SDL signal adds the “_” prefix to the signal’s original name.
This prefix can be modified by changing the SDLSignalPrefix property in the Model::Profile group. By default the SDLBlock uses behavioral ports. This configuration can be changed to use a rapid port instead by selecting the UseRapidPorts property for the package. This property is also stored in the Model::Profile group that you access from the Properties tab of the Features window. Note The SDL models you import into Rational Rhapsody cannot contain more than a single instance of any given process. To import an SDL model into Rational Rhapsody: 1. In the SDL Suite, open the SDL model. Mark the System level rectangle. 2. From the main menu select Generate > Make . 3.
Select the CAdvanced Code Generator configuration. 4. Select the Generate environment header file check box. 5. Activate the “Make” to generate the model C file (modelname.c) and environment header file (modelname.ifc). 6. Select SDLAccess Code Generator configuration and activate the Full Make to generate the model SDL_Access file (modelname.sac). 7. Open Rational Rhapsody and choose File > New . 8. Select the SDL_Suite for the project Type . 9. Create a new block/class and select the SDLBlock class stereotype. 10. Right-click this block and select Import/Sync SDL Model . 292 User Guide