From: Luke Kenneth Casson Leighton Date: Mon, 4 Jun 2018 14:16:50 +0000 (+0100) Subject: clarify X-Git-Tag: convert-csv-opcode-to-binary~5284 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe68d351901088aa274a0052369f9bdeb67fec91;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 fa4fe0cda..a2c45ce6f 100644 --- a/simple_v_extension/simple_v_chennai_2018.tex +++ b/simple_v_extension/simple_v_chennai_2018.tex @@ -475,16 +475,16 @@ for (i = 0; i < 16; i++) // 16 CSRs? \begin{semiverbatim} function op\_add(rd, rs1, rs2, predr) # add not VADD!  int i, id=0, irs1=0, irs2=0; -  rd = int_vec[rd ].isvector ? int_vec[rd ].regidx : rd; -  rs1 = int_vec[rs1].isvector ? int_vec[rs1].regidx : rs1; -  rs2 = int_vec[rs2].isvector ? int_vec[rs2].regidx : rs2; -  predval = get\_pred_val(FALSE, rd); +  rd = int\_vec[rd ].isvector ? int\_vec[rd ].regidx : rd; +  rs1 = int\_vec[rs1].isvector ? int\_vec[rs1].regidx : rs1; +  rs2 = int\_vec[rs2].isvector ? int\_vec[rs2].regidx : rs2; +  predval = get\_pred\_val(FALSE, rd);  for (i = 0; i < VL; i++) if (predval \& 1<