generate Upper case operator diagram code