file = fopen('code.txt','w');



for i = 2:31

    %fprintf(file_1,'a = [%8.6E %8.6E %8.6E] (km/s)\n',a)

    fprintf(file,'XAND32_%d A[31:0] b%d p%d_[31:0] and32\n',i,i,i);

    fprintf(file,'XFA32_%d 0 s%d_[30:0] p%d_[31:0] s%d_[30:0] out%d fa32mul\n\n',i,i-1,i,i,i);

end



fclose(file);