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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [vga/] [test/] [test_vdu.v] - Blame information for rev 53

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3 40 zeus
// Company:
4
// Engineer:
5 39 zeus
//
6 40 zeus
// Create Date:    02:05:46 08/01/2008
7
// Design Name:
8
// Module Name:    test_vdu
9
// Project Name:
10
// Target Devices:
11
// Tool versions:
12
// Description:
13 39 zeus
//
14 40 zeus
// Dependencies:
15
//
16
// Revision:
17 39 zeus
// Revision 0.01 - File Created
18 40 zeus
// Additional Comments:
19 39 zeus
//
20
//////////////////////////////////////////////////////////////////////////////////
21
module test_vdu (
22
    input         sys_clk_in,
23
    output       tft_lcd_clk,
24
    output [1:0] tft_lcd_r,
25
    output [1:0] tft_lcd_g,
26
    output [1:0] tft_lcd_b,
27
    output       tft_lcd_hsync,
28
    output       tft_lcd_vsync,
29
 
30
    output led
31
  );
32
 
33
  // Net declarations
34
  wire lock, rst;
35
 
36
  // Module instantiations
37
  clock clk0 (
38
    .CLKIN_IN   (sys_clk_in),
39
    .CLKDV_OUT  (tft_lcd_clk),
40
    .LOCKED_OUT (lock)
41
  );
42 40 zeus
 
43 39 zeus
  vdu vdu0 (
44
    .wb_rst_i    (rst),
45
    .wb_clk_i    (tft_lcd_clk),     // 25MHz    VDU clock
46
    .vga_red_o   (tft_lcd_r),
47
    .vga_green_o (tft_lcd_g),
48
    .vga_blue_o  (tft_lcd_b),
49
    .horiz_sync  (tft_lcd_hsync),
50
    .vert_sync   (tft_lcd_vsync)
51
  );
52 48 zeus
 
53 39 zeus
  // Continuous assignments
54 40 zeus
  assign rst = !lock;
55 39 zeus
  assign led = 1'b1;
56
endmodule

powered by: WebSVN 2.1.0

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