Lab COMPARE Assignment
Lab COMPARE Assignment
After verifying your Lab-COMPARE design by using your test-bench simulation results, integrate Lab-COMPARE
with the Lab-PCB, ADC board, Lab-ADC, Lab-WINDOW, Lab-CTRL, Lab-FFT, Lab-MEL, Lab-DCT. Control and
observe the process sequence using start_in signal of Lab-CTRL and ready_out signals of the components. On the
Basys-3 board, use a button for start_in signaling, a LED for each ready_out signals of the components, 7-
segment display for displaying the spoken number (0 to 9), a mode switch (RECORD/COMPARE) and 4 switches
for NUMBER signal that defines the number whose feature vectors are to be calculated during the RECORD
mode.
2. Demonstration
Present your test bench simulation results: inputs, outputs (waveforms). Show that Lab-COMPARE stores
feature vectors of the defined number in REF-MEM. Show that the system stores feature vectors of the
spoken number in COMP-MEM. Show that the system compares the feature vectors and finds the best
match.
Configure your integrated design on Basys-3 board. Use start_in button and ready_out LEDs of the
components to observe/verify process sequence. Use RECORD/COMPARE switch, NUMBER switch and 7-
segment display. If you need you may add more LEDs for further observations.
Prepare the Lab-COMPARE demonstration set up. Set the RECORD/COMPARE switch to RECORD mode, set
the NUMBER switch, see the set number on the 7-segment display, speak the set number to the
microphone, and then let the system store the feature vectors of the set number. Repeat this for the
remaining 9 numbers. Then switch to COMPARE mode, speak a number to the microphone, and let the
system recognize the spoken number and display it on 7-segment display.
3. Guidance
Test bench may store predefined feature vectors of 10 numbers in a ROM (filled with data in COE file). Test
bench stores feature vectors of a number to be compared in a ROM (filled with data in COE file). Test bench
addresses the ROM so that at each “start_in” signal activation a set of feature vector is available (as Lab-DCT
memory output) to be read by the Lab-COMPARE. There may be several test benches to test various
functions of the Lab-COMPARE.
There may be more than one feature vectors for per number in order to increase recognition performance.
The sizes of the memories depend on the number of feature vectors which are determined during Lab-
MATLAB assignment.
Let F be the number of frames to be processed. Lab-CTRL sends the start signal F times to the Lab-COMPARE.
Lab-CTRL must count the start signals and generate memory address in order to store the feature vectors
data to either REF-RAM or COMP-RAM.
You may initially verify your system by recording and then comparing feature vectors of sinusoid signals in 10
different frequencies.