update for converting to affine coords

This commit is contained in:
bsdevlin 2019-06-11 22:59:11 +08:00
parent 4cef72abda
commit 597384b1e0
2 changed files with 2 additions and 5 deletions

View File

@ -203,10 +203,7 @@ initial begin
out_if.rdy = 0;
in_if.val = 0;
#(40*CLK_PERIOD);
print_jb_point(to_affine(g_point));
print_jb_point(to_affine(dbl_jb_point(g_point)));
test_0();
#1us $finish();

View File

@ -331,7 +331,7 @@ package bls12_381_pkg;
to_affine.z = 1;
to_affine.x = fe_mul(p.x, fe_inv(z_));
z_ = fe_mul(z_, p.z);
to_affine.y = fe_mul(p.x, fe_inv(z_));
to_affine.y = fe_mul(p.y, fe_inv(z_));
endfunction
function print_jb_point(jb_point_t p);