发明名称 Automatic generation of hardware simulation interface code using pre-processor macros
摘要 A memory map wrapper may be used to provide an interface between a model and a system with which the model interacts. The memory map wrapper may be designed to provide an interface for source code implementing the model. The memory-map wrapper may include a source code section that describes a mapping between memory regions corresponding to first and second sets of signals and between the source code implementing the model, the mapping defined using macros in memory map wrapper code in which configuration information describing the first and second signals is provided as one or more parameters associated with the source code section. Additionally, a preprocessor component may expand the macros in the memory map wrapper code based on the provided one or more parameters to output expanded memory map wrapper code.
申请公布号 US8839187(B1) 申请公布日期 2014.09.16
申请号 US200912625000 申请日期 2009.11.24
申请人 The Mathworks, Inc. 发明人 Yan Ying-On
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 Harrity & Harrity, LLP 代理人 Harrity & Harrity, LLP
主权项 1. A system comprising: one or more processors to: store an initial wrapper code, the initial wrapper code including macros;receive information associated with a model, the model, when executed: receiving a first plurality of signals,outputting a second plurality of signals, andbeing implemented using source code;generate, based on the initial wrapper code and the information associated with the model, a memory map wrapper code, the one or more processors, when generating the memory map wrapper code, being further to: identify parameters associated with the source code,determine, based on the parameters, a structure identifying one or more macros, of the macros, that can be used to configure the parameters,identify memory locations storing respective data associated with the first plurality of signals and the second plurality of signals, andform the memory map wrapper code to include: a source code section associated with a mapping between the memory locations and the source code, and configuration information for the one or more macros to define the mapping; andexpand the one or more macros in the memory map wrapper code based on the parameters to form an expanded memory map wrapper code.
地址 Natick MA US