Operators
There are mainly 3 types of operators, they are:
- High-Speed
Unary Operators
In this the operators like (+, -, ^, %, ~) appear to the left of the operand. For example,
x = ~y;
In this you can observe for the literal y, the operator is to the left of y.
Binary Operators
In this, the operators appear in between the operands. For example:
X = Y ^ Z;
In this we can observe that the operator(^) is in between the operands Y and Z.
Ternary/Conditional Operators
This Ternary operators are like a simple if else statements but they are written in a single line. They are represented in the format:
Conditional_expression ? True_expression : False_expression
For example, X = (A && B && C) : 1’b1 : 1’b0;
Here if the expression evaluates (A && B && C) to 1 then the true expression i.e 1’b1 will be given as output else 1’b0 will be given as output.
Getting Started with Verilog
For a long time, computer programming languages like FORTRAN, Pascal, and C were used to describe computer programs and their code execution is sequential. But there isn’t any language to describe the digital circuits. This is when Hardware Description Language(HDL) came into play. HDLs are even popular for verification purposes. There are mainly two types of HDL:
- Verilog HDL
- VHDL (Very High-Speed was Integrated Circuit (VHSIC) Hardware Description Language)
Note: Verilog HDL and VHDL aren’t the same. VHDL was used before Verilog came into existence. the difference between them will be discussed in the later part.
Table of Content
- What is Verilog?
- Gate Level Modeling
- Data-Flow Modeling
- Behavioral Modeling
- Operators
- Identifiers and Keywords
- Datatypes
- Module Declaration
- Classification of Verilog
- Verilog HDL Vs VHDL
Contact Us