Lab 04 · FPGAcademy handout edition 24.1

Stack and subroutines

Preserve a register through two calls.

Start with Part I Trace a byte from the stack to the terminal

Parts in handout order

  1. Part I
    Trace a byte from the stack to the terminal

    FPGAcademy: Send characters and a hex digit to the terminal

    CPUlator simulatorCPUlator

    Original handout PDF

  2. Part II
    Print all eight hexadecimal digits of a word

    FPGAcademy: Print a complete word in hexadecimal

    CPUlator simulatorCPUlator

    Original handout PDF

  3. Part III
    Format an unsigned 32-bit word as decimal text

    FPGAcademy: Format a word as decimal text

    CPUlator simulatorCPUlator

    Original handout PDF

  4. Part IV
    Read a live register with the board controls

    FPGAcademy: Select a saved register and print it in decimal or hex

    CPUlator simulatorCPUlator

    Original handout PDF

Original starter files

niosv_standard_lab4_design_files.zip