18EC56 Verilog HDL Module 3b 2020
18EC56 Verilog HDL Module 3b 2020
18EC56 Verilog HDL Module 3b 2020
Module 3(b)
Dataflow Modeling
Dinesh M.A.
dineshma_ece@mitmysore.in
•
/dinesh.ajay
/prof.dineshma
VISION OF THE DEPARTMENT
real a, b, c;
c = a - b; // real operands
reg ret_value;
ret_value = calculate_parity(A, B); // function type oprnd
Operators
Operator category Operators symbol
Arithmetic * / + - % **
Logical ! && ||
Relational > < <= >=
Equality == != === !===
Bitwise ~ & | ^ ^~ ~^
Reduction & ~& | ~| ^ ~^ ^~
Shift >> << >>> <<<
Concatenation { }
Replication { { } }
Conditional ? :
Arithmetic Operators
• There are two types of arithmetic operators: binary and unary.
• Binary operators
• Binary arithmetic operators are multiply (*), divide (/), add (+), subtract (-) and
modulus (%).
• Modulus operators produce the remainder from the division of two numbers.