quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bulllet_4dots_orange.gif Operator precedence and associativity
   

space.gif

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

   

space.gif

   

space.gif

  ../images/main/bulllet_4dots_orange.gif 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

   

space.gif

  ../images/main/bulllet_4dots_orange.gif 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.

   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com