]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
Adding uid as output to timers record.
authorJan Michel <j.michel@gsi.de>
Tue, 3 Nov 2015 12:04:33 +0000 (13:04 +0100)
committerJan Michel <j.michel@gsi.de>
Tue, 3 Nov 2015 12:04:33 +0000 (13:04 +0100)
trb_net16_endpoint_hades_full.vhd
trb_net16_endpoint_hades_full_handler.vhd
trb_net16_endpoint_hades_full_handler_record.vhd
trb_net_components.vhd
trb_net_std.vhd

index 86bda83807389cd57420f1d544bcf41490e05313..2dc2f83cc1d8a586830347808a26e4fe6f7274a5 100644 (file)
@@ -146,6 +146,7 @@ entity trb_net16_endpoint_hades_full is
     TIME_SINCE_LAST_TRG_OUT   : out std_logic_vector(31 downto 0); --local time, resetted with each trigger
     TIMER_TICKS_OUT           : out std_logic_vector(1 downto 0);  --bit 1 ms-tick, 0 us-tick
     TEMPERATURE_OUT           : out std_logic_vector(11 downto 0);
+    UNIQUE_ID_OUT             : out std_logic_vector(63 downto 0);
     --Debugging & Status information
     STAT_DEBUG_IPU            : out std_logic_vector (31 downto 0);
     STAT_DEBUG_1              : out std_logic_vector (31 downto 0);
@@ -673,6 +674,7 @@ begin
                 ADDR_OUT => ONEWIRE_ADDR,
                 WRITE_OUT=> ONEWIRE_WRITE,
                 TEMP_OUT => temperature,
+                ID_OUT   => UNIQUE_ID_OUT,                
                 STAT     => buf_stat_onewire
                 );
           end generate;
@@ -692,6 +694,7 @@ begin
                 ADDR_OUT => ONEWIRE_ADDR,
                 WRITE_OUT=> ONEWIRE_WRITE,
                 TEMP_OUT => temperature,
+                ID_OUT   => UNIQUE_ID_OUT,                
                 STAT     => buf_stat_onewire
                 );
           end generate;
index 820f1175b0e1bb39f54aba53d4bdaf31058a4c38..0c962a7a24b2a96ed099da16ac72c6cc65e1005a 100644 (file)
@@ -123,6 +123,7 @@ entity trb_net16_endpoint_hades_full_handler is
     TIME_SINCE_LAST_TRG_OUT      : out std_logic_vector (31 downto 0); --local time, resetted with each trigger
     TIME_TICKS_OUT               : out std_logic_vector ( 1 downto 0); --bit 1 ms-tick, 0 us-tick
     TEMPERATURE_OUT              : out std_logic_vector (11 downto 0);
+    UNIQUE_ID_OUT                : out std_logic_vector (63 downto 0);
 
     --Debugging & Status information
     STAT_DEBUG_IPU               : out std_logic_vector (31 downto 0);
@@ -359,6 +360,7 @@ begin
       TIME_SINCE_LAST_TRG_OUT    => time_since_last_trg_i,
       TIMER_TICKS_OUT            => time_ticks_i,
       TEMPERATURE_OUT            => TEMPERATURE_OUT,
+      UNIQUE_ID_OUT              => UNIQUE_ID_OUT,
 
       STAT_DEBUG_IPU             => open,
       STAT_DEBUG_1               => open,
index 18469d32de7336d763b74e3ae576c29d713d7d6f..a1866867b2fc277ca45b4721100481c9868cf657 100644 (file)
@@ -128,7 +128,7 @@ architecture trb_net16_endpoint_hades_full_handler_record_arch of trb_net16_endp
   signal time_since_last_trg_i   : std_logic_vector (31 downto 0);
   signal time_ticks_i            : std_logic_vector ( 1 downto 0);
   signal temperature_i           : std_logic_vector (11 downto 0);
-
+  signal unique_id_i             : std_logic_vector (63 downto 0);
   
   signal buf_fee_data_almost_full_out : std_logic_vector(DATA_INTERFACE_NUMBER-1 downto 0);
   signal stat_handler_i          : std_logic_vector (127 downto 0);
@@ -270,6 +270,7 @@ begin
       TIME_SINCE_LAST_TRG_OUT    => time_since_last_trg_i,
       TIMER_TICKS_OUT            => time_ticks_i,
       TEMPERATURE_OUT            => temperature_i,
+      UNIQUE_ID_OUT              => unique_id_i,
 
       STAT_DEBUG_IPU             => open,
       STAT_DEBUG_1               => open,
@@ -289,7 +290,7 @@ TIMERS_OUT.last_trigger <= time_since_last_trg_i;
 TIMERS_OUT.tick_ms      <= time_ticks_i(1);
 TIMERS_OUT.tick_us      <= time_ticks_i(0);
 TIMERS_OUT.temperature  <= temperature_i;
-      
+TIMERS_OUT.uid          <= unique_id_i;      
 ---------------------------------------------------------------------------
 -- RegIO Bus Handler
 ---------------------------------------------------------------------------
index 09df8708f2418d40c8bf7cb226678bfaa32fd4e0..8ae59dee280b50866a8ae399aa904a4d4cf6bc9b 100644 (file)
@@ -730,6 +730,7 @@ end component;
       REGIO_VAR_ENDPOINT_ID     : in    std_logic_vector(15 downto 0)                            := (others => '0');\r
       MY_ADDRESS_OUT            : out std_logic_vector(15 downto 0);\r
       TEMPERATURE_OUT           : out std_logic_vector(11 downto 0);\r
+      UNIQUE_ID_OUT             : out std_logic_vector (63 downto 0);\r
       GLOBAL_TIME_OUT         : out std_logic_vector(31 downto 0);  --global time, microseconds\r
       LOCAL_TIME_OUT          : out std_logic_vector(7 downto 0);  --local time running with chip frequency\r
       TIME_SINCE_LAST_TRG_OUT : out std_logic_vector(31 downto 0);  --local time, resetted with each trigger\r
@@ -862,8 +863,8 @@ end component;
       TIME_LOCAL_OUT          : out std_logic_vector (7 downto 0);  --local time running with chip frequency\r
       TIME_SINCE_LAST_TRG_OUT : out std_logic_vector (31 downto 0);  --local time, resetted with each trigger\r
       TIME_TICKS_OUT          : out std_logic_vector (1 downto 0);  --bit 1 ms-tick, 0 us-tick\r
-      TEMPERATURE_OUT         : out std_logic_vector(11 downto 0);\r
-\r
+      TEMPERATURE_OUT         : out std_logic_vector (11 downto 0);\r
+      UNIQUE_ID_OUT           : out std_logic_vector (63 downto 0);\r
       --Debugging & Status information\r
       STAT_DEBUG_IPU              : out std_logic_vector (31 downto 0);\r
       STAT_DEBUG_1                : out std_logic_vector (31 downto 0);\r
index b8209861b0d8fc929c406f953022739444ae091f..f38f8d8e067aa88ee867f031dfaa7ac51a61fbf9 100644 (file)
@@ -205,6 +205,7 @@ package trb_net_std is
     tick_us             : std_logic;
     network_address     : std_logic_vector (15 downto 0);
     temperature         : std_logic_vector (11 downto 0);
+    uid                 : std_logic_vector (63 downto 0);
   end record;
     
   type MED2INT is record