Rename of Record element

I have:

01 package test_pkg is
02   type mod_def_type is
03   record
04        id  : integer range 0 to 10;
05   end record;
06   constant MDEF : mod_def_type :=(id=>01);      
07 end test_pkg;

I now want to rename the element “id”. Everywhere I use the constant MDEF.id in my design HDT seems to renamed correctly but in line 6 the name doesn't change.

Why? Can I trust the rename feature?

bug

Hi Daniel,

Thank you for reporting this is an error. I've logged it as ticket:831.

kind regards

Philippe

bug

No error is shown by the tool if I use an element in line 6 (“id2”) that is not declared inside the record.

01 package test_pkg is
02   type mod_def_type is
03   record
04        id1  : integer range 0 to 10;
05   end record;
06   constant MDEF : mod_def_type :=(id1=>01, id2=>02);      
07 end test_pkg;

Daniel

same bug

Hi Daniel,

That behavior is caused by the same bug.
Thanks for posting your code snippet.

Philippe

Rename and Attributes

Rename of a entity doesn't change the name in an attribute-specification. Line 5 stays unchanged.

01 entity entity_name is
02 	Port (
03	);	
04	attribute shreg_extract : string;
05	attribute shreg_extract of entity_name: entity is "no";	
06 end entity_name;

Hi Daniel, Thanks for your

Hi Daniel,

Thanks for your reports.
This is a known issue (ticket:814). I will add some extra priority to it.

kind regards

Philippe

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.