]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
testing with smaller ram counter
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Mon, 23 Feb 2015 08:30:24 +0000 (09:30 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:36:58 +0000 (17:36 +0200)
ADC/source/adc_processor_cfd.vhd
ADC/source/adc_processor_cfd_ch.vhd

index 2751d857fdab724088394ecf2bc55d983ed7b9e2..94dd99507383a1e0db8d40265d2bf862db132c3d 100644 (file)
@@ -50,7 +50,7 @@ architecture arch of adc_processor_cfd is
 
   type ram_addr_t is array (CHANNELS - 1 downto 0) of std_logic_vector(8 downto 0);
   type ram_data_t is array (CHANNELS - 1 downto 0) of std_logic_vector(31 downto 0);
-  type ram_counter_t is array (CHANNELS - 1 downto 0) of unsigned(8 downto 0);
+  type ram_counter_t is array (CHANNELS - 1 downto 0) of unsigned(2 downto 0);
   signal ram_addr_adc, ram_addr_sys : ram_addr_t := (others => (others => '0'));
   signal ram_data_adc, ram_data_sys : ram_data_t := (others => (others => '0'));
   signal ram_counter : ram_counter_t := (others => (others => '0')); 
index 7e274d1ff5dc5b2263ae925acdb273eb9ba5b3ea..9f97c4abac0b4ba2d12d9afa09b0dd6c9c9a22d4 100644 (file)
@@ -95,7 +95,7 @@ architecture arch of adc_processor_cfd_ch is
   type state_t is (IDLE, INTEGRATE, WRITE1, WRITE2, WRITE3, WRITE4, FINISH, WAIT_BSY);
   signal state : state_t := IDLE;
 
-  signal ram_counter : unsigned(8 downto 0) := (others => '0'); 
+  signal ram_counter : unsigned(2 downto 0) := (others => '0'); 
 begin
   -- input ADC data interpreted as unsigned
   input <= unsigned(ADC_DATA);