Using bus-based connections to improve field-programmable gate array density for implementing datapath circuits