data/full_repos/permissive/465389471/peak_offpeak.v
1: b'%Warning-UNSIGNED: data/full_repos/permissive/465389471/peak_offpeak.v:22: Comparison is constant due to unsigned arithmetic\n                                                                         : ... In instance peak_offpeak\n        if  (((hours[3:0] <= 2) && (hours[3:0] >= 0)) || ((hours[3:0] <= 7) && (hours[3:0] >= 5))) \n                                               ^~\n                   ... Use "/* verilator lint_off UNSIGNED */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module peak_offpeak(
    input [7:0] hours,
    input pm,
    output reg peak1);



initial 
    peak1 = 0;

always @(*) begin
    if (~pm) begin
        if  ((hours[3:0] <= 9) && (hours[3:0] >= 7)) 
            peak1 <= 1;
        
        else 
            peak1 <= 0;
    end
    else begin
        if  (((hours[3:0] <= 2) && (hours[3:0] >= 0)) || ((hours[3:0] <= 7) && (hours[3:0] >= 5))) 
            peak1 <= 1;  
        else 
            peak1 <= 0;    
        end
    end

endmodule
module peak_offpeak(
    input [7:0] hours,
    input pm,
    output reg peak1);




initial 
    peak1 = 0;

always @(*) begin
    if (~pm) begin
        if  ((hours[3:0] <= 9) && (hours[3:0] >= 7)) 
            peak1 <= 1;
        
        else 
            peak1 <= 0;
    end
    else begin
        if  (((hours[3:0] <= 2) && (hours[3:0] >= 0)) || ((hours[3:0] <= 7) && (hours[3:0] >= 5))) 
            peak1 <= 1;  
        else 
            peak1 <= 0;    
        end
    end

endmodule