diff --git a/libraries/dsp/bf/tb/python/tc_bf_unit.py b/libraries/dsp/bf/tb/python/tc_bf_unit.py index f8e571b8aceac636b29c61fa7f6655bfc97af6fa..a51330be89840811001bf5acf6e6b42a5c3a8cfd 100644 --- a/libraries/dsp/bf/tb/python/tc_bf_unit.py +++ b/libraries/dsp/bf/tb/python/tc_bf_unit.py @@ -144,7 +144,8 @@ c_gen_hex_files = True # Use True to create hex files for BG, BF weights # When following constants are set to False, be sure there are .hex files!!! c_write_bg = False # When set to True the waveform will be written to the block generator over the MM bus. When False this will be skipped. -c_write_bf_weights = False # When set to True the weights will be written via the MM bus. When False this will be skipped. +c_write_bf_weights = True # When set to True the weights will be written via the MM bus. When False this will be skipped. +c_write_bf_weights = False c_write_bf_ss_wide = False # When set to True the setting for ss_wide will be written via the MM bus. When False this will be skipped. # Create access object for nodes @@ -327,6 +328,7 @@ if __name__ == "__main__": if c_write_bf_weights: for i in range(c_nof_signal_paths): bf.write_weights(generated_weights[i], i) + bf.read_weight(i, weightNr=0) ################################################################################ ## diff --git a/libraries/dsp/bf/tb/vhdl/tb_bf_unit.vhd b/libraries/dsp/bf/tb/vhdl/tb_bf_unit.vhd index b3a4d35443b2dcc55c71f542d3db1389a18717f0..2531a8979d31f02e261f04b141c8de165c1013e0 100644 --- a/libraries/dsp/bf/tb/vhdl/tb_bf_unit.vhd +++ b/libraries/dsp/bf/tb/vhdl/tb_bf_unit.vhd @@ -251,7 +251,9 @@ BEGIN GENERIC MAP ( g_bf => c_bf, g_bf_weights_file_name => g_bf_weights_file_name, - g_ss_wide_file_prefix => g_ss_wide_file_prefix + g_ss_wide_file_prefix => g_ss_wide_file_prefix, + g_weights_write_only => FALSE + --g_weights_write_only => TRUE ) PORT MAP ( -- System