Download The Model-based Integrated Simulation Framework User`s Manual
Transcript
Resource metamodel encompasses the composition rules that governs modeling of the resources and configures GME for modeling the target hardware. There are several aspects of resource modeling, namely compositional, behavioral, and parameters. Aspect in this context is different than the visualization aspects used in GME and refer to analytical decomposition of resource modeling. Structural Modeling of Resources Structural modeling refers to how a target device is composed of different components. A component might be a processor, memory, or interconnect. Structural modeling is a high-level specification of the target device. MILAN also supports lowlevel specification in terms of hardware layout (such as ones described in the previous chapter). Figure 9 shows the resource metamodel without the parameter associated with each component (models and atoms) of the metamodel. For a detailed view of the resource model, visualize to the MILAN modeling paradigm using GME. The model Component is an abstract class with two derived sub-classes Element and Unit. The inclusion of Component within a Unit allows hierarchical specification of a system. Such a modeling specification allows the designer to visualize a target system as a Unit composed of various sub-Units. For example, the Xilinx Virtex-II Pro [ 13] can be analyzed as a Unit that consists of two Units; FPGA and PowerPC. However, it is a designer’s choice how to model a target device. As resource model is primarily used to specify mapping options for the application tasks and to drive the simulators, based on the application characteristic the same Xilinx Virtex-II Pro can also be visualized as a single Unit with no sub-Units. Such a scenario might arise if the target application is analyzed such that each task is mapped to the complete device without any details of how the interaction between FPGA and the processor is modeled. A typical instance of such a scenario is the use of IP libraries provided by the Vendors where the designer uses the IP-cores as black-boxes and only the over-all performance behavior is exposed during system design. Another such example is the use of SimpleScalar [ 14] as a simulator. Typically, while analyzing a task mapped onto a processor it is not required to provide details of cache configuration. The task can be modeled based on the performance estimates only. However, if the task is being specifically analyzed for different cache configurations, it is necessary to provide details of cache configurations. Even cache configuration is also necessary if SimpleScalar is configured to simulate a particular processor. Therefore, the designer should have the flexibility of modeling the hardware at the required granularity. The connectivity between the resources are described using Ports similar to the application model. A Port is part of an Element. Therefore any Element can be connected to any other Element. However, the resource model enforces the rule that all connections need to be through Interconnect. This is specified using OCL constraints. The idea of such a constraint is to ensure an order in how different Elements can be connected and also to provide a place to capture the performance behavior of the interconnect resources within the target devices. 17