【发布时间】:2016-04-15 09:17:35
【问题描述】:
考虑以下 VHDL 记录:
type big_record_t is record
field_a : unsigned(15 downto 0);
field_b : unsigned(23 downto 0);
end record;
是否可以在不实例化记录本身的情况下获取记录字段的属性?例如
signal ex : unsigned(big_record_t.field_a'range);
modelsim报如下错误:
(vcom-1260) Type mark (big_record_t) cannot be prefix of selected name.
我知道获取实例化信号的属性是可能的,但对于这种特定情况,我想从类型本身获取类型属性。
【问题讨论】:
标签: attributes vhdl