Skip to content

Instantly share code, notes, and snippets.

@MasWag
Created December 1, 2015 08:55
Show Gist options
  • Save MasWag/b548d06757477c29b0aa to your computer and use it in GitHub Desktop.
Save MasWag/b548d06757477c29b0aa to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[auto]
\node [circle,fill=red] (pl) {pipeline};
\node [above right=of pl,rectangle,fill=cyan] (ic) {icache};
\node [below right=of pl,rectangle,fill=cyan] (dc) {dcache};
\node [rectangle,fill=cyan,minimum height=5cm] at (5,0) (ab) {Arbie};
\node at (7,3) (ub) {};
\node at (7,0) (cb) {};
\node at (7,-3) (db) {};
\node at (7,-6) (ddb) {};
\node [right=of db,rectangle,fill=red] (sc) {SdramCtl};
\node at (10,3) (rub) {};
\node at (10,0) (rcb) {};
\node at (10,-3) (rdb) {};
\node [right=of rcb,rectangle,fill=red] (usb) {USB?};
\node [above=of usb,rectangle,fill=red] (uart) {Uart};
\node [below=of usb,rectangle,fill=red] (vga) {VGA?};
\node [left=of vga] (vgab) {};
\node [left=of uart] (uartb) {};
\draw [<->] (pl) -- (ic);
\draw [<->] (pl) -- (dc);
\draw [<->] (ab) -- (ic);
\draw [<->] (ab) -- (dc);
\draw [<->] (ab) -- (cb);
\draw [<->] (cb) -- (rcb);
\draw [<->] (usb) -- (rcb);
\draw [<->] (vga) -- (vgab);
\draw [<->] (uart) -- (uartb);
\draw [-] (ub) -- (ddb);
\draw [-] (rub) -- (rdb);
\draw [<->] (db) -- (sc);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment