Page 245 - DCAP601_SIMULATION_AND_MODELING
P. 245
Unit 13: Simulation Languages (I)
Notes
Figure 13.2: Generic Architecture for Accurate C/D Simulation
Simulation Model Generation in CODIS
Based on the presented synchronization model and the generic architecture, a flow for automatic
generation of simulation models was implemented in CODIS (see Figure 13.3). The inputs of the
flow are the CM in Simulink and the DM in SystemC. The output of the flow is the global
simulation model, including the co-simulation bus and the simulation interfaces.
The interfaces are generated by composing elements from the CODIS library. These elements
implement the layers in Figure. They may be customized in terms of number of ports and their
data type. The interfaces for DM are automatically generated by a script generator that has as input
user defined parameters. The model is compiled and the link editor calls the library from SystemC
and a static library called “simulation library” (see Figure 13.3). The interfaces for Simulink are
functional blocks programmed in C++ using S-Functions. These blocks are manipulated like all
other components of the Simulink library. The user starts by dragging the interfaces from the
library into the model’s window, then parameterizes them and finally connects them to the model
inputs and outputs. Before the simulation, the functionalities of these blocks are loaded by Simulink
from the “.dll” dynamically linked libraries (see Figure 13.3).
Figure 13.3: Flow for Simulation Models Generation
LOVELY PROFESSIONAL UNIVERSITY 239