\documentclass{standalone}
\usepackage{ga}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm]
\input{../wt.tikz}
\tikzset{ru/.style={draw, line width=0.5pt, minimum width=1.0cm, minimum height=0.9cm, font=\scriptsize, anchor=south west, inner sep=0pt}}
% two copies of a transport block of 3 RUs
\foreach \i in {1,2,3} {\node[ru] at (\i-1,0) {RU$_\i$}; \node[ru] at (\i+2,0) {RU$_\i$};}
\draw[wtblue, line width=1.4pt] (0,0) rectangle (3,0.9);
\draw[wtgreen, line width=1.4pt] (3,0) rectangle (6,0.9);
\draw[<->, line width=0.5pt] (3,1.15) -- node[above, font=\scriptsize] {transport block} (6,1.15);
\draw[brace] (0,-0.1) -- node[below=5pt, font=\scriptsize, text=wtblue] (r1) {1st transmission} (3,-0.1);
\draw[brace] (3,-0.1) -- node[below=5pt, font=\scriptsize, text=wtgreen] (r2) {2nd transmission} (6,-0.1);
\node[font=\scriptsize] (n) at (3,-1.45) {2 repetitions ($N = 1$)};
\draw[->, line width=0.5pt] (r1.south) -- ([xshift=-3pt]n.north); \draw[->, line width=0.5pt] (r2.south) -- ([xshift=3pt]n.north);
% repetitions + one ACK
\begin{scope}[shift={(0,-3.6)}]
\foreach \i/\c in {0/20,1/45,2/20,3/45} \fill[wtpurple!\c] (\i*0.3,0) rectangle ++(0.3,1.0);
\draw[wtred, line width=1pt] (0,1.15) -- node[above, font=\scriptsize, text=black] {repetitions $= 4$} (1.2,1.15);
\draw[<->, wtred, line width=1pt] (1.25,0.5) -- (5.0,0.5);
\node[draw=wtyellow!70!black, fill=orange!60, minimum width=0.85cm, minimum height=1.0cm, font=\scriptsize] at (5.45,0.5) {ACK};
\end{scope}
% gain plot
\begin{scope}[shift={(7.4,-3.4)}]
\begin{axis}[width=6.6cm, height=5.6cm, xmode=log, xmin=1, xmax=1000, ymin=0, ymax=30, grid=both, grid style={black!12}, minor grid style={black!6},
  xlabel={number of transmissions}, ylabel={processing gain (dB)}, tick label style={font=\scriptsize}, label style={font=\scriptsize},
  legend style={font=\tiny, at={(0.97,0.03)}, anchor=south east}]
\addplot[wtblue, line width=1pt, domain=1:1000, samples=60] {10*log10(x)};
\addplot[orange, line width=1.2pt, densely dashed, domain=1:1000, samples=60] {10*log10(x) - (x>31.6)*3*(log10(x)-1.5)^2};
\legend{ideal gain, real gain}
\end{axis}
\end{scope}
\end{tikzpicture}
\end{document}
