Why +1 with integer value required here ? constant c_tx_div_width : integer := integer(log2(real(c_tx_div))) + 1;