Generating Computation Algorithm For Architecture