P. 1
Verilog Basics 2 Expressions

# Verilog Basics 2 Expressions

|Views: 15|Likes:
Digital System Design - Verilog by Dr. Bassam Jamil Hashemite University
Digital System Design - Verilog by Dr. Bassam Jamil Hashemite University

See more
See less

07/02/2013

pdf

text

original

# Digital System Design

Verilog: Expressions
Dr. Bassam Jamil

Topics
 Expressions

 Operators

2

Expressions
 Two
 

types:

Unary expressions: operator operand Binary expressions: operand operator operand

 The

operands may be a net or wire

 Logic

expression returns: 1 (true), 0 (false), X (unknown)

3

Arithmetic Operators

4

Arithmetic Operators

5

6

7

Bitwise Operators

8

9

Reduction (Unary) Reduction Operators

10

11

Logical Operators

12

13

14

Relational Operators

15

Relational Operators

16

Shift Operators

17

q
18

Selection Operation Example

19

20

Select/Concatenate/Replicate

21

22

scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->