Counter – Xilinx V2.1 User Manual

Page 32

Advertising
background image

32

Xilinx Development System

Xilinx System Generator v2.1 Reference Guide

Block Parameters Dialog Box

The block parameters dialog box can be invoked by double-clicking the icon in your
Simulink model.

Figure 3-7: Convert block parameters dialog box

All the parameters of the Convert block are parameters common to other blocks.
Please refer to the Common Parameters section in the previous chapter for details.

Parameters defining the desired output type are:

Output Arithmetic Type

Number of Bits

Binary Point

Parameters defining the quantization effect and the overflow effect are:

Quantization Behavior

Overflow Behavior

The Convert block does not use a Xilinx LogiCORE.

Counter

The Xilinx Counter block implements an up or down counter. It can be
configured to step between the starting and ending values, provided the
increment evenly divides the difference between the starting and ending
values. The counter output and increment values can be fixed point
numbers in addition to integers.

The output for an up counter is calculated as follows:

The down counter calculation replaces addition by subtraction.

Advertising