Here is the function I am trying to write:
procedure ASCERTAIN_CALL_VALIDITY is
begin
(SESSION_CHECK_ACTIVATION_MSG_IN and ACTIVATION_MSG_RECEIVED_INT) or
(SESSION_CHECK_ACTIVATION_ACKNOWLEDGE_MSG_IN and ACTIVATION_ACKNOWLEDGE_MSG_RECEIVED_INT) or
(SESSION_CHECK_START_SESSION_MSG_IN and START_SESSION_MSG_RECEIVED_INT) or
(SESSION_CHECK_STARTUP_CONFIGURATION_MSG_IN and STARTUP_CONFIGURATION_MSG_RECEIVED_INT) or
(SESSION_CHECK_TURN_OFF_MSG_IN and TURN_OFF_MSG_RECEIVED_INT)
end procedure;
I want to return the value from logic processing and store inside a signal or variable outside it. Now the problem is that, functions can't access signals outside of them. Procedures can't return a value. So what do I do now?
impure function ASCERTAIN return BOOLEAN is ...
\$\endgroup\$