]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Counter on data
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Tue, 17 Feb 2015 16:29:34 +0000 (17:29 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:36:56 +0000 (17:36 +0200)
ADC/sim/adc_serializer.vhd

index 50ef1f1c71002793b7595f1a148a08fa4531f7c8..c2a1825aceab402098800befc61d79ca67777208 100644 (file)
@@ -26,12 +26,15 @@ begin
   ADC_DCO <= ddr_clock;
   
   output : process is
+    variable cnt : unsigned(4 downto 0);
   begin
     wait until rising_edge(ddr_clock);
-    ADC_DATA <= (others => '1');
+    ADC_DATA <= std_logic_vector(cnt);
+    cnt := cnt+1;
     
     wait until falling_edge(ddr_clock);
-    ADC_DATA <= (others => '0');
+    ADC_DATA <= std_logic_vector(cnt);
+    cnt := cnt+1;
   end process output;  
   
 end architecture arch;