]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Rename config record names
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Thu, 19 Feb 2015 08:45:14 +0000 (09:45 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:36:57 +0000 (17:36 +0200)
ADC/sim/tb_adcprocessor_cfd.vhd
ADC/source/adc_package.vhd
ADC/source/adc_processor_cfd_ch.vhd

index 7d0dba75e4d104494e62e81565b78f80661da837..d94b823445eda2d26ebc3dff4103b3038a13f880 100644 (file)
@@ -36,9 +36,9 @@ begin
   config.BaselineAverage <= to_unsigned(8, 4);
   config.PolarityInvert  <= '1';
 
-  config.check_word1       <= (others => '0');
-  config.check_word2       <= (others => '0');
-  config.check_word_enable <= '0';
+  config.CheckWord1       <= (others => '0');
+  config.CheckWord2       <= (others => '0');
+  config.CheckWordEnable  <= '0';
 
   readout_rx.valid_notiming_trg <= '0';
   readout_rx.invalid_trg        <= '0';
index ef5b38cb155ffcdca71c25da42c121d7c152f194..dc7c75d7e82babf74ac6f1129d2be47ac06feaf5 100644 (file)
@@ -57,9 +57,9 @@ type cfg_cfd_t is record
   CFDMultDly       : unsigned(3 downto 0);
   IntegrateWindow  : unsigned(7 downto 0);
   TriggerDelay     : unsigned(11 downto 0);
-  check_word1       : std_logic_vector(RESOLUTION-1 downto 0);
-  check_word2       : std_logic_vector(RESOLUTION-1 downto 0);
-  check_word_enable : std_logic;
+  CheckWord1       : std_logic_vector(RESOLUTION-1 downto 0);
+  CheckWord2       : std_logic_vector(RESOLUTION-1 downto 0);
+  CheckWordEnable  : std_logic;
 end record;
 
 end package;
index c73816c8c02010ef9de5b609951231e852518e1c..23b435cd2a50676518fa6a6e6bdedfc8fedfc595 100644 (file)
@@ -61,7 +61,7 @@ begin
     process
     begin
       wait until rising_edge(CLK);
-      if ADC_DATA /= CONF.check_word1 and ADC_DATA /= CONF.check_word2 and CONF.check_word_enable = '1' then
+      if ADC_DATA /= CONF.CheckWord1 and ADC_DATA /= CONF.CheckWord2 and CONF.CheckWordEnable = '1' then
         invalid_word_count <= invalid_word_count + 1;
       end if;
     end process;
@@ -126,4 +126,6 @@ begin
     baseline <= baseline_average(avg + RESOLUTION - 1 downto avg);
   end process proc_baseline_average;
 
+
+
 end architecture arch;