TWiki
>
P1076 Web
>
VHDLProposals
>
DerivedEnumerationTypes
(2017-04-02,
PatrickLehmann
)
(raw view)
E
dit
A
ttach
---+!! Derived Enumeration Types <noautolink> <sticky> ---++!! Proposal Details | *Authors* | [[Main.PatrickLehmann][Patrick Lehmann]] | | *Date Proposed* | 2017-04-03 | | *Last Updated* | 2017-04-03 | | *Focus* | simulation and synthesis | | *LCS* | TBD | ---++ %TOC% ---++ ---++ Summary VHDL Libraries and frameworks like PoC or UVVM like to specify a minimum set of enumeration literals for different purposes. The user shall then be enabled to extend such a basic enumeration type with his own user defined enumeration literals, without using copy and past to create such a list. It's preferred to find and define a semantic (derived relationship, subtype relationship) between the base and derive type. ---++ Current Situation Currently, enumeration literals can not be shared between different enumeration types. If a library provider allows a user to create a user defined enumeration type, then he can only specify the minimum content of such a type by coding guide lines and/or a template. ---++ Requirement Features: * Append literals * Implicitly created conversion functions ---++ Use Cases %GREEN%Add some use cases.%ENDCOLOR% ---++ Implementation details %GREEN%How is it implemented?%ENDCOLOR% ---++ Code Examples <pre> type BaseEnum is ( STATUS_IDLE, STATUS_RESETING, STATUS_ERROR ); type myStatus is new BaseEnum ( STATUS_READING, STATUS_READING_COMPLETE, STATUS_WRITING, STATUS_WRITING_COMPLETE ); --type myStatus is new BaseEnum ( -- STATUS_IDLE, -- STATUS_RESETING, -- STATUS_ERROR -- append new literals -- STATUS_READING, -- STATUS_READING_COMPLETE, -- STATUS_WRITING, -- STATUS_WRITING_COMPLETE --); </pre> ---++ Arguments FOR ---++ Arguments AGAINST ---++ General Comments %COMMENT% ---++ Supporters * [[Main.PatrickLehmann][Patrick Lehmann]] - 2017-04-03 * _Add your signature here to indicate your support for the proposal_ </sticky> </noautolink>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2017-04-02 - 22:25:12 -
PatrickLehmann
P1076
Log In
or
Register
P1076 Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
P1076
Ballots
LCS2016_080
P10761
P1647
P16661
P1685
P1734
P1735
P1778
P1800
P1801
Sandbox
TWiki
VIP
VerilogAMS
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback