From a10dacbac19ba6e21aeb204d68e5d2eb0fb45a5b Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Wed, 16 Jan 2019 16:22:33 +0100 Subject: [PATCH] fix inclusion of I2C instead of 1-wire --- special/trb_net_i2cwire.vhd | 2 +- trb_net16_endpoint_hades_full.vhd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/special/trb_net_i2cwire.vhd b/special/trb_net_i2cwire.vhd index 1cd15e2..7bf8da6 100644 --- a/special/trb_net_i2cwire.vhd +++ b/special/trb_net_i2cwire.vhd @@ -40,7 +40,7 @@ architecture trb_net_i2cwire_arch of trb_net_i2cwire is signal timecounter : integer range 0 to MAX_COUNTER; signal rst_tc_x : std_logic; constant IDLE_PERIOD : integer := 1000; -- unit [ns] - constant READOUT_PERIOD : integer := 500000; -- unit [ns] + constant READOUT_PERIOD : integer := 1000000000; -- unit [ns] constant I2C_CYCLE : integer := 5000; -- unit [ns] constant I2C_PERIOD : integer := (((I2C_CYCLE / CLK_PERIOD) - 2)/8); diff --git a/trb_net16_endpoint_hades_full.vhd b/trb_net16_endpoint_hades_full.vhd index 645d714..0105c9f 100644 --- a/trb_net16_endpoint_hades_full.vhd +++ b/trb_net16_endpoint_hades_full.vhd @@ -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; -- 2.43.0