IPTR-DSPBUILDER Altera, IPTR-DSPBUILDER Datasheet - Page 274

DSP BUILDER SOFTWARE

IPTR-DSPBUILDER

Manufacturer Part Number
IPTR-DSPBUILDER
Description
DSP BUILDER SOFTWARE
Manufacturer
Altera
Type
DSPr
Datasheets

Specifications of IPTR-DSPBUILDER

Function
DSP Builder
License
Renewal License
Software Application
IP CORE, DSP BUILDER
Core Architecture
FPGA
Core Sub-architecture
Arria, Cyclone, Stratix
Supported Families
Arria GX, Arria II GX, Cyclone, Stratix
Rohs Compliant
NA
Lead Free Status / RoHS Status
Not applicable / Not applicable
4–12
DSP Builder Standard Blockset Libraries
You can build an IF condition expression with the signal values 0 or 1 and any of the
permitted operators given in
Table 4–20. Supported If Statement Block Operators
When writing expressions in an If Statement block, ensure that the operators are
always operating on the same types. That is, bus signals compare with and operate
with bus signals; and booleans (the 'true' or 'false' result of such operations) only
compare with and operate with booleans. In other words, the types must be the same
on either side of an operator.
Treat an If statement expression, 0 and 1, as signals rather than as booleans,
otherwise you receive an error at HDL generation of the following form:
If you receive this error, carefully check the expressions specified in the If
Statement blocks.
The following examples of bad syntax give errors:
Can't determine definition of operator "<mixed operator>" -- found 0
possible definitions
(a>b)&c, where a,b and c are all input values to the If Statement.
Here (a>b) returns a boolean ('true' or 'false') and is ANDed with signal c. This
operation is ill defined and results in the following error:
Can't determine definition of operator ""&"" -- found 0 possible
definitions
((a>b)~0)
Again (a>b) returns a boolean ('true' or 'false'). 0 is treated as a signal not a
boolean, so the hardware generation fails with an error:
Can't determine definition of operator ""/="" -- found 0 possible
definitions"
where /= is the hardware translation of the 'not equal to' operator. Here the ~0
incorrectly means 'not false', and is unnecessary. The correct syntax for this
expression is just (a>b).
Operator
&
()
$
=
~
>
<
|
Preliminary
Table
4–20.
AND
OR
XOR
Equal To
Not Equal To
Greater Than
Less Than
Parentheses
Operation
Chapter 4: Gate & Control Library
© June 2010 Altera Corporation
If Statement

Related parts for IPTR-DSPBUILDER