Skip to content
Snippets Groups Projects
Commit efd9a740 authored by Kenneth Hiemstra's avatar Kenneth Hiemstra
Browse files

cleanup

parent 83318ded
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,6 @@ io.wait_for_time(hw_time=0.01, sim_time=(1, 'us')) ...@@ -88,8 +88,6 @@ io.wait_for_time(hw_time=0.01, sim_time=(1, 'us'))
# Control defaults # Control defaults
nof_mon = 5 nof_mon = 5
start_address = 0 start_address = 0
#start_address = tc.number
#nof_words = 1000 #tc.number+10
nof_words = tc.number nof_words = tc.number
for rep in range(tc.repeat): for rep in range(tc.repeat):
...@@ -112,7 +110,6 @@ for rep in range(tc.repeat): ...@@ -112,7 +110,6 @@ for rep in range(tc.repeat):
# Set DDR controller in write mode and start writing # Set DDR controller in write mode and start writing
io_ddr[mb].write_set_address(data=start_address, vLevel=5) io_ddr[mb].write_set_address(data=start_address, vLevel=5)
# print 'nof_words=',nof_words
io_ddr[mb].write_access_size(data=nof_words, vLevel=5) io_ddr[mb].write_access_size(data=nof_words, vLevel=5)
io_ddr[mb].write_mode_write(vLevel=5) io_ddr[mb].write_mode_write(vLevel=5)
io_ddr[mb].write_begin_access(vLevel=5) io_ddr[mb].write_begin_access(vLevel=5)
...@@ -125,12 +122,6 @@ for rep in range(tc.repeat): ...@@ -125,12 +122,6 @@ for rep in range(tc.repeat):
io.wait_for_time(hw_time=0.01, sim_time=(1, 'us')) io.wait_for_time(hw_time=0.01, sim_time=(1, 'us'))
tx_seq_ddr[mb].read_cnt(vLevel=5) tx_seq_ddr[mb].read_cnt(vLevel=5)
# for mb in mb_list:
# # Wait until controller write access is done
# do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000)
# tc.sleep(10.0)
for mb in mb_list: for mb in mb_list:
# Wait until controller write access is done # Wait until controller write access is done
do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000) do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000)
...@@ -147,7 +138,6 @@ for rep in range(tc.repeat): ...@@ -147,7 +138,6 @@ for rep in range(tc.repeat):
io.wait_for_time(hw_time=0.01, sim_time=(1, 'us')) io.wait_for_time(hw_time=0.01, sim_time=(1, 'us'))
rx_seq_ddr[mb].read_cnt(vLevel=5) rx_seq_ddr[mb].read_cnt(vLevel=5)
# print "2"
for mb in mb_list: for mb in mb_list:
# Wait until controller read access is done # Wait until controller read access is done
do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000) do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment