命名(Name)
来源:互联网 发布:淘宝摄影单反相机 编辑:程序博客网 时间:2024/06/03 11:35
标识符(Identifiers)
标识符为保留字和用户定义的参数名。别名是已存在项的别名。组是项的集合。
Identifiers are used as reserved words and as names defined by the designer. An alias is an alternative name for an existing named item. Group is a collection of items.
命名(Name)
VHDL的项通过其名字来区分。
Any VHDL item is identified by its name.
语法(Syntax)
identifier -- simple name\extended_identifier\"operator"attribute_namename.name. ... -- selected namename(range) -- slice namename(expression, ...) -- indexed name
说明(Description)
当声明了一个有名字的标识符,就可以引用这个标识符。然而并不总是使用标识符来引用一个项或者其一部分。
Any declaration that introduces a named item defines an identifier which enables reference to such an item by using this identifier. However, it is not always possible to refer to an item or part of it by using just its identifier.
更多情况下是通过名字来引用项。名字中也包含目标的访问类型,复合类型的元素,复合目标的一部分或者在声明中有标识符的单位属性。名字有以下几种形式:
More general form of reference to items is by a name. Names can also indicate objects of the access type, elements of the composite type, parts of the composite object or unit attributes which have an identifier in their declaration. The name can have any of the following forms:
- 简单名——简单名仅有标识符,在声明中把他分配给给定单元
- simple name – The simple name consists only of the
identifier, which is assigned to a given unit in its declaration - 运算符——运算符符号是字符串字面符号,它表示为该运算符符号声明的函数
- operator symbol – The operator symbol is a string literal, which
indicates the function declared for such an operator symbol - 属性名——标识符及其属性的组合
- attribute name – The combination of the identifier and its
attribute - 选取名——选取名通常用来从库或包中选取一个项
- selected name – A selected name is commonly used to pick an
item out of a library or package - 片名——片名用来选取一维数组的一部分
- slice name – A slice name is used to pick out a part of
an one-dimensional array - 索引名——索引名从一个数组中选取一个独立项
- indexed name – An indexed name is used to pick an individual
item out of an array
一个名包含字母、数字和下划线。当使用扩展标识符时,第一个字符不能是字母,最后一个字符是下划线,或者标识符有两个相邻的下划线。
A name consists of letters, digits and underscores. The extended_identifier has to be used when the first character is not a letter, the last character is an underscore, or when the identifier has two adjacent underscores.
例程(Examples)
ABC_66 -- simple name\4A*@_\ -- extended identifier"+" -- operator Clk'Event -- attribute nameIEEE.std_logic_1164."nor" -- selected name SignalSlice(12 to 15) -- slice nameDataSignal(5) -- indexed name
注释(Note)
- VHDL的保留字不能被用于其他项的命名。
- None of the VHDL reserved words may be used as a name for other
items.
- 命名(Name)
- 命名实体(Name entity, NE)
- name pipe 命名管道
- Usaco 1.2.3 命名那个数字(Name That Number)
- C++中的命名空间(using name std)
- input 中name命名问题
- html name标签命名规范
- 10.8做题——USACO1.2命名那个数字(Name That Number)
- 关于软件项目code name代号命名
- 命名空间问题using name space
- Name That Number命名那个数字
- Name That Number 命名那个数字
- Liferay Requires Name Spaced Parameters(命名空间)
- [JAVA][Spring]Spring中Bean的命名问题(id和name区别)及ref和idref之间的区别
- Spring中Bean的命名问题(id和name区别)及ref和idref之间的区别
- [JAVA][Spring]Spring中Bean的命名问题(id和name区别)及ref和idref之间的区别
- Name Convension -- Grub脚本中使用的命名规则
- 如何创建强命名程序集(Strong Name Assembly
- 每日170219-20
- ESP(栈顶指针)EBP(栈底指针)
- 蓝桥杯 错误票据
- 1043. Is It a Binary Search Tree
- 源码阅读--Collections.sort
- 命名(Name)
- 第二章 XML信息检索基础
- 1044. Shopping in Mars
- 三维通道下输入和输出一个矩阵
- 常见前端面试题及答案(下)
- ALGO-2 算法训练 最大最小公倍数(贪心算法)
- Java集合框架详解之继承list接口
- 使用Docker构建Gitlab私服
- gym 100820G Racing Gems(二维LIS,好题)