TWiki
>
P1076/Ballots Web
>
Vhdl2019CollectedRequirements
>
RepairExampleInSection2321Proposal
(revision 1) (raw view)
Edit
Attach
---+ Repair Example in Section 23.21 Proposal <br />%TOC% ---++ Proposal Details * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Language Version: VHDL-2008</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Classification: LRM Correction</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Summary: One of the examples in LRM section 23.21 is incorrect.</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Relevant_LRM_Sections: 23.21</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Name:</span></span> [[Main.RadoslawNawrot][<span style="color: #444444;"><span style="font-family: arial, verdana, sans-serif;">Radoslaw Nawrot</span></span>]]<span style="color: #58438b;"><span style="font-family: arial, verdana, sans-serif;"> </span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Fax_Number: </span></span><span style="color: #000000;">+48 32 608 7693 </span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Email_Address:</span></span> [[mailto:Radoslaw.Nawrot@aldecNOSPAM.com.pl][<span style="color: #4571d0;"><span style="font-family: arial, verdana, sans-serif;">Radoslaw.Nawrot@aldecNOSPAM.com.pl</span></span>]]<span style="color: #58438b;"><span style="font-family: arial, verdana, sans-serif;"> </span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Affiliation: Aldec</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Address1: </span></span><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">2260 Corporate Circle </span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Address2: </span></span><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Henderson, NV 89074 </span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Authors_Address3: </span></span><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">USA </span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Date Submitted:November 14, 2014</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Date Analyzed:</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Author of Analysis:</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Revision Number: 1</span></span></p> * <p align="LEFT"><span style="color: #000000;"><span style="font-family: arial, verdana, sans-serif;">Date Last Revised:November 14, 2014</span></span></p> ---+++ Current Situation <sticky><pre><verbatim> void exec_proc(vhpiCbDataT cbDatap) { vhpiHandleT subpCallHdl, formal1, formalIt; int val = 0; vhpiValueT value; value.format = vhpiIntVal; value.value->integer = &val; subpCallHdl = cbDatap->obj; /* get a handle to the first formal parameter of the subprogram call */ formal1 = vhpi_handle_by_index(vhpiParamDecls, subpCallHdl, 0); switch(vhpi_get(vhpiModeP, formal1)) { case vhpiIN: vhpi_get_value(formal1, &value); break; case vhpiOUT: vhpi_put_value(formal1, &value); break; default: break; } } </verbatim></pre></sticky> ---+++ Proposed Resolution <sticky><pre><verbatim> void exec_proc(vhpiCbDataT cbDatap) { vhpiHandleT subpCallHdl, formal1, formalIt; int val = 0; vhpiValueT value; value.format = vhpiIntVal; value.value.intg = &val; subpCallHdl = cbDatap->obj; /* get a handle to the first formal parameter of the subprogram call */ formal1 = vhpi_handle_by_index(vhpiParamDecls, subpCallHdl, 0); switch(vhpi_get(vhpiModeP, formal1)) { case vhpiIN: vhpi_get_value(formal1, &value); break; case vhpiOUT: vhpi_put_value(formal1, &value, vhpiDepositPropagate); break; default: break; } } </verbatim></pre></sticky> ---++ General Comments Place for general comments ---++ Supporters _Add your signature here to indicate your support for the proposal_ <p align="LEFT"> </p> <p align="LEFT">-- Main.RadoslawNawrot - 2014-11-14</p> <p align="LEFT"> </p> <p align="LEFT"> </p> <p align="LEFT"> </p>
Attachments
Attachments
I
Attachment
Action
Size
Date
Who
Comment
pdf
Repair_Example_in_Section_23.21_Proposal.pdf
manage
64.3 K
2014-11-14 - 08:14
RadoslawNawrot
PDF version
Edit
|
Attach
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2020-02-17 - 15:34:59 -
TWikiGuest
P1076/Ballots
Log In
or
Register
P1076/Ballots 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback