refactor serdes bit interface