Operators and Expressions

Verilog OperatorNameFunctional Group
[ ]bit-select or part-select
( )parenthesis
!
~
&
|
~&
~|
^
~^ or ^~
logical negation
negation
reduction AND
reduction OR
reduction NAND
reduction NOR
reduction XOR
reduction XNOR
logical
bit-wise
reduction
reduction
reduction
reduction
reduction
reduction
+
unary (sign) plus
unary (sign) minus
arithmetic
arithmetic
{ }concatenationconcatenation
{{ }}replicationreplication
*
/
%
multiply
divide
modulus
arithmetic
arithmetic
arithmetic
+
binary plus
binary minus
arithmetic
arithmetic
<<
>>
shift left
shift right
shift
shift
>
>=
<
<=
greater than
greater than or equal to
less than
less than or equal to
relational
relational
relational
relational
==
!=
logical equality
logical inequality
equality
equality
===
!==
case equality
case inequality
equality
equality
&bit-wise ANDbit-wise
^
^~ or ~^
bit-wise XOR
bit-wise XNOR
bit-wise
bit-wise
|bit-wise ORbit-wise
&&logical ANDlogical
||logical ORlogical
?:conditionalconditional

发表评论

邮箱地址不会被公开。 必填项已用*标注