data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v
1: b"%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:85: Duplicate declaration of signal: 'A24'\nlocalparam          A24   = 31; \n                    ^~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:28: ... Location of original declaration\nlocalparam          A24    = 256'd121665;\n                    ^~~\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:89: Duplicate declaration of signal: 'X_2'\nlocalparam          X_2   = 20;\n                    ^~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:67: ... Location of original declaration\nlocalparam          X_2   = 20;\n                    ^~~\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:90: Duplicate declaration of signal: 'Z_2'\nlocalparam          Z_2   = 21;\n                    ^~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:68: ... Location of original declaration\nlocalparam          Z_2   = 21;\n                    ^~~\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:91: Duplicate declaration of signal: 'X_3'\nlocalparam          X_3   = 22;\n                    ^~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:69: ... Location of original declaration\nlocalparam          X_3   = 22;\n                    ^~~\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:92: Duplicate declaration of signal: 'Z_3'\nlocalparam          Z_3   = 23;\n                    ^~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:70: ... Location of original declaration\nlocalparam          Z_3   = 23;\n                    ^~~\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:93: Duplicate declaration of signal: 'E'\nlocalparam          E     = 24;\n                    ^\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:82: ... Location of original declaration\nlocalparam          E     = 28;\n                    ^\n%Error: data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:111: Duplicate declaration of signal: 'INIT'\nlocalparam          INIT    = 2'b01; \n                    ^~~~\n        data/full_repos/permissive/530013823/LuanVan-20210617T090538Z-001/LuanVan/rtl/montscarmult/auc_montinit.v:26: ... Location of original declaration\nlocalparam          INIT   = 0;\n                    ^~~~\n%Error: Exiting due to 7 error(s)\n"
module auc_montinit
    (

     );



parameter           WID   = 256;
parameter           CURWID = 255;
parameter           AWID  = 5;
parameter           OPWID = 4;

localparam          INIT   = 0;
localparam          X25519 = 9;
localparam          A24    = 256'd121665;
localparam          EXP_K  = 256'd19;
localparam          EXP_2K = 256'd361;



localparam          X_G     = 0;
localparam          Y_G     = 1;
localparam          X_3G    = 2;
localparam          Y_3G    = 3;
localparam          Z_3G    = 3;
localparam          X_5G    = 5;
localparam          Y_5G    = 6;
localparam          Z_5G    = 7;
localparam          X_7G    = 8;
localparam          Y_7G    = 9;
localparam          Z_7G    = 10;

localparam          K_NUM   = 11;
localparam          K_INV   = 12;
localparam          R_NUM   = 13;
localparam          S_NUM   = 14;
localparam          X_KG    = 15;
localparam          HASH    = 16;
localparam          PKEY    = 17;
localparam          ZRRAM   = 18;
localparam          ONERAM  = 19;

localparam          TEMP0   = 20;
localparam          TEMP1   = 21;
localparam          TEMP2   = 22;
localparam          TEMP3   = 23;
localparam          TEMP4   = 24;
localparam          TEMP5   = 25;
localparam          TEMP6   = 26;   
localparam          TEMP7   = 27;
localparam          TEMP8   = 28;


localparam          X_2   = 20;
localparam          Z_2   = 21;
localparam          X_3   = 22;
localparam          Z_3   = 23;
localparam          A     = 24;
localparam          DA    = 24;
localparam          B     = 25;
localparam          CB    = 25;
localparam          AA    = 26;
localparam          C     = 26;
localparam          DACBS = 26;
localparam          BB    = 27;
localparam          Z2TEMP= 27;
localparam          D     = 27;
localparam          DACB  = 27;
localparam          E     = 28;
localparam          DACB2 = 28;
localparam          U255  = 30;
localparam          A24   = 31;



localparam          X_2   = 20;
localparam          Z_2   = 21;
localparam          X_3   = 22;
localparam          Z_3   = 23;
localparam          E     = 24;
localparam          TY    = 25;
localparam          POWZ  = 26;


localparam          S_RP    = 29;
localparam          S_RPH   = 30;
localparam          BLNK    = 31;




localparam          Z2VL   = 0;
localparam          X3VL   = X25519;
localparam          Z3VL   = 1;


localparam          IDLE    = 2'b00;
localparam          INIT    = 2'b01;
localparam          COMP    = 2'b10;
localparam          FINAL   = 2'b11;


localparam          ISWID    = 3;
localparam          I_IDLE   = 3'b000;
localparam          I_INITX2 = 3'b001;
localparam          I_INITZ2 = 3'b010;
localparam          I_INITX3 = 3'b011;
localparam          I_INITZ3 = 3'b100;
localparam          I_INITA24= 3'b101;
localparam          I_INITU  = 3'b110;


localparam          CSWID    = 6;
localparam          C_IDLE     = 6'b000000;
localparam          C_PREKT1   = 6'b000001;
localparam          C_PREKT2   = 6'b000010;
localparam          C_SWAPX2   = 6'b000011;
localparam          C_SWAPX3   = 6'b000100;
localparam          C_SWAPZ2   = 6'b000101;
localparam          C_SWAPZ3   = 6'b000110;
localparam          C_SWAPHZ2  = 6'b000111;
localparam          C_GETA1    = 6'b001000;
localparam          C_GETA2    = 6'b001001;
localparam          C_GETAA    = 6'b001010;
localparam          C_GETB1    = 6'b001011;
localparam          C_GETB2    = 6'b001100;
localparam          C_GETBB    = 6'b001101;
localparam          C_GETBB2   = 6'b001110;
localparam          C_GETE1    = 6'b001111;
localparam          C_GETE2    = 6'b010000;
localparam          C_GETX21   = 6'b010001;
localparam          C_GETX22   = 6'b010010;
localparam          C_GETZ21   = 6'b010011;
localparam          C_GETZ22   = 6'b010100;
localparam          C_GETZ23   = 6'b010001;
localparam          C_GETZ24   = 6'b010010;
localparam          C_GETZ25   = 6'b010011;
localparam          C_GETZ26   = 6'b010100;
localparam          C_GETC1    = 6'b010101;
localparam          C_GETC2    = 6'b010110;
localparam          C_GETD1    = 6'b010111;
localparam          C_GETD2    = 6'b011000;
localparam          C_GETCB1   = 6'b011001;
localparam          C_GETCB2   = 6'b011010;
localparam          C_GETDA1   = 6'b011011;
localparam          C_GETDA2   = 6'b011100;
localparam          C_GETX31   = 6'b011101;
localparam          C_GETX32   = 6'b011110;
localparam          C_GETX33   = 6'b011111;
localparam          C_GETX34   = 6'b100000;
localparam          C_GETDACB21= 6'b100001;
localparam          C_GETDACB22= 6'b100010;
localparam          C_GETDACB23= 6'b100011;
localparam          C_GETDACB24= 6'b100100;
localparam          C_GETZ31   = 6'b100101;
localparam          C_GETZ32   = 6'b100110;




localparam          FSWID       = 5;
localparam          F_IDLE      = 5'b00000;
localparam          F_SWAPZ2    = 5'b00001;
localparam          F_SWAPZ3    = 5'b00010;
localparam          F_SWAPX2    = 5'b00011;
localparam          F_SWAPX3    = 5'b00100;
localparam          F_SWAPL     = 5'b00101;
localparam          F_FINALEK   = 5'b00110;
localparam          F_MPTY1     = 5'b00111;
localparam          F_MPTY2     = 5'b01000;

localparam          F_EETY      = 5'b01001;

localparam          F_EETY2     = 5'b01010;

localparam          F_TYTY1     = 5'b01011;
localparam          F_TYTY2     = 5'b01100;


localparam          F_POWZ1     = 5'b01101;
localparam          F_POWZ2     = 5'b01110;
localparam          F_RSLT1     = 5'b01111;
localparam          F_RSLT2     = 5'b10000;











endmodule
module auc_montinit
    (

     );




parameter           WID   = 256;
parameter           CURWID = 255;
parameter           AWID  = 5;
parameter           OPWID = 4;

localparam          INIT   = 0;
localparam          X25519 = 9;
localparam          A24    = 256'd121665;
localparam          EXP_K  = 256'd19;
localparam          EXP_2K = 256'd361;



localparam          X_G     = 0;
localparam          Y_G     = 1;
localparam          X_3G    = 2;
localparam          Y_3G    = 3;
localparam          Z_3G    = 3;
localparam          X_5G    = 5;
localparam          Y_5G    = 6;
localparam          Z_5G    = 7;
localparam          X_7G    = 8;
localparam          Y_7G    = 9;
localparam          Z_7G    = 10;

localparam          K_NUM   = 11;
localparam          K_INV   = 12;
localparam          R_NUM   = 13;
localparam          S_NUM   = 14;
localparam          X_KG    = 15;
localparam          HASH    = 16;
localparam          PKEY    = 17;
localparam          ZRRAM   = 18;
localparam          ONERAM  = 19;

localparam          TEMP0   = 20;
localparam          TEMP1   = 21;
localparam          TEMP2   = 22;
localparam          TEMP3   = 23;
localparam          TEMP4   = 24;
localparam          TEMP5   = 25;
localparam          TEMP6   = 26;   
localparam          TEMP7   = 27;
localparam          TEMP8   = 28;


localparam          X_2   = 20;
localparam          Z_2   = 21;
localparam          X_3   = 22;
localparam          Z_3   = 23;
localparam          A     = 24;
localparam          DA    = 24;
localparam          B     = 25;
localparam          CB    = 25;
localparam          AA    = 26;
localparam          C     = 26;
localparam          DACBS = 26;
localparam          BB    = 27;
localparam          Z2TEMP= 27;
localparam          D     = 27;
localparam          DACB  = 27;
localparam          E     = 28;
localparam          DACB2 = 28;
localparam          U255  = 30;
localparam          A24   = 31;



localparam          X_2   = 20;
localparam          Z_2   = 21;
localparam          X_3   = 22;
localparam          Z_3   = 23;
localparam          E     = 24;
localparam          TY    = 25;
localparam          POWZ  = 26;


localparam          S_RP    = 29;
localparam          S_RPH   = 30;
localparam          BLNK    = 31;




localparam          Z2VL   = 0;
localparam          X3VL   = X25519;
localparam          Z3VL   = 1;


localparam          IDLE    = 2'b00;
localparam          INIT    = 2'b01;
localparam          COMP    = 2'b10;
localparam          FINAL   = 2'b11;


localparam          ISWID    = 3;
localparam          I_IDLE   = 3'b000;
localparam          I_INITX2 = 3'b001;
localparam          I_INITZ2 = 3'b010;
localparam          I_INITX3 = 3'b011;
localparam          I_INITZ3 = 3'b100;
localparam          I_INITA24= 3'b101;
localparam          I_INITU  = 3'b110;


localparam          CSWID    = 6;
localparam          C_IDLE     = 6'b000000;
localparam          C_PREKT1   = 6'b000001;
localparam          C_PREKT2   = 6'b000010;
localparam          C_SWAPX2   = 6'b000011;
localparam          C_SWAPX3   = 6'b000100;
localparam          C_SWAPZ2   = 6'b000101;
localparam          C_SWAPZ3   = 6'b000110;
localparam          C_SWAPHZ2  = 6'b000111;
localparam          C_GETA1    = 6'b001000;
localparam          C_GETA2    = 6'b001001;
localparam          C_GETAA    = 6'b001010;
localparam          C_GETB1    = 6'b001011;
localparam          C_GETB2    = 6'b001100;
localparam          C_GETBB    = 6'b001101;
localparam          C_GETBB2   = 6'b001110;
localparam          C_GETE1    = 6'b001111;
localparam          C_GETE2    = 6'b010000;
localparam          C_GETX21   = 6'b010001;
localparam          C_GETX22   = 6'b010010;
localparam          C_GETZ21   = 6'b010011;
localparam          C_GETZ22   = 6'b010100;
localparam          C_GETZ23   = 6'b010001;
localparam          C_GETZ24   = 6'b010010;
localparam          C_GETZ25   = 6'b010011;
localparam          C_GETZ26   = 6'b010100;
localparam          C_GETC1    = 6'b010101;
localparam          C_GETC2    = 6'b010110;
localparam          C_GETD1    = 6'b010111;
localparam          C_GETD2    = 6'b011000;
localparam          C_GETCB1   = 6'b011001;
localparam          C_GETCB2   = 6'b011010;
localparam          C_GETDA1   = 6'b011011;
localparam          C_GETDA2   = 6'b011100;
localparam          C_GETX31   = 6'b011101;
localparam          C_GETX32   = 6'b011110;
localparam          C_GETX33   = 6'b011111;
localparam          C_GETX34   = 6'b100000;
localparam          C_GETDACB21= 6'b100001;
localparam          C_GETDACB22= 6'b100010;
localparam          C_GETDACB23= 6'b100011;
localparam          C_GETDACB24= 6'b100100;
localparam          C_GETZ31   = 6'b100101;
localparam          C_GETZ32   = 6'b100110;




localparam          FSWID       = 5;
localparam          F_IDLE      = 5'b00000;
localparam          F_SWAPZ2    = 5'b00001;
localparam          F_SWAPZ3    = 5'b00010;
localparam          F_SWAPX2    = 5'b00011;
localparam          F_SWAPX3    = 5'b00100;
localparam          F_SWAPL     = 5'b00101;
localparam          F_FINALEK   = 5'b00110;
localparam          F_MPTY1     = 5'b00111;
localparam          F_MPTY2     = 5'b01000;

localparam          F_EETY      = 5'b01001;

localparam          F_EETY2     = 5'b01010;

localparam          F_TYTY1     = 5'b01011;
localparam          F_TYTY2     = 5'b01100;


localparam          F_POWZ1     = 5'b01101;
localparam          F_POWZ2     = 5'b01110;
localparam          F_RSLT1     = 5'b01111;
localparam          F_RSLT2     = 5'b10000;











endmodule