From 3894370d0bb2842876798f32df031c4df2051fb8 Mon Sep 17 00:00:00 2001 From: Peter Mlinko <link@hatchet> Date: Tue, 27 Nov 2018 16:01:05 +0100 Subject: [PATCH] Added Cell component to game_of_life --- game_of_life/game_of_life.cache/wt/project.wpc | 2 +- .../sources_1/new/game_of_life.vhd | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 6888ede..de67d9c 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 47b6f07..66d50b7 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 -- GitLab