Architecture-aware circuit design for process tolerance and resilience