Optical networks are the key elements in demanding all-optical logic devices. This paper gives the detailed description of AND, OR, NOT & NAND gates designs simulations based on nonlinear element Semiconductor Optical Amplifier Mach Zehnder Interferometer structure. The FWM, XGM, XPM nonlinearity forms are used to achieve the ultra-high-speed (40Gbps) and Boolean expression of logic gates. Refractive index of SOA changes, due to the nonlinear character of the semiconductor optical amplifier which produces a high gain for ultra-high speed (40Gbps) of all logic gates. These proposed logic gates operate at 10Gbs (input data rate). The entire work is performed on the Opti system software for component analysis and Boolean expression testing. Realization of Boolean expression with high Q factor and ultrahigh speed operation and reconfiguration of logic gates is performed .