Skip to content
Snippets Groups Projects
Commit 69e86d04 authored by Pepping's avatar Pepping
Browse files

Added pi_io_ddr object to check init done

parent f2af0b13
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ import pi_diag_block_gen
import pi_diag_data_buffer
import pi_ss_ss_wide
import dsp_test
import pi_io_ddr
import sys, os
import subprocess
......@@ -114,6 +115,9 @@ db_im = pi_diag_data_buffer.PiDiagDataBuffer(tc, io, instanceName = 'IM', nofStr
# Create subandselect instance for pre-transpose.
ss = pi_ss_ss_wide.PiSsSsWide (tc, io, c_frame_size*g_rd_chunksize, c_nof_int_streams)
# Create object for DDR register map
ddr = pi_io_ddr.PiIoDdr(tc, io, nof_inst = 1)
# Create dsp_test instance for helpful methods
dsp_test_bg = dsp_test.DspTest(inDatW=c_in_dat_w)
......@@ -146,7 +150,7 @@ if __name__ == "__main__":
if c_ena_pre_transpose:
ss.write_selects(ss_list)
###############################################################################
#
# Create stimuli for the BG
......@@ -187,8 +191,8 @@ if __name__ == "__main__":
# Wait until the DDR3 model is initialized.
if tc.sim == True:
do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=110000, s_timeout=13600) # 110000
do_until_eq(ddr.read_init_done, ms_retry=1000, val=1, s_timeout=13600) # 110000
if(c_force_late_sync == 1):
if tc.sim == True:
do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=180000, s_timeout=13600) # 110000
......@@ -299,3 +303,4 @@ if __name__ == "__main__":
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment