Smart grid architecture is one of the difficult constructions in electrical power systems. The main feature is divided into three layers; the first layer is the power system level and operation, the second layer is the sensor and the communication devices, which collect the data, and the third layer is the microprocessor or the machine, which controls the whole operation. This hierarchy is working from the third layer towards first layer and vice versa. This paper introduces an eco unit commitment study, that scheduling both conventional power plants (three IEEE) thermal plants) as a dispatchable distributed generators, with renewable energy resources (wind, solar) as a stochastic distributed generating units; and plug-in electric vehicles (PEVs), which can be contributed either loads or generators relied on the charging timetable in a trustworthy unit commitment. The target of unit commitment study is to minimize the combined eco costs by integrating more augmented clean and renewable energy resource with the help of field programming gate array (FPGA) layer installation. A meta-heuristic algorithm, such as the Gravitational Search Algorithm (GSA), proves its accuracy and efficiency in reducing the incorporated cost function implicating costs of CO2 emission by optimally integrating and scheduling stochastic resources and charging and discharging processes of PEVs with conventional resources power plants. The results obtained from GSA are compared with a conventional numerical technique, such as the Dynamic Programming (DP) algorithm. The feasibility to implement GSA on an appropriate hardware platform, such as FPGA, is also discussed.