-- eb1 1
mode40_strobe <= '1' when (reg(R_CONTROL)(CTL_DCLK40_MODE) = '0') else
                 not(strobe40_i); -- *** this is because we usually "if (strobe40_i='0') ..."

capture_start80 <= trig80_i when (reg(R_CONTROL)(CTL_CAP_START_SRC) = '1') else
                   ocraw_start_i;
capture_start80_q <= capture_start80 when rising_edge(clk);
capture_start <= capture_start80 or capture_start80_q;