类属(Generic)
来源:互联网 发布:人间 歌词 知乎 编辑:程序博客网 时间:2024/05/17 02:29
类属(Generic)
块和其环境进行通信的一个静态信息通道。
A channel for static information to be communicated to a block from its environment.
语法(Syntax)
generic ( generic_name, ... : data_type [ := expression ] );
generic ( 类属名, ... : 数据类型 [ := 设定值 ] );
说明(Description)
类属用来参数化一个设计实体。他为块提供了一个类似于常量的静态信息,但不同与常量的是类属可以被外部赋值。在同一设计实体中的不同实例可以拥有不同的类属值。实例中类属的值通过类属映射来进行赋值。
A generic is used to parameterize a design entity. They support static information to blocks in a similar way as constants, but unlike constants the values of generics can be supplied externally. Different instances of the same design entity can have different values for the generic parameters. Generics are given values in the generic map of an instance.
在实体中类属定义的值可以被实体读取,也可被相关联的结构体进行读取。
Values supported by generics declared in an entity can be read either in the entity or in the associated architectures.
实体中的类属必须在相应的元件中进行复制,从而允许元件的例化通过默认规则来进行配置。
The generics of an entity must be duplicated in the corresponding component, to allow instances of the component to be configured implicitly via the default rules.
例程(Example)
generic (BusWidth: integer := 16; Length, Size: positive);
注释(Note)
- 许多综合工具仅支持整型类属。
- Many synthesis tools support only generics of type Integer.
- 类属(Generic)
- Java:泛型(generic)
- 泛型(generic)
- 泛型(generic)-下
- Java泛型(Generic)
- Generic(泛型)
- 泛型(generic)
- JAVA 泛型(generic)
- Java泛型(Generic)
- 自我介绍--泛型(Generic)
- java 泛型(generic)
- C# 泛型(Generic)
- C# 泛型(Generic)
- 泛型(Generic)
- 泛型Generic(一)
- 【C#】泛型(Generic)
- Generic
- Generic
- web前端下拉框技术(js)
- Python django开发
- Crackme 1
- WiFi调试手机
- Gradle多渠道打包、配置签名信息
- 类属(Generic)
- ABR CQP CRF码率控制总结
- 用PHP开发APP端微信支付
- yaffs文件系统移植笔记
- WebRTC手记之框架与接口
- 在mac上安装Genymotion模拟器
- VS2010下配置opencv2.4.9步骤
- linux 命令
- 一个jsx文件