minor changes
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
//UUT module
|
//UUT module
|
||||||
`include "traffic_light_controler.v"
|
`include "traffic_light_controller.v"
|
||||||
|
|
||||||
// 1GHz clock -> 1ns period
|
// 1GHz clock -> 1ns period
|
||||||
// 50% duty cycle 0.5ns HIGH and 0.5ns LOW
|
// 50% duty cycle 0.5ns HIGH and 0.5ns LOW
|
||||||
@@ -48,7 +48,7 @@ integer ii=0;
|
|||||||
always #0.5 clk <= ~clk;
|
always #0.5 clk <= ~clk;
|
||||||
|
|
||||||
//-----Unit Under test---------------
|
//-----Unit Under test---------------
|
||||||
smart_tl_ctl #(
|
traffic_light_controller #(
|
||||||
.PARAMETER(45)
|
.PARAMETER(45)
|
||||||
) unit_under_test (
|
) unit_under_test (
|
||||||
.clk(clk),
|
.clk(clk),
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
module trafic_light_controller #( parameter
|
module traffic_light_controller #( parameter
|
||||||
PARAMETER = 45,
|
PARAMETER = 45,
|
||||||
MR_GREEN_TIME = 30-1,
|
MR_GREEN_TIME = 30-1,
|
||||||
SR_GREEN_TIME = 10-1,
|
SR_GREEN_TIME = 10-1,
|
||||||
|
|||||||
@@ -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
|
use ieee.numeric_std.all; --use this library if arithmetic required
|
||||||
|
|
||||||
--Entity declaration [part 3 of the VHDL file].
|
--Entity declaration [part 3 of the VHDL file].
|
||||||
entity smart_tl_ctl is
|
entity traffic_light_controller is
|
||||||
generic
|
generic
|
||||||
(
|
(
|
||||||
PARAMETER : integer := 45
|
PARAMETER : integer := 45
|
||||||
|
|||||||
Reference in New Issue
Block a user