Automatic Hardware Generation for Reconfigurable Architectures