 my_c.c M. With a text editor, create a file my_c.tpm containing the lines shown in Figure 8.6. This is a template makefile, to compile the file my_c.c. Remember that the three last lines begin with a tab character, not with spaces. USERTARGET = my c$ (sctOEXTENSION) my_c$ (sctOEXTENSION) : my_c.c $ (sctCC) $ (sctCPPFLAGS) $ (sctCCFLAGS) \ $ (sctIFDEF) /Fomy_c$ (sctOEXTENSION) my_c.c Figure 8.6 The file my_c.tpm N. In the Organizer, select the system V76test and choose Generate > Make. Select Generate makefile and use template and enter my_c.tpm as indicated in Figure 8.7. Select Microsoft (or other) Simulation. Press Full Make: the executable V76test_smc.exe is generated. 270 Validation of Communications Systems with SDL SDL Make Make System V76test Select other(s) Analyze & generate code Code generator Cbasic Generate environment header file Prefix Generate environment functions Full Make Separation Generate signal number file Capitalization As defined Generate ASN. 1 coder Generate SDL coder Makefile Target directory: |sSDT\pas_pour_ftpW76_C\ Generate makefile Analyze Options Generate makefile and use template: (pour_ftpW76_C\my_c.tpms Use makefile: Cancel Compile & link Use standard kernel Microsoft Simulation Use kernel in directory: Preprocess C file Figure 8.7 The SDL Make window set for simulation O. The package ctypes has been added automatically to the Organizer. You can move it to the Used Files part, as shown in Figure 8.8. P. In the Organizer, press the Save button. Q. In the Organizer, press the Simulate button. Execute the command script cnx1.com, send signal L_DataReq(0, 25) to process DLC in block DLCa, press the button Trace: SDL, simulate using the Symbol button until the call to procedure CRCok, and check that the zero answer is executed, as the parameter passed is positive. 8.1.3 Simulating ASN.1 data types The Simulator and the Validator accept SDL models whose types are based on external ASN. 1 modules, as described in [Z105_2]. ASN.1 is more powerful than the SDL data types, for example, i