Skip to content

Commit

Permalink
Zvkg: assertion changes
Browse files Browse the repository at this point in the history
Signed-off-by: Charalampos Mitrodimas <[email protected]>
  • Loading branch information
Charalampos Mitrodimas committed Jun 6, 2023
1 parent e48fc09 commit f0071c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/riscv_insts_zvkg.sail
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let SEW = get_sew();
then H = xor_vec(H, to_bits(128, unsigned(0x87)));
};

assert(0 <= 3 & 3 < 'n);
assert(0 <= 'n & 3 < 'n);
// Bit reverse bytes to get back to GCM standard ordering
let res = brev8(Z);
result[i*4+0] = res[31..0];
Expand Down Expand Up @@ -180,7 +180,7 @@ function clause execute (RISCV_VGMUL_VV(vs2, vd)) = {
then H = H ^ to_bits(128, unsigned(0x87));
};

assert(0 <= 3 & 3 < 'n);
assert(0 <= 'n & 3 < 'n);
let res = brev8(Z);
result[i*4+0] = res[31..0];
result[i*4+1] = res[63..32];
Expand Down

0 comments on commit f0071c1

Please sign in to comment.