Importance of Water Electricity in Urdu

Topics: Verilog, VHDL, C Pages: 15 (4773 words) Published: November 15, 2010
CSCI 320 Handbook on Verilog

Page 1

CSCI 320 Computer Architecture Handbook on Verilog HDL

By Dr. Daniel C. Hyde Computer Science Department Bucknell University Lewisburg, PA 17837 Copyright 1995 By Daniel C. Hyde August 25, 1995 Updated August 23, 1997

CSCI 320 Handbook on Verilog

Page 2

Table of Contents
1. INTRODUCTION............................................................................4 1.1 What is Verilog?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 What is VeriWell?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3 Why Use Verilog HDL? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2. THE VERILOG LANGUAGE ...........................................................6 2.1 A First Verilog Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 Lexical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 Program Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

2.4 DATA TYPES ............................................................................1 1 2.4.1 Physical Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1 2.4.2 Abstract Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 2 2.5 Operators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 3 2.5.1 Binary Arithmetic Operators ........................................................................... 13 2.5.2 Unary Arithmetic Operators............................................................................ 13 2.5.3 Relational Operators........................................................................................ 13 2.5.4 Logical Operators ............................................................................................ 13 2.5.5 Bitwise Operators ............................................................................................ 14 2.5.6 Unary Reduction Operators ............................................................................. 14 2.5.7 Other Operators................................................................................................ 14 2.5.8 Operator Precedence......................................................................................... 15 2.6 Control Constructs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 5 2.6.1 Selection - if and case Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 5 2.6.2 Repetition - for, while and repeat Statements............................................... 16 2.7 Other Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 7 2.7.1 parameter Statement ........................................................................................ 17 2.7.2 Continuous Assignment .................................................................................. 17 2.7.3 Blocking and Non-blocking Procedural...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • The Importance of Electricity Essay
  • Essay about Water
  • Essay on Importance of Water
  • Essay about Water Scarcity and the Importance of Water
  • The Importance of Water Essay
  • Importance Of Electricity Essay
  • Importance of Electricity Essay
  • Essay about importance of electricity

Become a StudyMode Member

Sign Up - It's Free