Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
VHDL
Extracting type - Not possible or would it be useful in a future standard?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Andy, post: 4127344"] Just shooting from the hip, but I suppose you already tried: type local_array_t is array(integer range <>) of rec_t.num; One would think that 'base should be usable for this, but the spec clearly says that the attribute is only usable as a prefix for another attribute. Still seems like a reasonable enhancement request, especially if the above does not work (not sure why they limited 'base to use as a prefix in the first place). As a work-around, if you defined a named subtype for use in the record definition, and referenced that subtype in the local array definition, that would solve your problem. Then you could change the base type of the subtype definition, and both the record and the local array would be updated. Andy [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Extracting type - Not possible or would it be useful in a future standard?
Top