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

no-image

IPT-C2H-NIOS

Manufacturer Part Number
IPT-C2H-NIOS
Description
C2H COMPILER FOR NIOS II
Manufacturer
Altera
Series
Nios®IIr
Type
Nios IIr
Datasheet

Specifications of IPT-C2H-NIOS

Function
C to Hardware Compiler
License
Initial License
Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
FPGA
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
Not applicable / Not applicable
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 IPT-C2H-NIOS