Symbol Operation
* Multiply
/ Divid
+ Add- Subtract
% Modulus
Others
Here are a couple of useful ones:
Concatenation “{}”
Attaches two strings or bit arrays together. for example {A,B} ... Example - TBA Conditional “?”
Allows making assignments based on a condition. Example -x=(enable)?A:B; //x=A if enable is true otherwise x=B Example – Arithmetic Operators.
a = b + c ; // simply adds b and c and saves it in a
a = 1 << 3; // '1' left by 3 position.
a = ~b ; // inverts every bit in b and saves it in a.
a = !b ; // If b is true (non zero) then a will be false