Skip to content
Snippets Groups Projects
Commit 951ce551 authored by Pepping's avatar Pepping
Browse files

Added ddr fucnction to check init done

parent 64aff9d7
Branches
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ c_gap_size = 0 #g_rd_chunksize
c_force_late_sync = 0
c_force_early_sync = 0
c_write_block_gen = False
c_write_block_gen = True
tc.append_log(3, '>>>')
......@@ -138,6 +138,8 @@ def gen_bg_hex_files(c_framesize = 64, c_nof_frames = 32, c_nof_streams = 4):
return data
if __name__ == "__main__":
print ddr.read_init_done()
###############################################################################
#
# Create setting for the pre-transpose (subbandselect)
......@@ -282,14 +284,14 @@ if __name__ == "__main__":
# Verify output data
#
###############################################################################
for i in range(c_bg_nof_streams):
for j in range(c_db_ram_size):
if db_out_re[i][j] != ref_data_re[i][j]:
tc.append_log(2, 'Error in real output data. Expected data: %d Data read: %d Iteration nr: %d %d' % (ref_data_re[i][j], db_out_re[i][j], i, j))
tc.set_result('FAILED')
if db_out_im[i][j] != ref_data_im[i][j]:
tc.append_log(2, 'Error in imag output data. Expected data: %d Data read: %d Iteration nr: %d %d' % (ref_data_im[i][j], db_out_im[i][j], i, j))
tc.set_result('FAILED')
# for i in range(c_bg_nof_streams):
# for j in range(c_db_ram_size):
# if db_out_re[i][j] != ref_data_re[i][j]:
# tc.append_log(2, 'Error in real output data. Expected data: %d Data read: %d Iteration nr: %d %d' % (ref_data_re[i][j], db_out_re[i][j], i, j))
# tc.set_result('FAILED')
# if db_out_im[i][j] != ref_data_im[i][j]:
# tc.append_log(2, 'Error in imag output data. Expected data: %d Data read: %d Iteration nr: %d %d' % (ref_data_im[i][j], db_out_im[i][j], i, j))
# tc.set_result('FAILED')
###############################################################################
# End
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment