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

R

Behavioral Verilog Data Types

Behavioral Verilog Multi-Dimensional Arrays Coding Examples

This section gives the following Behavioral Verilog Multi-Dimensional Arrays coding examples:

“Behavioral Verilog Multi-Dimensional Arrays Coding Example One”

“Behavioral Verilog Multi-Dimensional Arrays Coding Example Two”

“Behavioral Verilog Multi-Dimensional Arrays Coding Example Three”

Behavioral Verilog Multi-Dimensional Arrays Coding Example One

The following Verilog coding example describes an array of 256 x 16 wire elements each 8 bits wide, which can be assigned only in structural Verilog code:

wire [7:0] array2 [0:255][0:15];

Behavioral Verilog Multi-Dimensional Arrays Coding Example Two

The following Verilog coding example describes an array of 256 x 8 register elements, each 64 bits wide, which can be assigned in behavioral Verilog code:

reg [63:0] regarray2 [255:0][7:0];

Behavioral Verilog Multi-Dimensional Arrays Coding Example Three

The following Verilog coding example is a three dimensional array. It can be described as an array of 15 arrays of 256 x 16 wire elements, each 8 bits wide, which can be assigned in structural Verilog code:

wire [7:0] array3 [0:15][0:255][0:15];

Behavioral Verilog Data Types

This section discusses Behavioral Verilog Data Types and includes:

“About Behavioral Verilog Data Types”

“Behavioral Verilog Data Types Coding Examples”

About Behavioral Verilog Data Types

The Verilog representation of the bit data type contains the following values:

0

logic zero

1

logic one

x

unknown logic value

z

high impedance

XST User Guide

www.xilinx.com

527

10.1

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