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

Added constants and record for MM rgeister of diag sequence tx/rx to diag_pkg.vhd.

parent 02096562
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ build_dir_sim = $HDL_BUILD_DIR ...@@ -9,7 +9,7 @@ build_dir_sim = $HDL_BUILD_DIR
build_dir_synth = $HDL_BUILD_DIR build_dir_synth = $HDL_BUILD_DIR
synth_files = synth_files =
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_pkg.vhd src/vhdl/diag_pkg.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_bypass.vhd $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_bypass.vhd
src/vhdl/diag_tx_seq.vhd src/vhdl/diag_tx_seq.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_tx_frm.vhd $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_tx_frm.vhd
......
...@@ -143,6 +143,27 @@ PACKAGE diag_pkg IS ...@@ -143,6 +143,27 @@ PACKAGE diag_pkg IS
e_imag e_imag
); );
-----------------------------------------------------------------------------
-- CNTR / PSRG sequence test data
-----------------------------------------------------------------------------
CONSTANT c_diag_seq_tx_reg_nof_dat : NATURAL := 3;
CONSTANT c_diag_seq_tx_reg_adr_w : NATURAL := ceil_log2(c_diag_seq_tx_reg_nof_dat);
CONSTANT c_diag_seq_rx_reg_nof_dat : NATURAL := 3;
CONSTANT c_diag_seq_rx_reg_adr_w : NATURAL := ceil_log2(c_diag_seq_rx_reg_nof_dat);
-- Record with all diag seq MM register fields
TYPE t_diag_seq_mm_reg IS RECORD
tx_init : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0); -- readback ctrl
tx_ctrl : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0);
rx_ctrl : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0);
tx_cnt : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0); -- read cnt and stat
rx_cnt : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0);
rx_stat : STD_LOGIC_VECTOR(c_word_w -1 DOWNTO 0);
END RECORD;
TYPE t_diag_seq_mm_reg_arr IS ARRAY (INTEGER RANGE <>) OF t_diag_seq_mm_reg;
END diag_pkg; END diag_pkg;
PACKAGE BODY diag_pkg IS PACKAGE BODY diag_pkg IS
...@@ -157,6 +178,3 @@ PACKAGE BODY diag_pkg IS ...@@ -157,6 +178,3 @@ PACKAGE BODY diag_pkg IS
END; END;
END diag_pkg; END diag_pkg;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment