avalon init write_sem before use
cgsem - increase information on failure