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

Chapter 8: XST Behavioral Verilog Language Support

Table 8-3: Results of Evaluating Expressions (Cont’d)in Behavioral Verilog

R

a b

a==b

a===b

a!=b

a!==b

a&b

a&&b

a|b

a||b

a^b

 

 

 

 

 

 

 

 

 

 

1 z

x

0

x

1

x

x

1

1

x

 

 

 

 

 

 

 

 

 

 

x 0

x

0

x

1

0

0

x

x

x

 

 

 

 

 

 

 

 

 

 

x 1

x

0

x

1

x

x

1

1

x

 

 

 

 

 

 

 

 

 

 

x x

x

1

x

0

x

x

x

x

x

 

 

 

 

 

 

 

 

 

 

x z

x

0

x

1

x

x

x

x

x

 

 

 

 

 

 

 

 

 

 

z 0

x

0

x

1

0

0

x

x

x

 

 

 

 

 

 

 

 

 

 

z 1

x

0

x

1

x

x

1

1

x

 

 

 

 

 

 

 

 

 

 

z x

x

0

x

1

x

x

x

x

x

 

 

 

 

 

 

 

 

 

 

z z

x

1

x

0

x

x

x

x

x

 

 

 

 

 

 

 

 

 

 

Behavioral Verilog Blocks

Block statements are used to group statements together. XST supports sequential blocks only. Within these blocks, the statements are executed in the order listed. Parallel blocks are not supported by XST. Block statements are designated by begin and end keywords.

Behavioral Verilog Modules

In Verilog a design component is represented by a module. The connections between components are specified within module instantiation statements. Such a statement specifies an instance of a module. Each module instantiation statement has a name (instance name). In addition to the name, a module instantiation statement contains an association list that specifies which actual nets or ports are associated with which local ports (formals) of the module declaration.

All procedural statements occur in blocks that are defined inside modules. The two kinds of procedural blocks are:

Initial block

Always block

Within each block, Verilog uses a begin and end to enclose the statements. Since initial blocks are ignored during synthesis, only always blocks are discussed. Always blocks usually take the following format:

always begin statement

....

end

Each statement is a procedural assignment line terminated by a semicolon.

532

www.xilinx.com

XST User Guide

 

 

10.1

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