0

I understand that event is when the signal *transitions* to/from a value. transaction is when a signal is assigned a value, even if the value is the same as the previous value.

My question is what is transactionevent? Does it mean that -both- a transaction and an event has taken place on a signal or does it mean that either a transaction has taken place OR an event has taken place on the given signal. Is it an AND of transaction and event or is it an OR?

Thanks.

toolic
  • 57,801
  • 17
  • 75
  • 117
CCRCCR
  • 19
  • 2

1 Answers1

1

The 'transaction attribute is a signal of type bit that toggles on every assignment to a signal. Hence, because every signal can create a 'event, 'transaction'event simply occurs on every transaction, or signal assignment.

'event is a function that returns a boolean when signal has changed value.

Tricky
  • 3,791
  • 3
  • 10
  • 23
  • Thanks much, Tricky. To make sure I understand; If there is a 'transaction on a signal, 'transaction'event will occur OR if there is a 'event on a signal, 'transaction'event will occur. It is not necessary that both 'transaction and 'event need to occur at the same time, to make 'transaction'event occur. – CCRCCR Apr 09 '22 at 23:09
  • Transaction will toggle on every assignment, even if the signal is assigned the same value over and over. Assigning the same value will not cause an event. – Tricky Apr 10 '22 at 06:27