From: Luke Kenneth Casson Leighton Date: Mon, 4 Jun 2018 02:12:18 +0000 (+0100) Subject: clarify X-Git-Tag: convert-csv-opcode-to-binary~5296 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2d335409ff8b45b18059ae08f64d8f7a275fcc4;p=libreriscv.git clarify --- 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}