Design Partitioning for Custom Hardware Emulation