From 5d5a40afe4eab5f2132eeb6807957f21152e6efd Mon Sep 17 00:00:00 2001 From: Imants Pulkstenis Date: Mon, 24 Feb 2020 00:18:10 +0200 Subject: [PATCH] minor changes --- ps3/ps03q/tlc_tb.v | 4 ++-- ps3/ps03q/traffic_light_controller.v | 2 +- ps3/ps03q/traffic_light_controller.vhdl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ps3/ps03q/tlc_tb.v b/ps3/ps03q/tlc_tb.v index d8c5833..afb58f9 100644 --- a/ps3/ps03q/tlc_tb.v +++ b/ps3/ps03q/tlc_tb.v @@ -26,7 +26,7 @@ /////////////////////////////////////////////////////////////////// //UUT module -`include "traffic_light_controler.v" +`include "traffic_light_controller.v" // 1GHz clock -> 1ns period // 50% duty cycle 0.5ns HIGH and 0.5ns LOW @@ -48,7 +48,7 @@ integer ii=0; always #0.5 clk <= ~clk; //-----Unit Under test--------------- -smart_tl_ctl #( +traffic_light_controller #( .PARAMETER(45) ) unit_under_test ( .clk(clk), diff --git a/ps3/ps03q/traffic_light_controller.v b/ps3/ps03q/traffic_light_controller.v index 77dcdb7..70e4cc6 100644 --- a/ps3/ps03q/traffic_light_controller.v +++ b/ps3/ps03q/traffic_light_controller.v @@ -46,7 +46,7 @@ // /////////////////////////////////////////////////////////////////// -module trafic_light_controller #( parameter +module traffic_light_controller #( parameter PARAMETER = 45, MR_GREEN_TIME = 30-1, SR_GREEN_TIME = 10-1, diff --git a/ps3/ps03q/traffic_light_controller.vhdl b/ps3/ps03q/traffic_light_controller.vhdl index b7fedd4..ddb1092 100644 --- a/ps3/ps03q/traffic_light_controller.vhdl +++ b/ps3/ps03q/traffic_light_controller.vhdl @@ -52,7 +52,7 @@ use ieee.std_logic_1164.all; --always use this library use ieee.numeric_std.all; --use this library if arithmetic required --Entity declaration [part 3 of the VHDL file]. -entity smart_tl_ctl is +entity traffic_light_controller is generic ( PARAMETER : integer := 45