Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Always block - Can an or be replaced with a comma?

Hi,

Can an or in the sensitive list of an always statement be replaced with a comma?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    IEEE Std 1364 tells

    --- Quote Start ---

    9.7.4 Event or operator

    The logical or of any number of events can be expressed so that the occurrence of any one of the events triggers the execution of the procedural statement that follows it. The keyword or or a comma character (,) is used as an event logical or operator. A combination of these can be used in the same event expression. Comma-separated sensitivity lists shall be synonymous to or-separated sensitivity lists.

    --- Quote End ---