DE10-LITE / TWO PROJECTS

FPGA Digital Design

Two projects on the DE10-Lite: a digital FIR low-pass filter and a quadrature encoder interface, with simulation and hardware test evidence.

Nov–Dec 2024

DE10-Lite and Arduino Due setup used for FIR bench testing.
64 tapsFIR filter length
10 kHzFIR sampling frequency
CW / CCWEncoder direction detection

01 / OVERVIEW

Project overview

Objective

Implement signal processing and an encoder interface in VHDL, then inspect their behaviour in simulation and on hardware.

Project scope

The portfolio documents FIR design and implementation, plus an encoder group project. The work covers signal acquisition, arithmetic, input filtering, direction detection, and display logic.

  • VHDL
  • Intel Quartus
  • Questa Intel
  • MATLAB
  • DE10-Lite
  • Oscilloscope

02 / FIR FILTER

Acquisition, filtering, and reconstruction

  1. 01

    Acquire

    Take 12-bit ADC samples through the Qsys interface at 10 kHz.

  2. 02

    Filter

    Use a 64-sample circular buffer and fixed-coefficient FIR convolution.

  3. 03

    Reconstruct

    Send the output through GPIO to an Arduino Due DAC and inspect it on an oscilloscope.

VHDL arithmetic and sample storage

A circular write index stores the sample history. Each convolution multiplies 64 stored samples by fixed integer coefficients, accumulates the products, and scales the result to 12 bits.

03 / FIR BENCH RESULTS

Response around the cutoff

Input frequencyReported outputObservation
900 Hz580 mVppBelow-cutoff output follows the input waveform.
2,000 Hz420 mVppApproximately −3 dB at the nominal cutoff, as reported.
2,300 Hz80 mVppAbove-cutoff signal attenuated near the DC offset.

04 / ENCODER GROUP PROJECT

Direction and relative position

The interface reads incremental A/B signals through GPIO. Their phase relationship determines whether the counter increases or decreases. The 50 MHz board clock feeds selectable 1 kHz or 20 kHz processing modes.

  1. 01

    Qualify the input

    A three-sample shift register qualifies a high input only when all stored samples are high.

  2. 02

    Detect direction

    A leading B increments the count for clockwise rotation. B leading A decrements it for counterclockwise rotation.

  3. 03

    Display the count

    Convert the binary count to hundreds, tens, and units on HEX2, HEX1, and HEX0.

The presentation reports effective input-noise suppression and correct count display. The encoder work is identified as a group project.

REFERENCE MATERIAL

Explore the full project

More detail is available in the original presentation.

View presentation