\begin{tikzpicture}[scale=2.54]
% dpic version 2020.03.01 option -g for TikZ and PGF 1.01
\ifx\dpiclw\undefined\newdimen\dpiclw\fi
\global\def\dpicdraw{\draw[line width=\dpiclw]}
\global\def\dpicstop{;}
\dpiclw=0.8bp
\dpiclw=0.8bp
\dpicdraw (0.145,-0.25) rectangle (0.895,0.25)\dpicstop
\dpicdraw (0.145,0.125)
 --(0.02,0.125)\dpicstop
\dpicdraw[fill=black](0.02,0.125) circle (0.007874in)\dpicstop
\dpicdraw (0.145,-0.125)
 --(0.02,-0.125)\dpicstop
\dpicdraw[fill=black](0.02,-0.125) circle (0.007874in)\dpicstop
\dpicdraw (0.895,0.125)
 --(1.02,0.125)\dpicstop
\dpicdraw[fill=black](1.02,0.125) circle (0.007874in)\dpicstop
\dpicdraw (0.895,-0.125)
 --(1.02,-0.125)\dpicstop
\dpicdraw[fill=black](1.02,-0.125) circle (0.007874in)\dpicstop
\draw (0.02,0.125) node[above left=1bp]{\sl W1a};
\draw (0.02,-0.125) node[below left=1bp]{\sl W1b};
\draw (1.02,0.125) node[above right=1bp]{\sl E1a};
\draw (1.02,-0.125) node[below right=1bp]{\sl E1b};
\dpicdraw[fill=white!90!black](1.895,-0.5) rectangle (3.895,0.5)\dpicstop
\draw (2.895,0) node{n-port};
\dpicdraw (1.895,0.25)
 --(1.77,0.25)\dpicstop
\dpicdraw[fill=black](1.77,0.25) circle (0.007874in)\dpicstop
\dpicdraw (1.895,-0.25)
 --(1.77,-0.25)\dpicstop
\dpicdraw[fill=black](1.77,-0.25) circle (0.007874in)\dpicstop
\dpicdraw (2.180714,0.5)
 --(2.180714,0.625)\dpicstop
\dpicdraw[fill=black](2.180714,0.625) circle (0.007874in)\dpicstop
\dpicdraw (2.752143,0.5)
 --(2.752143,0.625)\dpicstop
\dpicdraw[fill=black](2.752143,0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.037857,0.5)
 --(3.037857,0.625)\dpicstop
\dpicdraw[fill=black](3.037857,0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.609286,0.5)
 --(3.609286,0.625)\dpicstop
\dpicdraw[fill=black](3.609286,0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.895,0.4)
 --(4.02,0.4)\dpicstop
\dpicdraw[fill=black](4.02,0.4) circle (0.007874in)\dpicstop
\dpicdraw (3.895,0.2)
 --(4.02,0.2)\dpicstop
\dpicdraw[fill=black](4.02,0.2) circle (0.007874in)\dpicstop
\dpicdraw (3.895,0.1)
 --(4.02,0.1)\dpicstop
\dpicdraw[fill=black](4.02,0.1) circle (0.007874in)\dpicstop
\dpicdraw (3.895,-0.1)
 --(4.02,-0.1)\dpicstop
\dpicdraw[fill=black](4.02,-0.1) circle (0.007874in)\dpicstop
\dpicdraw (3.895,-0.2)
 --(4.02,-0.2)\dpicstop
\dpicdraw[fill=black](4.02,-0.2) circle (0.007874in)\dpicstop
\dpicdraw (3.895,-0.4)
 --(4.02,-0.4)\dpicstop
\dpicdraw[fill=black](4.02,-0.4) circle (0.007874in)\dpicstop
\dpicdraw (2.048846,-0.5)
 --(2.048846,-0.625)\dpicstop
\dpicdraw[fill=black](2.048846,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (2.356538,-0.5)
 --(2.356538,-0.625)\dpicstop
\dpicdraw[fill=black](2.356538,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (2.510385,-0.5)
 --(2.510385,-0.625)\dpicstop
\dpicdraw[fill=black](2.510385,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (2.818077,-0.5)
 --(2.818077,-0.625)\dpicstop
\dpicdraw[fill=black](2.818077,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (2.971923,-0.5)
 --(2.971923,-0.625)\dpicstop
\dpicdraw[fill=black](2.971923,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.279615,-0.5)
 --(3.279615,-0.625)\dpicstop
\dpicdraw[fill=black](3.279615,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.433462,-0.5)
 --(3.433462,-0.625)\dpicstop
\dpicdraw[fill=black](3.433462,-0.625) circle (0.007874in)\dpicstop
\dpicdraw (3.741154,-0.5)
 --(3.741154,-0.625)\dpicstop
\dpicdraw[fill=black](3.741154,-0.625) circle (0.007874in)\dpicstop
\draw (1.77,0.25) node[left=1bp]{\sl W1a};
\draw (1.77,-0.25) node[left=1bp]{\sl W1b};
\draw (4.02,0.4) node[right=1bp]{\sl E1a};
\draw (4.02,-0.4) node[right=1bp]{\sl E3b};
\draw (2.180714,0.625) node[above=1bp]{\sl N1a};
\draw (2.752143,0.625) node[above=1bp]{\sl N1b$\;\;$};
\draw (3.037857,0.625) node[above=1bp]{\sl $\;\;$N2a};
\draw (3.609286,0.625) node[above=1bp]{\sl N2b};
\draw (2.048846,-0.625) node[below=1bp]{\sl S1a};
\draw (3.741154,-0.625) node[below=1bp]{\sl S4b};
\draw (2.895,-0.725) node{$\cdots$};
\draw (4.17,0.05) node{$\vdots$};
\dpicdraw (4.895,-0.166667) rectangle (5.395,0.166667)\dpicstop
\dpicdraw (4.895,0)
 --(4.77,0)\dpicstop
\dpicdraw[fill=black](4.77,0) circle (0.007874in)\dpicstop
\dpicdraw (5.395,0)
 --(5.52,0)\dpicstop
\dpicdraw[fill=black](5.52,0) circle (0.007874in)\dpicstop
\dpicdraw (5.145,-0.166667)
 --(5.145,-0.291667)\dpicstop
\dpicdraw[fill=black](5.145,-0.291667) circle (0.007874in)\dpicstop
\draw (4.77,0) node[left=1bp]{\sl W1};
\draw (5.52,0) node[right=1bp]{\sl E1};
\draw (5.145,-0.291667) node[below=1bp]{\sl S1};
\draw (0.52,-0.55) node{\tt nport};
\draw (2.895,-0.895) node{\tt nport(wid 2.0 ht 1 fill\_(0.9) "n-port",1,2,3,4)};
\draw (5.145,-0.611667) node{\tt nterm};
\end{tikzpicture}
\vspace*{-0.5\baselineskip}
