Text this: Designing and optimizing digital circuit using FPSGA and DH