From 711631402b2d748b086ff721f90320f816000c12 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Thu, 26 Feb 2015 19:09:52 +0000 Subject: [PATCH] Added c_diag_block_gen_enabled. --- libraries/base/diag/src/vhdl/diag_pkg.vhd | 27 +++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/libraries/base/diag/src/vhdl/diag_pkg.vhd b/libraries/base/diag/src/vhdl/diag_pkg.vhd index c24f0aaa65..95a73d6343 100644 --- a/libraries/base/diag/src/vhdl/diag_pkg.vhd +++ b/libraries/base/diag/src/vhdl/diag_pkg.vhd @@ -117,15 +117,24 @@ PACKAGE diag_pkg IS bsn_init : STD_LOGIC_VECTOR(c_diag_bg_bsn_init_w -1 DOWNTO 0); END RECORD; - CONSTANT c_diag_block_gen_rst : t_diag_block_gen := ( '0', - '0', - TO_UVEC( 256, c_diag_bg_samples_per_packet_w), - TO_UVEC( 10, c_diag_bg_blocks_per_sync_w), - TO_UVEC( 128, c_diag_bg_gapsize_w), - TO_UVEC( 0, c_diag_bg_mem_low_adrs_w), - TO_UVEC( 1, c_diag_bg_mem_high_adrs_w), - TO_UVEC( 0, c_diag_bg_bsn_init_w)); - + CONSTANT c_diag_block_gen_rst : t_diag_block_gen := ( '0', + '0', + TO_UVEC( 256, c_diag_bg_samples_per_packet_w), + TO_UVEC( 10, c_diag_bg_blocks_per_sync_w), + TO_UVEC( 128, c_diag_bg_gapsize_w), + TO_UVEC( 0, c_diag_bg_mem_low_adrs_w), + TO_UVEC( 1, c_diag_bg_mem_high_adrs_w), + TO_UVEC( 0, c_diag_bg_bsn_init_w)); + + CONSTANT c_diag_block_gen_enabled : t_diag_block_gen := ( '1', + '0', + TO_UVEC( 50, c_diag_bg_samples_per_packet_w), + TO_UVEC( 10, c_diag_bg_blocks_per_sync_w), + TO_UVEC( 7, c_diag_bg_gapsize_w), + TO_UVEC( 0, c_diag_bg_mem_low_adrs_w), + TO_UVEC( 15, c_diag_bg_mem_high_adrs_w), -- fits any BG buffer that has address width >= 4 + TO_UVEC( 0, c_diag_bg_bsn_init_w)); + TYPE t_diag_block_gen_arr IS ARRAY (INTEGER RANGE <>) OF t_diag_block_gen; -- Overloaded sel_a_b (from common_pkg) for t_diag_block_gen -- GitLab