FPGA Design and Implementation of Critical Stages of a Graphics processing Unit