Describe the functionality of a digital phase-locked loop (DPLL).
A Digital Phase-Locked Loop (DPLL) maintains synchronization of a digital output signal with a reference signal. It uses a digital or software-based approach to lock onto the phase and frequency of the input signal, often used in digital communication systems for clock recovery and frequency synthesis.