From d2d335409ff8b45b18059ae08f64d8f7a275fcc4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 4 Jun 2018 03:12:18 +0100 Subject: [PATCH] clarify --- simple_v_extension/simple_v_chennai_2018.tex | 22 +++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/simple_v_extension/simple_v_chennai_2018.tex b/simple_v_extension/simple_v_chennai_2018.tex index 69b05d302..79730673c 100644 --- a/simple_v_extension/simple_v_chennai_2018.tex +++ b/simple_v_extension/simple_v_chennai_2018.tex @@ -381,12 +381,28 @@ for (int i = 0; i < VL; ++i) } -\frame{\frametitle{Predication key-value CSR pseudocode} +\begin{frame}[fragile] +\frametitle{Predication key-value CSR table decoding pseudocode} + +\begin{semiverbatim} +struct pred fp_pred[32]; +struct pred int_pred[32]; + +for (i = 0; i < 16; i++) // 16 CSRs? + tb = int\_pred if CSRpred[i].type == 0 else fp\_pred + idx = CSRpred[i].regidx + tb[idx].zero = CSRpred[i].zero + tb[idx].inv = CSRpred[i].inv + tb[idx].predidx = CSRpred[i].predidx + tb[idx].enabled = true +\end{semiverbatim} \begin{itemize} - \item TODO + \item Entries zero'd before setting + \item Might be a bit complex to set up (TBD) \end{itemize} -} + +\end{frame} \frame{\frametitle{Register key-value CSR store} -- 2.30.2