-
Notifications
You must be signed in to change notification settings - Fork 3
/
display_pal_testbench.v
52 lines (44 loc) · 1.22 KB
/
display_pal_testbench.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
// synopsys translate_off
`timescale 1 ns / 1 ns
// synopsys translate_on
module display_pal_testbench(
);
reg clk;
reg rst;
reg [15:0] data;
reg [18:0] dram_addr;
reg dram_rclk;
reg dram_ce0_n;
reg dram_ren;
reg pf_blank,pf_sync;
reg [7:0 ] pf_pixel;
always #1 clk = ~clk;
initial begin
clk = 0;
rst = 1;
data = 16'h3333;
#100
rst = 0;
#1500000
data=16'h5555;
$finish;
end
initial
begin
$dumpfile("display_pal_testbench.vcd");
$dumpvars(0,display_pal_testbench);
$display("display_pal_testbench!");
end
display_pal u_display_pal(
.v_clk ( clk ),
.rst ( rst ),
.dram_datain ( data ),
.dram_addr ( dram_addr ),
.dram_rclk ( dram_rclk ),
.dram_ce0_n ( dram_ce0_n ),
.dram_ren ( dram_ren ),
.pf_blank ( pf_blank ),
.pf_sync ( pf_sync ),
.pf_pixel ( pf_pixel )
);
endmodule