aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/figures/tikz/overview.tex
blob: 68dee1fc6b93239bfbba9fd59f2399a59b2d6676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
% vim: set ts=2 sw=2 noet spell:

\begin{tikzpicture}[
		% show background rectangle,
		box/.style = {
			font = \small\sffamily,
			draw, thick, fill = white,
			minimum height = 14mm,
			minimum width = 28,
			text width = 28mm, align = center,
		},
		circ/.style = {
			draw, thick, circle, fill = white,
			minimum size = 10mm, inner sep = 0pt,
			font = \Huge,
		},
	]

	% --------------------------------------------------------	

	\coordinate (TX) at (0, 0);
	\matrix[
		nodes = {box}, column sep = 14mm, row sep = 10mm,
		inner sep = 3mm, fill = lightgray!20,
		anchor = north west,
	] at (TX) {
		\node (SRC) {\textbf{Source}\\ Digital data}; &
		\node (FRA) {\textbf{Framer}\\ Data Packets}; &
		\node (MOD) {\textbf{Modulator}\\ QPSK or 16-QAM}; \\
	};

	\draw[very thick, -latex]
		(SRC) edge node[midway, above] {\(m\)} (FRA)
		(FRA) edge (MOD)
	;

	\node[
		gray,
		anchor = south west,
		font = \ttfamily,
	] at (TX) {Transmitter};

	% --------------------------------------------------------

	\coordinate (CHN) at ($(MOD.south east)+(3mm, -11mm)$);
	\matrix[
		row sep = 5mm, inner sep = 3mm, fill = lightgray!20,
		anchor = north east,
	] at (CHN) {
		\node[circ] (PLUS) {\(+\)}; %
		\node[left = 14mm of PLUS] (AWGN) {AWGN}; &
		\node[minimum width = 12mm] {}; \\
		\node[circ] (TIMES) {\(\times\)}; %
		\node[left = 14mm of TIMES] (FADING) {Fading}; \\
	};

	\draw[very thick, -latex]
		(AWGN) edge node[midway, above] {\(n(t)\)} (PLUS)
		(FADING) edge node[midway, above] {\(f(t)\)} (TIMES)
		(MOD) edge node[midway, right] {\(s(t)\)} (PLUS)
		(PLUS) edge (TIMES)
	;

	\node[
		gray,
		anchor = south west,
		font = \ttfamily,
	] at ($(CHN) - (62mm, 0)$) {Channel Model};

	% --------------------------------------------------------

	\coordinate (RX) at (0, -68mm);
	\matrix[
		nodes = {box},
		column sep = 14mm, row sep = 5mm,
		inner sep = 3mm, fill = lightgray!20,
		anchor = north west,
	] at (RX) {
		\node (PFC) {\textbf{Fine phase and freq. correction}}; &
		\node (EQL) {\textbf{Equalizer} \\ Amplitude}; &
		\node (CLK) {\textbf{Clock Recovery} \\ Symbol peak}; \\
		\node (DMO) {\textbf{Demodulator}}; &
		\node (DFR) {\textbf{Deframer} \\ Error detection}; &
		\node (SIN) {\textbf{Sink} \\ User interface}; \\
	};

	\draw[very thick, -latex]
		(TIMES) edge node[midway, right] {\(r(t)\)} (CLK)
		(CLK) edge (EQL)
		(EQL) edge (PFC)
		(PFC) edge (DMO)
		(DMO) edge (DFR)
		(DFR) edge (SIN)
	;

	\node[
		gray,
		anchor = south west,
		font = \ttfamily,
	] at (RX) {Receiver};
\end{tikzpicture}