TWiki
>
P1076 Web
>
VHDLProposals
>
ExpressionsAndSignalParameters
(2020-10-30,
JimLewis
)
(raw view)
E
dit
A
ttach
---+ Mapping Expressions to Signal Parameters %TOC% ---++ Proposal Information * Current Owner: Main.JimLewis, ... * Contributors: Main.JimLewis, ... * Date Proposed: 2014-June-22 * Date Last Updated: 2020-October-30 * Priority: * Complexity: * Focus: Testbench * Related Issues: loosely, but both are useful [[WaitLevel] [Wait Level - Syntax Solution] ] * Competing Issues: None ---++ Requirement Summary Mapping Expressions to Signal Parameters. One application is to provide a code based solution to Level Sensitive Wait See also [[WaitLevel] [Wait Level - Syntax Solution] ] ---++ A Code Solution This can easily be accomplished with the code <verbatim> if A /= Level then wait until A = Level ; end if; </verbatim> However, what is being sought is a more concise solution. ---++ Encapsulation with a Procedure If the following worked, it would be an acceptable solution. However while a signal input to an entity allows expressions with VHDL-2008, a signal input to a parameter of a subprogram does not. <verbatim>procedure WaitLevel ( signal condition : in boolean ) is begin if not condition then wait until condition ; end if ; end procedure WaitLevel ; </verbatim> General support issues: When an expression is passed as input signal parameter, it would have the default value of the type (here false) until a delta cycle passes. Here that works just fine. ---++ Comments ---+++ Arguments Against ---++ Supporters
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 - 2020-10-30 - 16:17:55 -
JimLewis
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