Altera Nios II C2H Compiler Bedienungsanleitung Seite 47

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 138
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 46
Altera Corporation 9.1 3–7
November 2009 Nios II C2H Compiler User Guide
C-to-Hardware Mapping Reference
Figure 3–4. if-else Logic
If the if statement has only a then or only an else block, the resulting
logic is a simplification of the if-else case. The multiplexer selects
whether to propagate the result of the if block or the initial values from
before the if statement.
Figure 3–5 shows the circuit that results from the code in Example 3–3.
Example 3–3. if Logic Without else
if (foo > bar)
foo += bar;
Seitenansicht 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 137 138

Kommentare zu diesen Handbüchern

Keine Kommentare