Skip to content
Snippets Groups Projects
Commit 653e25bb authored by Pepping's avatar Pepping
Browse files

- Added c_force_late_sync and c_force_early_sync

- Fixed wrong indent of ref_data_total 
parent dde4f5c4
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,11 @@ c_db_nof_streams = c_bg_nof_streams ...@@ -88,8 +88,11 @@ c_db_nof_streams = c_bg_nof_streams
c_db_ram_size = c_bg_ram_size #g_rd_chunksize * g_rd_nof_chunks * g_nof_blocks c_db_ram_size = c_bg_ram_size #g_rd_chunksize * g_rd_nof_chunks * g_nof_blocks
c_frame_size = g_wr_chunksize c_frame_size = g_wr_chunksize
c_nof_int_streams = 1 c_nof_int_streams = 1
c_ena_pre_transpose = False c_ena_pre_transpose = True
c_gap_size = 0 #g_rd_chunksize c_gap_size = 0 #g_rd_chunksize
c_force_late_sync = 0
c_force_early_sync = 0
tc.append_log(3, '>>>') tc.append_log(3, '>>>')
tc.append_log(1, '>>> Title : Test bench for ddr3_transpose' ) tc.append_log(1, '>>> Title : Test bench for ddr3_transpose' )
...@@ -139,11 +142,11 @@ if __name__ == "__main__": ...@@ -139,11 +142,11 @@ if __name__ == "__main__":
for j in range(g_rd_chunksize): for j in range(g_rd_chunksize):
ss_list.append(i + j*c_frame_size) ss_list.append(i + j*c_frame_size)
if c_ena_pre_transpose:
ss.write_selects(ss_list)
# for i in ss_list: # for i in ss_list:
# print i # print i
# ss.write_selects(ss_list)
############################################################################### ###############################################################################
# #
# Create stimuli for the BG # Create stimuli for the BG
...@@ -180,11 +183,16 @@ if __name__ == "__main__": ...@@ -180,11 +183,16 @@ if __name__ == "__main__":
# Enable the blockgenerator # Enable the blockgenerator
bg.write_enable() bg.write_enable()
if(c_force_late_sync == 1):
do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=180000, s_timeout=13600) # 110000 do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=180000, s_timeout=13600) # 110000
bg.write_disable() bg.write_block_gen_settings(samplesPerPacket=c_frame_size, blocksPerSync=g_nof_blk_per_sync+1, gapSize=c_gap_size, memLowAddr=0, memHighAddr=c_bg_ram_size-1, BSNInit=10)
elif(c_force_early_sync == 1):
do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=180000, s_timeout=13600) # 110000
bg.write_block_gen_settings(samplesPerPacket=c_frame_size, blocksPerSync=g_nof_blk_per_sync-1, gapSize=c_gap_size, memLowAddr=0, memHighAddr=c_bg_ram_size-1, BSNInit=10)
do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=182000, s_timeout=13600) # 110000 #do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=182000, s_timeout=13600) # 110000
bg.write_enable() #bg.write_enable()
# #
#do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=120000, s_timeout=13600) # 110000 #do_until_gt(io.simIO.getSimTime, ms_retry=1000, val=120000, s_timeout=13600) # 110000
#bg.write_disable() #bg.write_disable()
...@@ -197,8 +205,6 @@ if __name__ == "__main__": ...@@ -197,8 +205,6 @@ if __name__ == "__main__":
# #
############################################################################### ###############################################################################
# Subband Select pre-transpose # Subband Select pre-transpose
print "len(ss_list)"
print len(ss_list)
if c_ena_pre_transpose: if c_ena_pre_transpose:
bg_data = ss.subband_select(bg_data, ss_list) bg_data = ss.subband_select(bg_data, ss_list)
...@@ -208,11 +214,6 @@ if __name__ == "__main__": ...@@ -208,11 +214,6 @@ if __name__ == "__main__":
bg_data_single_page = bg_data[t*c_pagesize:(t+1)*c_pagesize] bg_data_single_page = bg_data[t*c_pagesize:(t+1)*c_pagesize]
# Write to memory # Write to memory
mem_page = [0] * c_pagesize mem_page = [0] * c_pagesize
print "len(mem_page)"
print len(mem_page)
print "len(bg_data_single_page)"
print len(bg_data_single_page)
for i in range(g_nof_blocks): for i in range(g_nof_blocks):
for j in range(g_wr_nof_chunks): for j in range(g_wr_nof_chunks):
for k in range(g_wr_chunksize): for k in range(g_wr_chunksize):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment