Xilinx V2.1 manual Scale, Shift, Block Parameters Dialog Box, Xilinx Development System

Models: V2.1

1 148
Download 148 pages 48.7 Kb
Page 92
Image 92
Scale

Xilinx System Generator v2.1 Reference Guide

Scale

The Xilinx Scale block scales its input by a power of two. The power can be either positive or negative. The block has one input and one output. The scale operation has the effect of moving the binary point without changing the bits in the container.

Block Parameters Dialog Box

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

Figure 3-63: Scale block parameters dialog box

The only parameter that is specific to the Scale block is Scale Factor. It can be a positive or negative integer. The output of the block is i2k, where i is the input value and k is the scale factor. The effect of scaling is to move the binary point, which in hardware has no cost (a shift, on the other hand, may add logic).

The other parameters used by this block are explained in the Common Parameters section of the previous chapter.

The Scale block does not use a Xilinx LogiCORE.

Shift

The Xilinx Shift block performs a left or right shift on the input signal.

The result will have the same fixed point container as that of the input.

92

Xilinx Development System

Page 92
Image 92
Xilinx V2.1 manual Scale, Shift, Block Parameters Dialog Box, Xilinx System Generator v2.1 Reference Guide