2D-DCT Test¶
-
test.test_dct_2d.
test_dct_2d
()¶ 2D-DCT MyHDL Test
In this test is verified the correct behavior of the 2d-dct module
-
test.test_dct_2d.
out_print
(expected_outputs, actual_outputs, N)¶ Helper function for better printing of the results
-
class
test.test_dct_2d.
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 2d-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
-
random_matrix_8_8
()¶ Create a random NxN matrix with values from 0 to 255
-