FPGAcademy handout edition 24.1 · DE1-SoC

Computer Organization

Write assembly and C for the Nios V processor. Work with memory, interrupts and peripherals on the remote DE1-SoC.

Where the 36 numbered parts run

  • 2 Physical DE1-SoC or CPUlator
  • 33 CPUlator only
  • 1 Handout only
Source
FPGAcademy handout edition 24.1
Languages
C
Before you begin
Binary arithmetic and basic programming

Physical DE1-SoC · Nios V

LEDs 4 and 0 are lit, encoding 17.
Recorded on a physical Nios V system. A C program finds the maximum of a signed array and shows 17 on the ten red LEDs. With all-negative inputs, the LEDs show 1111111001 (−7). Open the activity

Labs and parts keep their FPGAcademy numbers and order.

  1. Lab 1: The Nios V computerRun a first program and identify its output.6 parts5 · CPUlator only1 · Handout only
  2. Lab 2: Logic instructionsUse a bit mask to isolate selected inputs.4 partsCPUlator only
  3. Lab 3: Polling, timers and I/ORead an input and drive a hardware output.4 partsCPUlator only
  4. Lab 4: Stack and subroutinesPreserve a register through two calls.4 partsCPUlator only
  5. Lab 5: Interrupts in assemblyCompare a masked event with one serviced by the CPU.4 partsCPUlator only
  6. Lab 6: Programming in CReport a list maximum to the terminal and LEDs.6 parts2 · Physical DE1-SoC or CPUlator4 · CPUlator only
  7. Lab 7: Interrupts in CCount events while the foreground program continues.4 partsCPUlator only
  8. Lab 8: GraphicsWrite a pattern to a video framebuffer.4 partsCPUlator only

LabsLand extensions