genlib/fsm: add NextValue to replace reg/reg_next/ce pattern