Reconfigurable Architecture for Cross Layer Design Optimization and its Applications