avalon for timeout allow d='calculate it' and fix uninitialised

avalon for timeout allow d='calculate it' and fix uninitialised