module histogram(data_in, out1, out2, out3, out4, out5,out6,out7,out8, clk);
output reg [7:0] out1;
output reg [7:0] out2;
output reg [7:0] out3;
output reg [7:0] out4;
output reg [7:0] out5;
output reg [7:0] out6;
output reg [7:0] out7;
output reg [7:0] out8;
input [7:0] data_in;
input clk;
always @ (posedge clk)
begin
if (data_in >= 8'b11100000)
begin
out8 = out8 + 1;
end
else if (data_in >= 8'b11000000)
begin
out7 = out7 + 1;
end
else if (data_in >= 8'b10100000)
begin
out6 = out6 + 1;
end
else if (data_in >= 8'b10000000)
begin
out5 = out5 + 1;
end
else if (data_in >= 8'b01100000)
begin
out4 = out4 + 1;
end
else if (data_in >= 8'b01000000)
begin
out3 = out3 + 1;
end
else if (data_in >= 8'b00100000)
begin
out2 = out2 + 1;
end
else if (data_in >= 8'b00000000)
begin
out1 = out1 + 1;
end
end
endmodule