Skip to content
Snippets Groups Projects
Commit d8a01438 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Support readback of last BF weight write in bf_unit.vhd and verified it in...

Support readback of last BF weight write in bf_unit.vhd and verified it in Wave window using tb_bf_unit.vhd/py.
parent bf6dfa1d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
################################################################################
##
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment