module displayGraph(safe,row,column,count);
//decide is green/yellow time or not
input safe;
input [31:0] count;
//display matrix
output [7:0] row;
output [7:0] column;

reg [7:0]row;
reg [7:0]column;

always@(safe)
begin
    if(safe)
    begin
        if(count%8==4'd0)
        begin
            row=8'b01111111;
            column=8'b00011000;
        end
        if(count%8==4'd1)
        begin
            row=8'b10111111;
            column=8'b00100100;
        end
        if(count%8==4'd2)
        begin
            row=8'b11011111;
            column=8'b01000010;
        end
        if(count%8==4'd3)
        begin
            row=8'b11101111;
            column=8'b11000011;
        end
        if(count%8==4'd4)
        begin
            row=8'b11110111;
            column=8'b01000010;
        end
        if(count%8==4'd5)
        begin
            row=8'b11111011;
            column=8'b01000010;
        end
        if(count%8==4'd6)
        begin
            row=8'b11111101;
            column=8'b01000010;
        end
        if(count%8==4'd7)
        begin
            row=8'b11111110;
            column=8'b01111110;
        end
    end
else
    begin
        if(count%8==4'd0)
        begin
            row=8'b01111111;
            column=8'b00011000;
        end
        if(count%8==4'd1)
        begin
            row=8'b10111111;
            column=8'b00011000;
        end
        if(count%8==4'd2)
        begin
            row=8'b11011111;
            column=8'b00111100;
        end
        if(count%8==4'd3)
        begin
            row=8'b11101111;
            column=8'b01111110;
        end
        if(count%8==4'd4)
        begin
            row=8'b11110111;
            column=8'b01011010;
        end
        if(count%8==4'd5)
        begin
            row=8'b11111011;
            column=8'b00011000;
        end
        if(count%8==4'd6)
        begin
            row=8'b11111101;
            column=8'b00100100;
        end
        if(count%8==4'd7)
        begin
            row=8'b11111110;
            column=8'b00100100;
        end
    end
end
endmodule