Optical micro-ring resonators (MRRs) element can be used in many applications. This paper we propose a photonics circuit design based on optical tree architecture (OTA) for all-optical elements by using the modified add-drop filter for an all-optical arithmetic logic unit (ALU) aimed for computing applications system. All-optical 2x4 decoder, all-optical comparator, all-optical half adder, all-optical half subtractor, all-optical full adder, all-optical full subtractor and proposed new design all-optical 4x16 decoder were proposed. We have studied the nonlinear effect in the modified add-drop filter system, which is control by injected the nonlinear pulses on top as an input for generated all-optical logic and arithmetic operations simultaneously at the through and drop port of modified add-drop filter. The optical input and control field of the modified add-drop filter circuit can be formed by nonlinear dark and bright pluses. The obtained simulation results have shown that the nonlinear pulse generated by the nonlinear modified add-drop filter can control the output consistency, which is important when the interconnect between each circuit output parts are required. The advantages of the modified add-drop filter are low power, ultra-fast switching, tuneable and high security which is compact size and footprint. It is suitable for the next generation of all-optical small-scale device and all-optical computing system requirements.