data/full_repos/permissive/211316121/lab5_2/hour_count.v
1: b'%Warning-WIDTHCONCAT: data/full_repos/permissive/211316121/lab5_2/hour_count.v:15: Unsized numbers/parameters not allowed in concatenations.\n                                                                                 : ... In instance hour_counter\n        if(~clr)  counter<={\'b000,data};\n                            ^~~~~\n                      ... Use "/* verilator lint_off WIDTHCONCAT */" and lint_on around source to disable this message.\n%Warning-WIDTHCONCAT: data/full_repos/permissive/211316121/lab5_2/hour_count.v:15: Unsized numbers/parameters not allowed in replications.\n                                                                                 : ... In instance hour_counter\n        if(~clr)  counter<={\'b000,data};\n                                 ^\n%Error: Exiting due to 2 warning(s)\n'
module hour_counter(
input clk,
input clr,
input E,
input [4:0]data,
input time_in,
output reg [7:0]counter,
output reg time_out
    );
    
    parameter N=24;
    
    always@(posedge clk)
    begin
        if(~clr)  counter<={'b000,data};
        else if(E==1)
        begin
            time_out<=0;
            if(time_in==1)
                if(counter<N-1) counter<=counter+1;
                else
                begin
                    counter<=0;
                    time_out<=1;
                end
          end
      end
      
      
 
endmodule
module hour_counter(
input clk,
input clr,
input E,
input [4:0]data,
input time_in,
output reg [7:0]counter,
output reg time_out
    );

    
    parameter N=24;
    
    always@(posedge clk)
    begin
        if(~clr)  counter<={'b000,data};
        else if(E==1)
        begin
            time_out<=0;
            if(time_in==1)
                if(counter<N-1) counter<=counter+1;
                else
                begin
                    counter<=0;
                    time_out<=1;
                end
          end
      end
      
      
 
endmodule