TWiki
>
P1076 Web
>
TypeReflection
(revision 2) (raw view)
Edit
Attach
---+ Reflection %TOC% ---++ Proposal Details ---+++ Current Situation Generically converting types from one kind to another currently isn't possible in VHDL. This causes a lot of code duplication, or people resort to code generation. Reflection offers a mechanism to inspect & modify any VHDL type or value. ---+++ Requirement Enable conversion (implicit or otherwise) between records and vectors (single dimensional array) and therefore unions between two records (or a record and a vector). * To facilitate this, provide a language/syntax/synthesisable (and also useful for testbenches) mechanism for: * iterating over the elements of a record in a deterministic order. * assigning the value of a record element where the name of the element is stored in a variable. * determining the type of an element (record, scalar, vector, enumeration). * reaching the type of an object from an instance. Enable modification of values * see randomize example Enable passing generic values (replace anonymous types proposal) ---+++ Implementation details see [[http://www.eda-twiki.org/cgi-bin/view.cgi/P1076/LCS2016_041][LCS-2016-041]] ---+++ Use Cases ---+++ Related Issues: ---+++ Code Examples %RED%moved%ENDCOLOR% ---++ Arguments FOR ---++ Arguments AGAINST Probably only works for simulation & elaboration. It's probably too much abstraction for synthesis tools. I believe the other proposals have the same issue. ---++ General Comments ---++ Supporters _Add your signature here to indicate your support for the proposal_
Edit
|
Attach
|
P
rint version
|
H
istory
:
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2017-04-02 - 11:47:16 -
TWikiGuest
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