I'm thinking of building a simple PWM/DIR BLDC servo amplifier with current limiting to use with EMC2 in closed loop.

This is what i have created so far, and i would like comments!

http://dl.dropbox.com/u/699071/logic1.JPG

http://dl.dropbox.com/u/699071/logic2.JPG

I can detect the correct phase from the hall sensors in simulation.
For example phase 1 output will go to DriveA LowIn and DriveB HighIn.
DIR will switch the outputs of DriveA that go to a gate driver for the correct phase. Think this logic would work? I will fix so the DriveA outputs PWM later.