The following code has to check for an 'e' value such that the gcd(h,e)=1. Where 1
module great(p,q,e,d); input p,q; output e,d; reg e,d; h=((p-1)*(q-1)); always begin for(e=2;e<h;e=e+1) begin g1=gcd(h,e); if(g1==1) return e;
Aucun commentaire:
Enregistrer un commentaire