国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

別名(Alias)

2019-11-08 02:18:03
字體:
來源:轉載
供稿:網友

別名(Alias)

別名的功能是代碼中已命名項的替換名。 An alternate name for an existing named item in the code.

語法(Syntax)

alias 別名 [ : 數據類型 ] is name [識別標志];識別標志= [類型名, ... ] return 類型名alias alias_name [ : data_type ] is name [ signature ]; signature = [ type_name, ... ] return type_name

說明(Description)

別名可以是任何已存在目標的別稱:信號、變量、常量或文件。它也可以被用在“非目標”上,只要是提前定義的虛擬的一切,除了標簽,loop參數和generate參數。 The alias declares an alternative name for any existing object: signal, variable, constant or file. It can also be used for “non-objects”: virtually everything, which was PReviously declared, except for labels, loop parameters, and generate parameters.

如果別名代表一個子程序(包括一個運算符)或枚舉文字,則需要一個識別標簽(用來匹配參數和結果類型)。 If an alias denotes a subprogram (including an Operator) or enumeration literal then a signature (matching the parameter and result type) is required.

例程(Example)

signal Instruction: std_logic_vector(15 downto 0);alias OpCode : std_logic_vector(3 downto 0) is Instruction(15 downto 12); alias SrcAddr : std_logic_vector(1 downto 0) is Instruction(11 downto 10); alias DestAddr : std_logic_vector(1 downto 0) is Instruction(9 downto 8); alias InstData : std_logic_vector(7 downto 0) is Instruction(7 downto 0);

注釋(Note)

許多綜合工具不支持別名。Many synthesis tools do not support aliases.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 大新县| 丹东市| 盱眙县| 新营市| 游戏| 平武县| 米易县| 建德市| 民勤县| 绥棱县| 涿鹿县| 锡林郭勒盟| 普定县| 始兴县| 白城市| 太谷县| 玛多县| 夏邑县| 马龙县| 望江县| 松潘县| 嘉定区| 烟台市| 麻栗坡县| 金乡县| 石台县| 米脂县| 梁河县| 云阳县| 山丹县| 梨树县| 蒲城县| 许昌市| 洛宁县| 磐石市| 彭阳县| 绵阳市| 祁门县| 吴堡县| 灵山县| 霍林郭勒市|