diff --git a/game_of_life/game_of_life.cache/wt/project.wpc b/game_of_life/game_of_life.cache/wt/project.wpc index 6888edec1ac73923cacb7d6dea38f6663dae769b..de67d9ce23793f8584f54b90c2cdeadf8114ad0a 100644 --- a/game_of_life/game_of_life.cache/wt/project.wpc +++ b/game_of_life/game_of_life.cache/wt/project.wpc @@ -1,3 +1,3 @@ version:1 -6d6f64655f636f756e7465727c4755494d6f6465:2 +6d6f64655f636f756e7465727c4755494d6f6465:3 eof: diff --git a/game_of_life/game_of_life.srcs/sources_1/new/game_of_life.vhd b/game_of_life/game_of_life.srcs/sources_1/new/game_of_life.vhd index 47b6f07b9a30201547bd324a55b912baef383426..66d50b715662631d50ea64a2efccb24a8b8be744 100644 --- a/game_of_life/game_of_life.srcs/sources_1/new/game_of_life.vhd +++ b/game_of_life/game_of_life.srcs/sources_1/new/game_of_life.vhd @@ -59,8 +59,25 @@ port ); end component; +component cell +port + ( + clk_1hz : in STD_LOGIC; + locked : in STD_LOGIC; + switch : in STD_LOGIC; + flip_val : inout STD_LOGIC; + neighbours : in STD_LOGIC_VECTOR(1 to 8); + output : out STD_LOGIC + ); +end component; + signal locked, inner_clk, one_sec_clk : STD_LOGIC; +-- the cell_outputs signal holds the output of the cells +-- the 0th element holds the boundary condition +-- we have 64×48 cells +signal cell_outputs : STD_LOGIC_VECTOR(0 to 3072); + begin tic_toc : clk_wiz_0