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

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

類屬映射(Generic Map)

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

類屬映射(Generic Map)

類屬映射將值與模塊中的正式類屬進行連接。 A generic map associates values with the formal generics for a block

語法(Syntax)

generic map ( [ 類屬名 => ] 設定值, ... )generic map ( [ generic_name => ] exPRession, ... )

說明(Description)

類屬映射給類屬賦值。通常在例化時賦值,也可以在配置中賦值。值可以是位置性關聯或者指定的關聯。 A generic map gives the value to a generic. Usually given in an instance but can also appear in a configuration. The values can be given via positional association or via named association.

為了提高程序的可讀性,降低編譯出錯率,建議使用指定的關聯來賦值。 Use of named association is advised to improve readability and reduce the risk of making errors.

例程(Example)

architecture Structure of Top is component CompA generic (TPLH, TPHL: TIME := 0 ns); port (...); end component; begin u1: CompA generic map (1.9 ns, 2.8 ns) port map (...); u2: CompA generic map (TPLH => 2 ns, TPHL => Top_Tphl) port map (...); end Structure;

注釋(Notes)

類屬映射的結尾沒有分號A generic map does not end with a semicolon.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 合山市| 平顶山市| 娱乐| 运城市| 朔州市| 永年县| 英超| 惠安县| 乌海市| 九台市| 怀化市| 额敏县| 独山县| 星座| 酒泉市| 历史| 铁岭县| 芦溪县| 眉山市| 咸宁市| 五华县| 泰安市| 晋城| 大竹县| 大安市| 枣阳市| 满洲里市| 海丰县| 色达县| 苗栗县| 富蕴县| 黄平县| 历史| 汾阳市| 吴堡县| 望谟县| 盱眙县| 左贡县| 镇宁| 四子王旗| 商河县|