\begin{tikzpicture}[node distance=1.75cm]
\tikzstyle{block}=[draw=black,rectangle,fill=none,minimum size=0.2cm, inner sep=2pt, scale=0.75]
\tikzstyle{node}=[red2, circle,fill=red2,minimum size=2pt,inner sep=0pt]

\node[terminal={below}{$x[n]$}] (x) at (0,0) {};
\node[terminal={below}{}, right of=x] (00) {};
\node[terminal={below}{}, right of= 00] (01) {};
\node[terminal={below}{}, right of=01] (02) {};
\node[terminal={below}{}, right of=02] (03) {};
\node[terminal={below}{}, right of=03] (04) {};

\coordinate[below of=00] (10) {};
\node[terminal={below}{}, right of=10] (11) {};
\node[terminal={below}{}, right of=11] (12) {};
\node[terminal={below}{}, right of=12] (13) {};
\node[terminal={below}{}, right of=13] (14) {};
\node[terminal={below}{$\hat{y}[n]$}, right of=14] (y) {};

\foreach \l [count=\j]  in {$h[0]$, $h[1]$, $h[2]$, $h[M-1]$} {
	\pgfmathtruncatemacro{\jn}{(\j-1)}%
	\ifthenelse{\j = 3}
		{\draw[\thickness, dashed] (0\jn) to (0\j)}
		{\draw[zpath={above}] (0\jn) to (0\j)};
	\ifthenelse{\j = 3}
		{\draw[\thickness, dashed] (1\jn) to (1\j)}
		{\draw[amark={}{right}] (1\jn) to (1\j)};
	%\draw[zpath={above}] (0\jn) to (0\j);
	\draw[amark={\l}{right}] (0\jn) to (1\jn);
	
}

\draw[amark={$h[M]$}{right}] (04) to (14);

\draw[amark] (x) to (00);


\if\Quantiz1
	\node[block] (Q0) at ($(14)!0.5!(y)$)  {$Q_B\{\cdot\}$};
	\draw[amark] (14) to (Q0);
	\draw[amark] (Q0) to (y);
\else
	\node[terminal={above}{$y[n]$}] at ($(14)!0.5!(y)$) (y2) {};
	\draw[amark] (14) to (y2);
	\draw[amark] (y2) to (y);
	
	\node[node, below=1cm of y2] (E4) {}; \node[right, red2] at (E4) {$e[n]$};
	\draw[->, >=stealth, red2, \thickness] (E4) to (y2);
\fi

\end{tikzpicture}