Forum Discussion
RVava
New Contributor
6 years agoI had coded RSA algorithm but i have some error(near end and end module and error in the if statement),i will attach my code, can you please check the code
module R1(c,m,p,q,i1,i2); input [4:0]p; input [5:0]q;input [7:0]m; input[5:0] i1,i2; output [19:0]c; //reg [15:0]on; wire [15:0]e;wire[15:0]d;wire [9:0]s; integer k,l; wire [9:0] j1,j2,j3,j4,...
RichardT_altera
Super Contributor
6 years agoNot familiar with the RSA algorithm. Though, I saw there is a lot of 'if' statement stack together near the end of code, shouldn't we use 'else if' statement if there is more than one statement within an IF block. Correct me if I am wrong.