|
|
|
|
|
|
|
|
|
|
|
|
Operator precedence and associativity
|
|
|
|
|
|
Operators
|
Precedence
|
() [] :: .
|
left
|
+ - ! ~ & ~& | ~| ^ ~^ ^~ ++ -- unary
|
right
|
**
|
left
|
* / %
|
left
|
+ - (binary)
|
left
|
<< >> <<< >>>
|
left
|
< <= > >= inside dist
|
left
|
== != === !== =?= !?=
|
left
|
& (binary)
|
left
|
^ ~^ ^~ (binary)
|
left
|
| (binary)
|
left
|
&&
|
left
|
||
|
left
|
? : (conditional operator)
|
right
|
>
|
right
|
= += -= *= /= %= &= ^= |= <<= >>= <<<= >>>= := :/ <=
|
none
|
{} {{}}
|
concatenation
|
|
|
|
|
|
|
|
|
|
|
|
|
Concatenation
|
|
|
Braces ( { } ) are used to show concatenation, as in Verilog. The concatenation is treated as a packed vector of bits. It can be used on the left hand side of an assignment or in an expression |
|
|
|
|
|
Unpacked array expressions
|
|
|
Braces are also used for expressions to assign to unpacked arrays. Unlike in C, the expressions must match element for element, and the braces must match the array dimensions. Each expression item shall be evaluated in the context of an assignment to the type of the corresponding element in the array. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright © 1998-2014 |
Deepak Kumar Tala - All rights reserved |
Do you have any Comment? mail me at:deepak@asic-world.com
|
|