]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
fix inclusion of I2C instead of 1-wire
authorJan Michel <j.michel@gsi.de>
Wed, 16 Jan 2019 15:22:33 +0000 (16:22 +0100)
committerJan Michel <j.michel@gsi.de>
Wed, 16 Jan 2019 15:22:33 +0000 (16:22 +0100)
special/trb_net_i2cwire.vhd
trb_net16_endpoint_hades_full.vhd

index 1cd15e2fce6fe299c99c9102167d1540c2a426c0..7bf8da6016d8916eed410119f35ce964091656be 100644 (file)
@@ -40,7 +40,7 @@ architecture trb_net_i2cwire_arch of trb_net_i2cwire is
   signal timecounter        : integer range 0 to MAX_COUNTER;\r
   signal rst_tc_x            : std_logic;\r
   constant IDLE_PERIOD      : integer := 1000; -- unit [ns]\r
-  constant READOUT_PERIOD    : integer := 500000; -- unit [ns]\r
+  constant READOUT_PERIOD    : integer := 1000000000; -- unit [ns]\r
   constant I2C_CYCLE        : integer := 5000; -- unit [ns]\r
   constant I2C_PERIOD        : integer := (((I2C_CYCLE / CLK_PERIOD) - 2)/8);\r
 \r
index 645d7143a3833fdadd3c4caac3bab031818fb61d..0105c9fab1d818b7a8b74655762c1c599a8e70df 100644 (file)
@@ -848,7 +848,7 @@ begin
       buf_COMMON_STAT_REG_IN(8)            <= lvl1_tmg_trg_missing_flag;
       buf_COMMON_STAT_REG_IN(13)           <= stat_lvl1_handler(7);
       buf_COMMON_STAT_REG_IN(15)           <= link_error_i;
-      if REGIO_USE_1WIRE_INTERFACE = c_YES then
+      if REGIO_USE_1WIRE_INTERFACE /= c_NO then
         buf_COMMON_STAT_REG_IN(31 downto 20) <= temperature;
       end if;
       buf_COMMON_STAT_REG_IN(47 downto 32)   <= int_trigger_num;