A Place to learn VHDL & Verilog HDL comparitively ...
Operators:
Operators perform a wide range of functions. In HDL operators are classified into 4 categories.
Chapter 1 Introduction
Logical operators:
These operators perform logical operations such as AND, OR, NOT, NOR, NOT, EX-OR.
Relational operators:
Relational operators are used to compare the values of two objects. The result is Boolean i.e true(1) or false(0).
Arithmetic operators:
Arithmetic operators are used to perform a wide variety of operations such as addition, subtraction, multiplication and division.
Shift and rotate operators:
Shift operators are unary operators. They operate on single operand. They are used to shift the bits by some positions.
In VHDL the syntax followed is
<identifier> shift operator <no. of positions>
Example
A sll 1
Before 1110
After 110X
In Verilog HDL the syntax is
<identifier> shift operator <no. of positions>
Example
A << 1
Before 1110
After 110X
Queries and discussions at: vigyan.forumotion.net