1D-DCT Test

test.test_dct_1d.test_dct_1d()

1D-DCT MyHDL Test

In this test is verified the correct behavior of the 1d-dct module

test.test_dct_1d.out_print(expected_outputs, actual_outputs)

Helper function for better printing of the results

class test.test_dct_1d.InputsAndOutputs(samples, N)

Inputs and Outputs Construction Class

This class is used to create the inputs and the derive the ouputs from the software reference of the 1d-dct. Each element in the input list is fed in the test module and the outputs of the module are compared with the elements in the outputs list. These list are converted to tuples and used as ROMs in the convertible testbench

get_rom_tables()

Convert the lists to tuples

initialize()

Initialize the inputs and outputs lists