data/full_repos/permissive/145992955/DES64.v
 line:108: before: ","
1: b'%Error: data/full_repos/permissive/145992955/DES64.v:108: Unsupported: for loop initialization after the first comma\n      for(i=57,k=0;i<=63;i=i+2)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:110: Unsupported: for loop step after the first comma\n          for(j=i;j>=i-56;j=j-8,k=k+1)\n                          ^\n%Error: data/full_repos/permissive/145992955/DES64.v:117: Unsupported: for loop step after the first comma\n          for(j=i;j>=i-56;j=j-8,k=k+1)\n                          ^\n%Error: data/full_repos/permissive/145992955/DES64.v:133: Unsupported: for loop initialization after the first comma\n      for(i=39,c=0;i>=32;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:133: Unsupported: for loop step after the first comma\n      for(i=39,c=0;i>=32;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:136: Unsupported: for loop initialization after the first comma\n      for(i=7,c=0;i>=0;i=i-1,c=c+1)\n             ^\n%Error: data/full_repos/permissive/145992955/DES64.v:136: Unsupported: for loop step after the first comma\n      for(i=7,c=0;i>=0;i=i-1,c=c+1)\n                       ^\n%Error: data/full_repos/permissive/145992955/DES64.v:139: Unsupported: for loop initialization after the first comma\n      for(i=47,c=0;i>=40;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:139: Unsupported: for loop step after the first comma\n      for(i=47,c=0;i>=40;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:142: Unsupported: for loop initialization after the first comma\n      for(i=15,c=0;i>=8;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:142: Unsupported: for loop step after the first comma\n      for(i=15,c=0;i>=8;i=i-1,c=c+1)\n                        ^\n%Error: data/full_repos/permissive/145992955/DES64.v:145: Unsupported: for loop initialization after the first comma\n      for(i=55,c=0;i>=48;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:145: Unsupported: for loop step after the first comma\n      for(i=55,c=0;i>=48;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:148: Unsupported: for loop initialization after the first comma\n      for(i=24,c=0;i>=16;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:148: Unsupported: for loop step after the first comma\n      for(i=24,c=0;i>=16;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:151: Unsupported: for loop initialization after the first comma\n      for(i=63,c=0;i>=56;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:151: Unsupported: for loop step after the first comma\n      for(i=63,c=0;i>=56;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:154: Unsupported: for loop initialization after the first comma\n      for(i=31,c=0;i>=24;i=i-1,c=c+1)\n              ^\n%Error: data/full_repos/permissive/145992955/DES64.v:154: Unsupported: for loop step after the first comma\n      for(i=31,c=0;i>=24;i=i-1,c=c+1)\n                         ^\n%Error: data/full_repos/permissive/145992955/DES64.v:176: syntax error, unexpected ++, expecting \')\'\n      for(i=1;i<=7;i=i++)\n                      ^~\n%Error: data/full_repos/permissive/145992955/DES64.v:182: syntax error, unexpected \'[\', expecting IDENTIFIER\n          out[5+i*6]=rightBits[4+i*4];\n             ^\n%Error: data/full_repos/permissive/145992955/DES64.v:184: syntax error, unexpected \'[\', expecting IDENTIFIER\n      out[47]=rightBits[0];\n         ^\n%Warning-STMTDLY: data/full_repos/permissive/145992955/DES64.v:257: Unsupported: Ignoring delay on this delayed statement.\n      #1 $display("%b",{C_out,D_out});\n      ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/145992955/DES64.v:293: Unsupported: Ignoring delay on this delayed statement.\n      #1 $display("%b",keyOut);\n      ^\n%Error: Exiting due to 22 error(s), 2 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module des(finalCipher,plain,key);
  output [63:0]finalCipher;
  input [63:0]plain;
  input[63:0]key;
  wire [63:0]initialPlain;
  wire [63:0]cipher[1:17];
  wire [55:0]initialKey;
  wire [55:0]nextRoundKey[1:16];
  wire [47:0]keyOut[1:16];
  
  initialPermutation iP(initialPlain,plain);
  initialKeyPermutation iKP(initialKey,key);
  
  keyGenerator kG1(nextRoundKey[1],keyOut[1],initialKey,1);
  feistelRound f1(finalCipher,initialPlain,keyOut[1]);
  
  keyGenerator kG2(nextRoundKey[2],keyOut[2],nextRoundKey[1],2);
  feistelRound f2(cipher[2],cipher[1],keyOut[2]);
  
  keyGenerator kG3(nextRoundKey[3],keyOut[3],nextRoundKey[2],3);
  feistelRound f3(cipher[3],cipher[2],keyOut[3]);
  
  keyGenerator kG4(nextRoundKey[4],keyOut[4],nextRoundKey[3],4);
  feistelRound f4(cipher[4],cipher[3],keyOut[4]);
  
  keyGenerator kG5(nextRoundKey[5],keyOut[5],nextRoundKey[4],5);
  feistelRound f5(cipher[5],cipher[4],keyOut[5]);
  
  keyGenerator kG6(nextRoundKey[6],keyOut[6],nextRoundKey[5],6);
  feistelRound f6(cipher[6],cipher[5],keyOut[6]);
  
  keyGenerator kG7(nextRoundKey[7],keyOut[7],nextRoundKey[6],7);
  feistelRound f7(cipher[7],cipher[6],keyOut[7]);
  
  keyGenerator kG8(nextRoundKey[8],keyOut[8],nextRoundKey[7],8);
  feistelRound f8(cipher[8],cipher[7],keyOut[8]);
  
  keyGenerator kG9(nextRoundKey[9],keyOut[9],nextRoundKey[8],9);
  feistelRound f9(cipher[9],cipher[8],keyOut[9]);
  
  keyGenerator kG10(nextRoundKey[10],keyOut[10],nextRoundKey[9],10);
  feistelRound f10(cipher[10],cipher[9],keyOut[10]);
  
  keyGenerator kG11(nextRoundKey[11],keyOut[11],nextRoundKey[10],11);
  feistelRound f11(cipher[11],cipher[10],keyOut[11]);
  
  keyGenerator kG12(nextRoundKey[12],keyOut[12],nextRoundKey[11],12);
  feistelRound f12(cipher[12],cipher[11],keyOut[12]);
  
  keyGenerator kG13(nextRoundKey[13],keyOut[13],nextRoundKey[12],13);
  feistelRound f13(cipher[13],cipher[12],keyOut[13]);
  
  keyGenerator kG14(nextRoundKey[14],keyOut[14],nextRoundKey[13],14);
  feistelRound f14(cipher[14],cipher[13],keyOut[14]);
  
  keyGenerator kG15(nextRoundKey[15],keyOut[15],nextRoundKey[14],15);
  feistelRound f15(cipher[15],cipher[14],keyOut[15]);
  
  keyGenerator kG16(nextRoundKey[16],keyOut[16],nextRoundKey[15],16);
  feistelRound f16(cipher[16],cipher[15],keyOut[16]);
  
  assign cipher[17]={cipher[16][31:0],cipher[16][63:32]};
  finalPermutation fP(finalCipher,cipher[17]);
  
  
endmodule
module des(finalCipher,plain,key);

  output [63:0]finalCipher;
  input [63:0]plain;
  input[63:0]key;
  wire [63:0]initialPlain;
  wire [63:0]cipher[1:17];
  wire [55:0]initialKey;
  wire [55:0]nextRoundKey[1:16];
  wire [47:0]keyOut[1:16];
  
  initialPermutation iP(initialPlain,plain);
  initialKeyPermutation iKP(initialKey,key);
  
  keyGenerator kG1(nextRoundKey[1],keyOut[1],initialKey,1);
  feistelRound f1(finalCipher,initialPlain,keyOut[1]);
  
  keyGenerator kG2(nextRoundKey[2],keyOut[2],nextRoundKey[1],2);
  feistelRound f2(cipher[2],cipher[1],keyOut[2]);
  
  keyGenerator kG3(nextRoundKey[3],keyOut[3],nextRoundKey[2],3);
  feistelRound f3(cipher[3],cipher[2],keyOut[3]);
  
  keyGenerator kG4(nextRoundKey[4],keyOut[4],nextRoundKey[3],4);
  feistelRound f4(cipher[4],cipher[3],keyOut[4]);
  
  keyGenerator kG5(nextRoundKey[5],keyOut[5],nextRoundKey[4],5);
  feistelRound f5(cipher[5],cipher[4],keyOut[5]);
  
  keyGenerator kG6(nextRoundKey[6],keyOut[6],nextRoundKey[5],6);
  feistelRound f6(cipher[6],cipher[5],keyOut[6]);
  
  keyGenerator kG7(nextRoundKey[7],keyOut[7],nextRoundKey[6],7);
  feistelRound f7(cipher[7],cipher[6],keyOut[7]);
  
  keyGenerator kG8(nextRoundKey[8],keyOut[8],nextRoundKey[7],8);
  feistelRound f8(cipher[8],cipher[7],keyOut[8]);
  
  keyGenerator kG9(nextRoundKey[9],keyOut[9],nextRoundKey[8],9);
  feistelRound f9(cipher[9],cipher[8],keyOut[9]);
  
  keyGenerator kG10(nextRoundKey[10],keyOut[10],nextRoundKey[9],10);
  feistelRound f10(cipher[10],cipher[9],keyOut[10]);
  
  keyGenerator kG11(nextRoundKey[11],keyOut[11],nextRoundKey[10],11);
  feistelRound f11(cipher[11],cipher[10],keyOut[11]);
  
  keyGenerator kG12(nextRoundKey[12],keyOut[12],nextRoundKey[11],12);
  feistelRound f12(cipher[12],cipher[11],keyOut[12]);
  
  keyGenerator kG13(nextRoundKey[13],keyOut[13],nextRoundKey[12],13);
  feistelRound f13(cipher[13],cipher[12],keyOut[13]);
  
  keyGenerator kG14(nextRoundKey[14],keyOut[14],nextRoundKey[13],14);
  feistelRound f14(cipher[14],cipher[13],keyOut[14]);
  
  keyGenerator kG15(nextRoundKey[15],keyOut[15],nextRoundKey[14],15);
  feistelRound f15(cipher[15],cipher[14],keyOut[15]);
  
  keyGenerator kG16(nextRoundKey[16],keyOut[16],nextRoundKey[15],16);
  feistelRound f16(cipher[16],cipher[15],keyOut[16]);
  
  assign cipher[17]={cipher[16][31:0],cipher[16][63:32]};
  finalPermutation fP(finalCipher,cipher[17]);
  
  
endmodule