IPTR-C2H-NIOS Altera, IPTR-C2H-NIOS Datasheet - Page 50

no-image

IPTR-C2H-NIOS

Manufacturer Part Number
IPTR-C2H-NIOS
Description
IP CORE Renewal Of IPT-C2H-NIOS
Manufacturer
Altera
Datasheet

Specifications of IPTR-C2H-NIOS

Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
Nios II
Features
ANSI C Compliance, Straightforward C-to-Hardware Mapping, Reporting Of Generated Results
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
na
One-to-One C-to-Hardware Mapping
3–10
Nios II C2H Compiler User Guide
Table 3–4
equivalent if-else statements.
Figure 3–7
from
switch (byte_select)
{
}
Table 3–4. switch Statement Converted to if-else Statements
case 1:
case 2:
case 3:
default:
Table
out = in & 0x0000ff00;
break;
out = in & 0x00ff0000;
break;
out = in & 0xff000000;
break;
out = in & 0x000000ff;
switch Implementation
shows an example of a switch statement converted to
shows the logic that results of translating the if-else code
3–4.
9.1
if (byte_select == 1)
else
out = in & 0x0000ff00;
if (byte_select == 2)
else
out = in & 0x00ff0000;
if (byte_select == 3)
else
if-else Implementation
out = in & 0xff000000;
out = in & 0x000000ff;
Altera Corporation
November 2009

Related parts for IPTR-C2H-NIOS