Mixed-mode circuit design