Expressions, Operators, and Operands Dataflow modeling describes the design in terms of expressions instead of primitive gates. Expressions, operators | Expressions Operators and Operands Dataflow modeling describes the design in terms of expressions instead of primitive gates. Expressions operators and operands form the basis of dataflow modeling. Expressions Expressions are constructs that combine operators and operands to produce a result. Examples of expressions. Combines operands and operators a A b addr1 20 17 addr2 20 17 ini in2 Operands Operands can be any one of the data types defined in Section Data Types. Some constructs will take only certain types of operands. Operands can be constants integers real numbers nets registers times bit-select one bit of vector net or a vector register part-select selected bits of the vector net or register vector and memories or function calls functions are discussed later . integer count final_count final_count count 1 count is an integer operand real a b c c a - b a and b are real operands reg 15 0 reg1 reg2 reg 3 0 reg_out reg_out reg1 3 0 a reg2 3 0 reg1 3 0 and reg2 3 0 are part-select register operands reg ret_value ret_value calculate_parity A B calculate_parity is a function type operand Operators Operators act on the operands to produce desired results. Verilog provides various types of operators. Operator types are discussed in detail in Section Operator Types. dl d2 is an operator on operands dl and d2 a 0 is an operator on operand a 0 B 1 is an operator on operands B and 1 Team LiB Team LiB Operator Types Verilog provides many different operator types. Operators can be arithmetic logical relational equality bitwise reduction shift concatenation or conditional. Some of these operators are similar to the operators used in the C programming language. Each operator type is denoted by a symbol. Table 6-1 shows the complete listing of operator symbols classified by category. Table 6-1. Operator Types and Symbols Operator Type Operator Symbol Operation Performed Number of Operands Arithmetic multiply two divide two add two - subtract