]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Add plattform setting to CTS - different connectors for AddOn multiplexer
authorJan Michel <j.michel@gsi.de>
Wed, 16 Jan 2019 15:19:47 +0000 (16:19 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 16 Jan 2019 15:19:47 +0000 (16:19 +0100)
cts/source/cts.vhd
cts/source/cts_pkg.vhd
cts/source/cts_trigger.vhd

index 21a52fe8c55d07199434493ac2d8558af157c180..06844c5225c83635bc2aa0244ad0e15f54c1c343 100755 (executable)
@@ -113,7 +113,7 @@ entity CTS is
       ADDON_GROUP_UPPER   : CTS_GROUP_CONFIG_T  := (3,7,11,12,13, others=>'0');
       
 --       PERIPH_TRIGGER_COUNT: integer range 0 to 1 := 1;
-      
+      PLATTFORM : integer range 0 to 1 := 0;
       OUTPUT_MULTIPLEXERS : integer range 0 to 255 := 0;
       
       EXTERNAL_TRIGGER_ID  : std_logic_vector(7 downto 0) := X"00";
@@ -798,7 +798,7 @@ begin
       PERIPH_TRIGGER_COUNT => PERIPH_TRIGGER_COUNT,
       
       OUTPUT_MULTIPLEXERS  => OUTPUT_MULTIPLEXERS,
-      
+      PLATTFORM            => PLATTFORM,
       TRIGGER_ADDON_COUNT  => TRIGGER_ADDON_COUNT,
       EXTERNAL_TRIGGER_ID  => EXTERNAL_TRIGGER_ID
    )
index 39613c9ac107aee77c5f355fc01caec34d1163e9..854c74a181179d0384021ab40f79debdb198fd86 100755 (executable)
@@ -29,7 +29,7 @@ package cts_pkg is
          OUTPUT_MULTIPLEXERS : integer range 0 to 255 := 0;
 
          EXTERNAL_TRIGGER_ID : std_logic_vector(7 downto 0) := X"00";
-         
+         PLATTFORM           : integer range 0 to 1 := 0;
          TIME_REFERENCE_COUNT: positive := 10;          -- Number of clock cycles the time reference needs to stay asserted (100ns)
          FIFO_ADDR_WIDTH     : integer range 1 to 31 := 9   -- 2**(FIFO_ADDR_WIDTH-1) events can be stored in read-out buffer of CTS
       );
@@ -191,7 +191,7 @@ package cts_pkg is
          PERIPH_TRIGGER_COUNT: integer range 0 to 15 := 2;
          
          OUTPUT_MULTIPLEXERS : integer range 0 to 255 := 0;
-         
+         PLATTFORM           : integer range 0 to 1 := 0;
          EXTERNAL_TRIGGER_ID  : std_logic_vector(7 downto 0) := X"00"
       );
 
index 8409e5d64f4acbe477b7d586fcb4a1235bd5d3a0..43b6b13b203fbf10111ad0bc639c171b6b24ec35 100755 (executable)
@@ -21,7 +21,7 @@ entity CTS_TRIGGER is
       PERIPH_TRIGGER_COUNT: integer range 0 to 15 := 1;
       
       OUTPUT_MULTIPLEXERS : integer range 0 to 255 := 0;
-      
+      PLATTFORM           : integer range 0 to 1 := 0;
       EXTERNAL_TRIGGER_ID  : std_logic_vector(7 downto 0) := X"00"
    );
 
@@ -582,7 +582,7 @@ begin
                   REGIO_UNKNOWN_ADDR_OUT <= REGIO_WRITE_ENABLE_IN;
                   REGIO_DATAREADY_OUT <= REGIO_READ_ENABLE_IN;
                   REGIO_DATA_OUT <= CTS_BLOCK_HEADER(
-                     id => 16#15#,
+                     id => 16#15# + PLATTFORM,
                      len => TRIGGER_ADDON_COUNT,
                      itc_base => ITC_BASE_INPUTS + TRIGGER_INPUT_COUNT,
                      itc_num  => TRIGGER_ADDON_COUNT
@@ -804,4 +804,4 @@ begin
          end if;
       end if;
    end process;
-end RTL;
\ No newline at end of file
+end RTL;