I am trying to replace an unreliable ULN2003 drive with a Gecko step/dir drive.

The controller has 2 PCB's. A CPU, and ULN2003 driver.
I have 6 signals from the CPU. The 4 lines are motor coil inputs to a standard ULN2003. Presumably the other 2 lines are an enable/disable latch, and a motor ground? Not sure. So basically I need a circuit that converts the 4 line coil input to step & direction signals. I imagine there are existing solutions, or if not perhaps a simple logic circuit will do it?