An N-bus datapath compiler for IC design