Skip to content

Operations

Sunny Chen edited this page Mar 20, 2020 · 3 revisions
Operation Explanation
lexp <<= rexp Connection
lexp == rexp Equality
lexp != rexp Inequality
lexp & rexp Bitwise AND
lexp | rexp Bitwise OR
lexp ^ rexp Bitwise XOR
~exp Bitwise NOT
lexp + rexp Arithmetic addition
lexp - rexp Arithmetic subtraction
lexp * rexp Arithmetic multiplication
lexp / rexp Arithmetic division
lexp % rexp Arithmetic modulus
-exp Arithmetic negative
lexp > rexp Greater than
lexp >= rexp Greater than or equal
lexp < rexp Less than
lexp <= rexp Less than or equal
lexp << rexp Logical shift left
lexp >> rexp Logical(U)/Arithmetic(S) shift right
exp[0] Extract single bit
exp[5:1] Extract bit field

<<Prev(Datatypes) >>Next(Circuit Elements)