-
Notifications
You must be signed in to change notification settings - Fork 0
/
tb_lightDance.v
87 lines (76 loc) · 1.4 KB
/
tb_lightDance.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 21:27:38 02/04/2021
// Design Name: LightDance
// Module Name: C:/Users/Leili/Desktop/az manteghi/FinalProject/tb_lightDance.v
// Project Name: FinalProject
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: LightDance
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module tb_lightDance;
// Inputs
reg arst;
reg clk;
reg din;
reg load;
reg [7:0] pdata;
// Outputs
wire [7:0] qdata;
// Instantiate the Unit Under Test (UUT)
LightDance uut (
.arst(arst),
.clk(clk),
.din(din),
.load(load),
.pdata(pdata),
.qdata(qdata)
);
initial begin
// Initialize Inputs
arst = 0;
clk = 0;
din = 0;
load = 0;
pdata = 0;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
arst=1;
clk=1;
din=1;
load=0;
pdata=8'b11110000;
#100;
clk=0;
#100;
clk=1;
#100;
clk=0;
#100;
clk=1;
#100;
clk=0;
#100;
clk=1;
//loading
#100;
pdata=8'b11111111;
clk=0;
load=1;
#100;
clk=1;
end
endmodule