    tc <= '1' when count = TERMCOUNT else
    '0';