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

Subversion Repositories zet86

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

Go to most recent revision | 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
    .vert_sync   (tft_lcd_vsync)
22
  );
23
 
24
  always #20 clk <= ~clk;
25
 
26
  initial
27
    begin
28
      rst <= 1'b0;
29
      clk <= 1'b0;
30
      #25 rst <= 1'b1;
31
      #50 rst <= 1'b0;
32
    end
33
 
34
endmodule

powered by: WebSVN 2.1.0

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