Efficient circuit specialization for dynamic reconfiguration of fpgas door