Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
xst.pdf
Скачиваний:
141
Добавлен:
11.06.2015
Размер:
5.64 Mб
Скачать

Chapter 8: XST Behavioral Verilog Language Support

R

XST includes support for the following Verilog data types:

Net

wire

tri

triand/wand

trior/wor

Registers

reg

integer

Supply nets

supply0

supply1

Constants parameter

Multi-Dimensional Arrays (Memories)

Net and registers can be either single bit (scalar) or multiple bit (vectors).

Behavioral Verilog Data Types Coding Examples

This section gives the following Behavioral Verilog Data Types coding examples:

“Behavioral Verilog Data Types Coding Example”

Behavioral Verilog Data Types Coding Example

The following Behavioral Verilog coding example shows sample Verilog data types found in the declaration section of a Verilog module:

wire net1;

// single

bit net

reg r1;

// single

bit register

tri [7:0] bus1;

// 8 bit tristate bus

reg [15:0] bus1;

// 15 bit

register

reg [7:0] mem[0:127];

// 8x128 memory register

parameter state1 = 3’b001;

// 3 bit constant

parameter component = "TMS380C16";

// string

Behavioral Verilog Legal Statements

The following statements are legal in behavioral Verilog:

Variable and signal assignment:

Variable = expression

if (condition) statement

if (condition) statement else statement

528

www.xilinx.com

XST User Guide

 

 

10.1

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]