\tikzset{block/.default={0.8cm}{0.6cm}}
\tikzset{addb/.append style={scale=0.7}}
\tikzset{node distance=0.6}
\def\cdist{0.7}

\definecolor{T}{rgb}{0.230, 0.299, 0.754}%
\definecolor{S}{rgb}{0.706, 0.016, 0.150}%
\begin{tikzpicture}
   \node[block={4.0cm}{3.0cm}, dashed] (P) {};
   \node[above] at (P.north) {$P$};

   \coordinate[] (inputw)  at ($(P.south west)!0.8!(P.north west) + (-\cdist, 0)$);
   \coordinate[] (inputu)  at ($(P.south west)!0.4!(P.north west) + (-\cdist, 0)$);

   \coordinate[] (outputh) at ($(P.south east)!0.8!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputl) at ($(P.south east)!0.4!(P.north east) + ( \cdist, 0)$);
   \coordinate[] (outputv) at ($(P.south east)!0.1!(P.north east) + ( \cdist, 0)$);

   \node[block, left=2*\cdist of outputl] (WL){$w_L$};
   \node[block, left=2*\cdist of outputh] (WH){$w_H$};
   \node[addb={+}{}{}{}{-}, left=of WH] (sub) {};

   \draw[->] (inputw) node[above right]{$w$} -- (sub.west);
   \draw[->] (inputu) node[above right]{$u$} -- (WL.west);
   \draw[->] (inputu-|sub) node[branch]{} -- (sub.south);
   \draw[->] (sub.east) -- (WH.west);
   \draw[->] ($(inputw)+(2*\cdist, 0)$) node[branch]{} |- (outputv) node[above left]{$v$};
   \draw[->] (WH.east) -- (outputh)node[above left]{$z_H$};
   \draw[->] (WL.east) -- (outputl)node[above left]{$z_L$};
 \end{tikzpicture}
