Lab 02 · FPGAcademy handout edition 24.1

Logic instructions

Use a bit mask to isolate selected inputs.

Start with Part I Follow a run of ones as it shrinks

Parts in handout order

  1. Part I
    Follow a run of ones as it shrinks

    FPGAcademy: Count the longest run of set bits in a word

    CPUlator simulatorCPUlator

    Original handout PDF

  2. Part II
    Find the longest run in a list of words

    FPGAcademy: Find the longest run of ones across a list

    CPUlator simulatorCPUlator

    Original handout PDF

  3. Part III
    Count consecutive zeros in 32 bits

    FPGAcademy: Find the longest run of zeros

    CPUlator simulatorCPUlator

    Original handout PDF

  4. Part IV
    Measure an alternating bit pattern

    FPGAcademy: Measure the longest alternating bit sequence

    CPUlator simulatorCPUlator

    Original handout PDF

Original starter files

niosv_standard_lab2_design_files.zip