|
LCS-2016-063 |
|
2 {31-Jan-2017} 1 {05-Jan-2017} |
|
31-Jan-2017 |
|
Voting |
|
Jim Lewis |
|
Main.JimLewis |
|
Signal expressions connected mapped to a signal in parameter |
|
Signal expressions connected mapped to a signal in parameter - addresses Level Sensitive Wait |
-- Procedure call with expression mapped to signal parameter architecture Arch is procedure WaitForCond (signal S : boolean ; ... ) ; begin process begin ... WaitForCond(A = 5, ...) ; -- Equivalent design with expression transformed to a signal assignment architecture Arch is procedure WaitForCond (signal S : boolean ; ... ) ; signal anonymous : boolean ; begin anonymous <= A = 5 ; process begin ... WaitForCond(anonymous, ...) ;
entity e is port ( x : in bit; y : out bit); end entity e; architecture a of e is function f1 (signal x : bit) return bit is begin return not x; end function; function f2 (signal x : bit) return bit is begin return f1(not x); end function f2; begin -- architecture a process(x) begin y <= f2(not x); end process; end architecture a;--