[wip] traffic_light state machine

This commit is contained in:
Tiago Batista Cardoso
2025-12-21 12:28:09 +01:00
parent 5e01955c52
commit c350456d06
3 changed files with 70 additions and 15 deletions

View File

@@ -9,16 +9,20 @@ end entity;
architecture sim of tb_traffic_light is
signal rst_s : std_logic := '1';
signal clk_s : std_logic := '0';
signal out_s : std_logic;
signal green_s : std_logic;
signal orange_s : std_logic;
signal red_s : std_logic;
constant clk_period : time := 1000 ns;
begin
-- Instantiate DUT
UUT: entity work.tick1s
UUT: entity work.traffic_light
port map (
rst => rst_s,
clk => clk_s,
output => out_s
green => green_s,
orange => orange_s,
red => red_s
);
-- Clock generator