ESD 接口属性
esys 接口的内置属性列于下表。
表 50:esys 接口内置属性
| Name | Data Type |
|---|---|
| comment | string |
| dimension | integer |
| direction | enum |
| name | string |
| type | enum |
comment
该属性是用户为 esys 接口定义的描述。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | string |
| Access | read/write | read |
| Default Value | 0 | |
| Units | elements | |
| Constraints | None |
dimension
该属性指定 esys 接口的元素数量。默认值 0 表示这是一个简单 esys 接口。值大于等于 1 表示该接口是向量接口,具有指定数量的元素。
| Editing | Simulation | |
|---|---|---|
| Data Type | integer | integer |
| Access | read/write | read |
| Default Value | 0 | |
| Units | elements | |
| Constraints | None |
direction
该属性指定信息通过 esys 接口流动的方向。可能的方向有
- Modeler to Cosim
- Cosim to Modeler
- Bidirectional
- Not connected
| Editing | Simulation | |
|---|---|---|
| Data Type | enumerated | enumerated |
| Access | read/write | read |
| Default Value | “OPNET to Cosim” | |
| Units | elements | |
| Constraints | see Description |
name
该属性是用户为 esys 接口指定的标识。它可用于在仿真期间引用该接口。
| Editing | Simulation | |
|---|---|---|
| Data Type | string | string |
| Access | read/write | read |
| Default Value | “in”; n >= 0 | |
| Units | None | |
| Constraints | unique in external system description; no dots |
type
该属性指定 esys 接口上承载的数据类型。可用的数据类型包括大多数标准 C/C++ 数据类型,不过根据所安装的连接器软件,可能还有额外的数据类型可用。
接口内置的数据类型有
- integer double
- string boolean
- stdlogic bit
- character pointer
- undefined
| Editing | Simulation | |
|---|---|---|
| Data Type | enumerated | enumerated |
| Access | read/write | read |
| Default Value | integer | |
| Units | None | |
| Constraints | None |