aboutsummaryrefslogtreecommitdiff
path: root/slides/2019-it-intro-computer-structure/img/memory.tex
diff options
context:
space:
mode:
Diffstat (limited to 'slides/2019-it-intro-computer-structure/img/memory.tex')
-rw-r--r--slides/2019-it-intro-computer-structure/img/memory.tex50
1 files changed, 50 insertions, 0 deletions
diff --git a/slides/2019-it-intro-computer-structure/img/memory.tex b/slides/2019-it-intro-computer-structure/img/memory.tex
new file mode 100644
index 0000000..b15dc92
--- /dev/null
+++ b/slides/2019-it-intro-computer-structure/img/memory.tex
@@ -0,0 +1,50 @@
+\begin{tikzpicture}[ mem/.style={
+ draw=lightGray,
+ top color=lightGray,
+ bottom color=white,
+ rounded rectangle,
+ shading=axis,
+ minimum width=2cm,
+ },
+ plain/.style={
+ draw=none,
+ },
+ arrow/.style={
+ thick,
+ decoration={
+ markings,
+ mark=at position 1 with {\arrow[semithick]{open triangle 60}}
+ },
+ double distance=1.4pt, shorten >= 5.5pt,
+ preaction = {decorate},
+ postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}
+ },
+]
+ \node at (0, 2) [mem] (hdd) {HDD};
+ \node[below=12pt of hdd, mem] (ssd) {SSD};
+ \node[below=12pt of ssd, mem] (ram) {RAM};
+ \node[below=12pt of ram, mem] (cache) {Cache};
+ \node[below=12pt of cache, mem] (register) {Register};
+
+ \node[left=6pt of hdd, plain] {TB};
+ \node[left=6pt of ssd, plain] {GB};
+ \node[left=6pt of ram, plain] {GB};
+ \node[left=6pt of cache, plain] {MB};
+ \node[left=6pt of register, plain] {bits};
+
+ \node[right=6pt of hdd, plain] {persistent};
+ \node[right=6pt of ssd, plain] {persistent};
+ \node[right=6pt of ram, plain] {volatile};
+ \node[right=6pt of cache, plain] {volatile};
+ \node[right=6pt of register, plain] {volatile};
+
+ \draw[arrow]
+ ($ (current bounding box.south west) + (-0.5,0) $) --
+ (current bounding box.north west);
+ \draw[arrow]
+ ($ (current bounding box.north east) + (0.5,0) $) --
+ (current bounding box.south east);
+
+ \node[above=0pt of current bounding box.north west] {largest};
+ \node[below=0pt of current bounding box.south east] {fastest};
+\end{tikzpicture}