data/full_repos/permissive/515885003/Time_to_BCD_source.v
1: b"%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:23: syntax error, unexpected null, expecting TYPE-IDENTIFIER\n      assign null=1'b0;\n             ^~~~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:119: syntax error, unexpected '=', expecting IDENTIFIER\n                                            ind=index;\n                                               ^\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:123: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                      i<=i+1;\n                                                                       ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:127: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=j+1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:132: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                          j<=j+1;\n                                                                           ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:137: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:144: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                    i<=i+1;\n                                                                     ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:148: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=j+1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:153: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                          j<=j+1;\n                                                                           ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:158: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:165: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                        i<=1;\n                                                                         ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:178: syntax error, unexpected <=, expecting IDENTIFIER\n                                            value<=arr[index];\n                                                 ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:182: syntax error, unexpected <=, expecting IDENTIFIER\n                                                    i<=i+1;\n                                                     ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:186: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=j+1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:191: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                          j<=j+1;\n                                                                           ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:196: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:203: syntax error, unexpected <=, expecting IDENTIFIER\n                                                  i<=i+1;\n                                                   ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:207: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=j+1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:212: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                          j<=j+1;\n                                                                           ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:217: syntax error, unexpected <=, expecting IDENTIFIER\n                                                                            j<=1;\n                                                                             ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:223: syntax error, unexpected <=, expecting IDENTIFIER\n                                                    i<=1;\n                                                     ^~\n%Error: data/full_repos/permissive/515885003/Time_to_BCD_source.v:232: syntax error, unexpected end\n                        end\n                        ^~~\n%Error: Cannot continue\n"
module mult_try(input clk,rst,EnI,output reg manch,output reg temp);
    integer i,j;
    integer index;
    integer index_1;
    reg En1;
    wire [6:0]sec;
    wire [6:0]min;
    wire [5:0]hrs;
    wire [9:0]days;
    wire [7:0]yrs;
    wire [16:0]sbs;
    wire [31:0]hts,mts;
    reg value;
    integer ind;
    wire [7:0]sec8;
    wire [8:0]min9,hrs9,yrs9,days9_1,days9_2;
    wire [17:0]sbs18;
    wire [88:0]en1;
      wire [100:0]en2;
      wire [0:100]arr;
      assign null=1'b0;
    assign sec = 7'h42, min = 7'h18, hrs = 6'h21,days=10'h173,yrs=8'h03;
    
        assign sec8 = {sec[0],sec[1],sec[2],sec[3],1'b0,sec[4],sec[5],sec[6]};
        assign min9 = {min[0],min[1],min[2],min[3],1'b0,min[4],min[5],min[6],1'b0};
        assign hrs9 = {hrs[0],hrs[1],hrs[2],hrs[3],1'b0,hrs[4],hrs[5],2'b00};
        assign days9_1 = {days[0],days[1],days[2],days[3],1'b0,days[4],days[5],days[6],days[7]};
        assign days9_2 = {days[8],days[9],7'h00};
        assign yrs9 = {yrs[0],yrs[1],yrs[2],yrs[3],1'b0,yrs[4],yrs[5],yrs[6],yrs[7]};
        
           
    mult16 m1(hts,{10'b0,hrs},16'd3600);
    mult16 m2(mts,{11'b0,min},16'd60);
    assign sbs = hts+mts+sec;
    assign sbs18 = {sbs[0],sbs[1],sbs[2],sbs[3],sbs[4],sbs[5],sbs[6],sbs[7],sbs[8],sbs[9],sbs[10],sbs[11],sbs[12],sbs[13],sbs[14],sbs[15],sbs[16],1'b0};




         assign en1 = {sec8,min9,hrs9,days9_1,days9_2,yrs9,18'h00000,sbs18};
        assign en2 = {null,sec8,null,min9,null,hrs9,null,days9_1,null,days9_2,null,yrs9,null,20'h00000,sbs18,null,null};
        assign arr=en2;

    always @(posedge(clk) or negedge(rst))
    begin
        if(!rst)
            begin
                i<=0;
                index<=0;
                index_1<=1;
               temp<=1'b0;
               En1<=1'b0;
               j<=0;
               manch<=1'b0;
            end
            
       
                                        
                                                            if(i<100000)
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b1;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;

                                                                        end 
                                                                end
                                                            
                                                            else if((i>=100000)&&(i<500000))
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b0;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                                end
                                                                
                                                            else if (i==500000)
                                                                begin
                                                                   i<=1;
                                                                    temp<=1'b0;
                                                                    index<=index+1;
                                                                     index_1<=index+2;
                                                                     manch<=1'b0;

                                                                end
                                                                 
                                        end
                        
                       
                                               
                                if(arr[index]==1'b1)
                                        begin
                                            ind=index;
                                            value<=arr[index];
                                                            if(i<250000)
                                                                begin
                                                                      i<=i+1;
                                                                      temp<=1'b1;
                                                                      if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b1;
                                                                        end 
                                                                end
                                                                
                                                            else if((i>=250000)&&(i<500000))
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b0;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                                end
                                                                
                                                            else if (i==500000)
                                                                    begin
                                                                        i<=1;
                                                                         temp<=1'b0;
                                                                        index<=index+1;
                                                                        index_1<=index+2;
                                                                        manch<=1'b0;

                                                                    end                    
                                                        
                                            end
                                           
                               if(index_1%10==0)
                                begin                      
                                
                                            value<=arr[index];
                                            ind=index;         
                                            if(i<400000)
                                                begin
                                                    i<=i+1;
                                                   temp<=1'b1;
                                                   if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b1;
                                                                        end 
                                                end
                                            
                                            else if((i>=400000)&&(i<500000))
                                                begin
                                                  i<=i+1;
                                                  temp<=1'b0;
                                                  if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                end
                                             else if (i==500000)
                                                begin
                                                    i<=1;
                                                    temp<=1'b0;

                                                   index<=index+1;
                                                   index_1<=index+2;
                                                   manch<=1'b0;
                                                 
                                                end 
                                end                
                        end
                        
               
            end                    
    end
endmodule
module mult_try(input clk,rst,EnI,output reg manch,output reg temp);

    integer i,j;
    integer index;
    integer index_1;
    reg En1;
    wire [6:0]sec;
    wire [6:0]min;
    wire [5:0]hrs;
    wire [9:0]days;
    wire [7:0]yrs;
    wire [16:0]sbs;
    wire [31:0]hts,mts;
    reg value;
    integer ind;
    wire [7:0]sec8;
    wire [8:0]min9,hrs9,yrs9,days9_1,days9_2;
    wire [17:0]sbs18;
    wire [88:0]en1;
      wire [100:0]en2;
      wire [0:100]arr;
      assign null=1'b0;
    assign sec = 7'h42, min = 7'h18, hrs = 6'h21,days=10'h173,yrs=8'h03;
    
        assign sec8 = {sec[0],sec[1],sec[2],sec[3],1'b0,sec[4],sec[5],sec[6]};
        assign min9 = {min[0],min[1],min[2],min[3],1'b0,min[4],min[5],min[6],1'b0};
        assign hrs9 = {hrs[0],hrs[1],hrs[2],hrs[3],1'b0,hrs[4],hrs[5],2'b00};
        assign days9_1 = {days[0],days[1],days[2],days[3],1'b0,days[4],days[5],days[6],days[7]};
        assign days9_2 = {days[8],days[9],7'h00};
        assign yrs9 = {yrs[0],yrs[1],yrs[2],yrs[3],1'b0,yrs[4],yrs[5],yrs[6],yrs[7]};
        
           
    mult16 m1(hts,{10'b0,hrs},16'd3600);
    mult16 m2(mts,{11'b0,min},16'd60);
    assign sbs = hts+mts+sec;
    assign sbs18 = {sbs[0],sbs[1],sbs[2],sbs[3],sbs[4],sbs[5],sbs[6],sbs[7],sbs[8],sbs[9],sbs[10],sbs[11],sbs[12],sbs[13],sbs[14],sbs[15],sbs[16],1'b0};




         assign en1 = {sec8,min9,hrs9,days9_1,days9_2,yrs9,18'h00000,sbs18};
        assign en2 = {null,sec8,null,min9,null,hrs9,null,days9_1,null,days9_2,null,yrs9,null,20'h00000,sbs18,null,null};
        assign arr=en2;

    always @(posedge(clk) or negedge(rst))
    begin
        if(!rst)
            begin
                i<=0;
                index<=0;
                index_1<=1;
               temp<=1'b0;
               En1<=1'b0;
               j<=0;
               manch<=1'b0;
            end
            
       
                                        
                                                            if(i<100000)
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b1;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;

                                                                        end 
                                                                end
                                                            
                                                            else if((i>=100000)&&(i<500000))
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b0;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                                end
                                                                
                                                            else if (i==500000)
                                                                begin
                                                                   i<=1;
                                                                    temp<=1'b0;
                                                                    index<=index+1;
                                                                     index_1<=index+2;
                                                                     manch<=1'b0;

                                                                end
                                                                 
                                        end
                        
                       
                                               
                                if(arr[index]==1'b1)
                                        begin
                                            ind=index;
                                            value<=arr[index];
                                                            if(i<250000)
                                                                begin
                                                                      i<=i+1;
                                                                      temp<=1'b1;
                                                                      if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b1;
                                                                        end 
                                                                end
                                                                
                                                            else if((i>=250000)&&(i<500000))
                                                                begin
                                                                    i<=i+1;
                                                                    temp<=1'b0;
                                                                    if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                                end
                                                                
                                                            else if (i==500000)
                                                                    begin
                                                                        i<=1;
                                                                         temp<=1'b0;
                                                                        index<=index+1;
                                                                        index_1<=index+2;
                                                                        manch<=1'b0;

                                                                    end                    
                                                        
                                            end
                                           
                               if(index_1%10==0)
                                begin                      
                                
                                            value<=arr[index];
                                            ind=index;         
                                            if(i<400000)
                                                begin
                                                    i<=i+1;
                                                   temp<=1'b1;
                                                   if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b0;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b1;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b1;
                                                                        end 
                                                end
                                            
                                            else if((i>=400000)&&(i<500000))
                                                begin
                                                  i<=i+1;
                                                  temp<=1'b0;
                                                  if(j<5000)
                                                                        begin
                                                                            j<=j+1;
                                                                           manch<=1'b1;
                                                                        end
                                                                    else if((j>=5000)&&(j<9999))
                                                                        begin
                                                                          j<=j+1;
                                                                          manch<=1'b0;
                                                                        end
                                                                     else if (j==9999)
                                                                        begin
                                                                            j<=1;
                                                                            manch<=1'b0;
                                                                        end 
                                                end
                                             else if (i==500000)
                                                begin
                                                    i<=1;
                                                    temp<=1'b0;

                                                   index<=index+1;
                                                   index_1<=index+2;
                                                   manch<=1'b0;
                                                 
                                                end 
                                end                
                        end
                        
               
            end                    
    end
endmodule