Skip to content
Snippets Groups Projects
Commit 437aa1d3 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Fix the DAQ buffers

* I messed up on the way
* Double the memory used. A BPM buffer should last 13 sec of data, a PSC
  33 sec of data.
* Add a new channel, it somehow helped for the computation of DAQ shots
parent fdf65a9a
No related branches found
No related tags found
No related merge requests found
......@@ -74,12 +74,12 @@ package pkg_app_config is
-- Region 0 is BPM data
constant C_DAQ0_IS_CONTINUOUS : natural := 1;
constant C_DAQ0_MAX_SAMPLES : natural := 16#00800000#; -- Buffer size / 16 bytes
constant C_DAQ0_CHANNELS_IN_TAB : natural := 3;
constant C_DAQ0_MAX_SAMPLES : natural := 16#01000000#; -- Buffer size / 16 bytes
constant C_DAQ0_CHANNELS_IN_TAB : natural := 4;
constant C_DAQ0_TAB_COUNT : natural := 1;
constant C_DAQ0_TAB_CONTENTS : t_natural_vector := (2, 1, 0);
constant C_DAQ0_TAB_CONTENTS : t_natural_vector := (3, 2, 1, 0);
constant C_DAQ0_BUF0_OFFSET : natural := 16#00000000#;
constant C_DAQ0_BUF1_OFFSET : natural := 16#08000000#;
constant C_DAQ0_BUF1_OFFSET : natural := 16#10000000#;
-- Region 1 is Correction data
constant C_DAQ1_IS_CONTINUOUS : natural := 1;
......@@ -87,8 +87,8 @@ package pkg_app_config is
constant C_DAQ1_CHANNELS_IN_TAB : natural := 1;
constant C_DAQ1_TAB_COUNT : natural := 1;
constant C_DAQ1_TAB_CONTENTS : t_natural_vector := (0=>3);
constant C_DAQ1_BUF0_OFFSET : natural := 16#10000000#;
constant C_DAQ1_BUF1_OFFSET : natural := 16#18000000#;
constant C_DAQ1_BUF0_OFFSET : natural := 16#20000000#;
constant C_DAQ1_BUF1_OFFSET : natural := 16#30000000#;
-- not used, only two regions
constant C_DAQ2_IS_CONTINUOUS : natural := 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment