63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
% \usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
|
|
% decorations.pathreplacing,decorations.pathmorphing,shapes,%
|
|
% matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
|
|
|
|
|
\newcommand{\scale}{.68}
|
|
|
|
\begin{tikzpicture}[auto, on grid, scale=\scale,every node/.style={scale=\scale} ]
|
|
|
|
\tikzstyle{CTU}=[draw,text centered, minimum size=1cm,anchor=south west]
|
|
\tikzstyle{CTUNum}=[text centered, minimum size=1cm,anchor=south west]
|
|
\tikzstyle{Tile}=[draw, line width=1.5pt]
|
|
\tikzstyle{ThreadLabel}=[text centered,fill=white,inner sep=0,font=\large]
|
|
|
|
\draw[CTU,very thick] (0,1) rectangle ++(12,-8);
|
|
|
|
|
|
%\newcounter{maincounter}
|
|
|
|
\setcounter{maincounter}{1}
|
|
\foreach \x in {0,1,...,9}
|
|
{
|
|
\node[CTU] at (\x, 0) {\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\draw[->, >=latex, black, line width=2pt] (10,.5) -- ++(1,0);
|
|
|
|
\setcounter{maincounter}{3}
|
|
\foreach \x in {0,1,...,7}
|
|
{
|
|
\node[CTU] at (\x, -1) {\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\draw[->, >=latex, black, line width=2pt] (8,-.5) -- ++(1,0);
|
|
|
|
\setcounter{maincounter}{5}
|
|
\foreach \x in {0,1,...,5}
|
|
{
|
|
\node[CTU] at (\x, -2) {\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\draw[->, >=latex, black, line width=2pt] (6,-1.5) -- ++(1,0);
|
|
|
|
\setcounter{maincounter}{7}
|
|
\foreach \x in {0,...,3}
|
|
{
|
|
\node[CTU] at (\x, -3) {\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\draw[->, >=latex, black, line width=2pt] (4,-2.5) -- ++(1,0);
|
|
|
|
\setcounter{maincounter}{9}
|
|
\foreach \x in {0,...,1}
|
|
{
|
|
\node[CTU] at (\x, -4) {\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\draw[->, >=latex, black, line width=2pt] (2,-3.5) -- ++(1,0);
|
|
|
|
\setcounter{maincounter}{1}
|
|
\foreach \y in {0,...,-4}
|
|
{
|
|
\node[ThreadLabel] at (-2, \y+.4) {Thread \#\themaincounter}; \addtocounter{maincounter}{1}
|
|
}
|
|
\node[ThreadLabel,rotate=90] at (-2, -5+.5) {...};
|
|
|
|
\end{tikzpicture}
|