OpenCores
URL https://opencores.org/ocsvn/zet86/zet86/trunk

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [vga/] [sim/] [vdu_tb.v] - Blame information for rev 49

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
`timescale 1ns / 1ps
2
 
3
module vdu_tb;
4
 
5
  reg clk;
6
  reg rst;
7
 
8
  wire [1:0] tft_lcd_r;
9
  wire [1:0] tft_lcd_g;
10
  wire [1:0] tft_lcd_b;
11
  wire       tft_lcd_hsync;
12
  wire       tft_lcd_vsync;
13
 
14
  vdu vdu0 (
15
    .wb_rst_i    (rst),
16
    .wb_clk_i    (clk),     // 25MHz    VDU clock
17
    .vga_red_o   (tft_lcd_r),
18
    .vga_green_o (tft_lcd_g),
19
    .vga_blue_o  (tft_lcd_b),
20
    .horiz_sync  (tft_lcd_hsync),
21 40 zeus
    .vert_sync   (tft_lcd_vsync),
22
 
23
    .wb_dat_i    (16'h0),
24
    .wb_adr_i    (11'h0),
25
    .wb_we_i     (1'b0),
26
    .wb_tga_i    (1'b0),
27
    .wb_sel_i    (2'b0),
28
    .wb_stb_i    (1'b0),
29
    .wb_cyc_i    (1'b0)
30 39 zeus
  );
31
 
32
  always #20 clk <= ~clk;
33
 
34
  initial
35
    begin
36
      rst <= 1'b0;
37
      clk <= 1'b0;
38
      #25 rst <= 1'b1;
39
      #50 rst <= 1'b0;
40
    end
41
 
42
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.