]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
conflict fix
authorCahit <c.ugur@gsi.de>
Wed, 3 Dec 2014 08:25:49 +0000 (09:25 +0100)
committerCahit <c.ugur@gsi.de>
Wed, 3 Dec 2014 08:25:49 +0000 (09:25 +0100)
1  2 
tdc_releases/tdc_v1.6.3/Encoder_304_Bit.vhd
tdc_releases/tdc_v1.6.3/tdc_components.vhd

index f5d30b895bdfbcf0a55dd0cb0883d6a975f758ce,720eeedb6eefd7aad940b4122e40f27a8d913093..a0a08223b60b986bd837e03a80e2904a6463dbdc
@@@ -3,11 -3,10 +3,12 @@@ use ieee.std_logic_1164.all
  use ieee.numeric_std.all;
  library work;
  use work.trb_net_std.all;
+ use work.trb3_components.all;
  
  package tdc_components is
 -  
 +
 +  type unsigned_array_8 is array (integer range <>) of unsigned(7 downto 0);
 +    
    component TDC is
      generic (
        CHANNEL_NUMBER : integer range 2 to 65;
        Q          : out std_logic_vector(7 downto 0));
    end component;
  
 -  component ROM4_Encoder is
 +  component bit_sync
 +    generic (
 +      DEPTH : integer);
      port (
 -      Address    : in  std_logic_vector(9 downto 0);
 -      OutClock   : in  std_logic;
 -      OutClockEn : in  std_logic;
 -      Reset      : in  std_logic;
 -      Q          : out std_logic_vector(7 downto 0));
 -  end component ROM4_Encoder;
 +      RESET : in  std_logic;
 +      CLK0  : in  std_logic;
 +      CLK1  : in  std_logic;
 +      D_IN  : in  std_logic;
 +      D_OUT : out std_logic);
 +  end component;
 +
 +  component edge_to_pulse
 +    port (
 +      clock     : in  std_logic;
 +      en_clk    : in  std_logic;
 +      signal_in : in  std_logic;
 +      pulse     : out std_logic);
 +  end component;
 +
 +  component risingEdgeDetect is
 +    port (
 +      CLK       : in  std_logic;
 +      SIGNAL_IN : in  std_logic;
 +      PULSE_OUT : out std_logic);
 +  end component risingEdgeDetect;
 +
 +  component fallingEdgeDetect is
 +    port (
 +      CLK       : in  std_logic;
 +      SIGNAL_IN : in  std_logic;
 +      PULSE_OUT : out std_logic);
 +  end component fallingEdgeDetect;
 +
 +  component ShiftRegisterSISO
 +    generic (
 +      DEPTH : integer range 1 to 32;
 +      WIDTH : integer range 1 to 32);
 +    port (
 +      CLK   : in  std_logic;
 +      D_IN  : in  std_logic_vector(WIDTH-1 downto 0);
 +      D_OUT : out std_logic_vector(WIDTH-1 downto 0));
 +  end component;
 +
 +  component Stretcher
 +    port (
 +      PULSE_IN  : in  std_logic;
 +      PULSE_OUT : out std_logic);
 +  end component;
 +
 +  component WaveLauncher is
 +    port (
 +      HIT_IN  : in  std_logic;
 +      HIT_OUT : out std_logic);
 +  end component WaveLauncher;
  
+   component bit_sync
+     generic (
+       DEPTH : integer);
+     port (
+       RESET : in  std_logic;
+       CLK0  : in  std_logic;
+       CLK1  : in  std_logic;
+       D_IN  : in  std_logic;
+       D_OUT : out std_logic);
+   end component;
+   component edge_to_pulse
+     port (
+       clock     : in  std_logic;
+       en_clk    : in  std_logic;
+       signal_in : in  std_logic;
+       pulse     : out std_logic);
+   end component;
+   component risingEdgeDetect is
+     port (
+       CLK       : in  std_logic;
+       SIGNAL_IN : in  std_logic;
+       PULSE_OUT : out std_logic);
+   end component risingEdgeDetect;
+   component fallingEdgeDetect is
+     port (
+       CLK       : in  std_logic;
+       SIGNAL_IN : in  std_logic;
+       PULSE_OUT : out std_logic);
+   end component fallingEdgeDetect;
+   component ShiftRegisterSISO
+     generic (
+       DEPTH : integer range 1 to 32;
+       WIDTH : integer range 1 to 32);
+     port (
+       CLK   : in  std_logic;
+       D_IN  : in  std_logic_vector(WIDTH-1 downto 0);
+       D_OUT : out std_logic_vector(WIDTH-1 downto 0));
+   end component;
+   component Stretcher
+     port (
+       PULSE_IN  : in  std_logic;
+       PULSE_OUT : out std_logic);
+   end component;
  
+   
  end package tdc_components;