Lab 01 · FPGAcademy handout edition 24.1

The Nios V computer

Run a first program and identify its output.

Start with Part I Step through your first RISC-V instructions

Parts in handout order

  1. Part I
    Step through your first RISC-V instructions

    FPGAcademy: Step through RISC-V instructions in CPUlator

    CPUlator simulatorCPUlator

    Original handout PDF

  2. Part II
    Trace a signed maximum in the debugger

    FPGAcademy: Find the largest signed word in memory

    CPUlator simulatorCPUlator

    Original handout PDF

  3. Part III
    Return a maximum from a subroutine

    FPGAcademy: Pass a list to a maximum-finding subroutine

    CPUlator simulatorCPUlator

    Original handout PDF

  4. Part IV
    Reverse bytes in place

    FPGAcademy: Reverse the bytes of a string in place

    CPUlator simulatorCPUlator

    Original handout PDF

  5. Part V
    Reuse string routines for two instrument labels

    FPGAcademy: Split string reversal into two subroutines

    CPUlator simulatorCPUlator

    Original handout PDF

  6. Part VI
    Debug a program on the physical processor with GDB

    Handout only

    On-board GDB debugging requires a live debugger connection. The remote version is in development.

    Original handout PDF

Original starter files

niosv_standard_lab1_design_files.zip