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

Subversion Repositories t6507lp

[/] [t6507lp/] [trunk/] [rtl/] [verilog/] [video_converter_tb.v] - Blame information for rev 253

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

Line No. Rev Author Line
1 236 creep
////////////////////////////////////////////////////////////////////////////
2
////                                                                    ////
3
//// t2600 IP Core                                                      ////
4
////                                                                    ////
5
//// This file is part of the t2600 project                             ////
6
//// http://www.opencores.org/cores/t2600/                              ////
7
////                                                                    ////
8
//// Description                                                        ////
9
//// Color scheme conversion                                            ////
10
////                                                                    ////
11
//// TODO:                                                              ////
12
////                                                                    ////
13
//// Author(s):                                                         ////
14
//// - Gabriel Oshiro Zardo, gabrieloshiro@gmail.com                    ////
15
//// - Samuel Nascimento Pagliarini (creep), snpagliarini@gmail.com     ////
16
////                                                                    ////
17
////////////////////////////////////////////////////////////////////////////
18
////                                                                    ////
19
//// Copyright (C) 2001 Authors and OPENCORES.ORG                       ////
20
////                                                                    ////
21
//// This source file may be used and distributed without               ////
22
//// restriction provided that this copyright statement is not          ////
23
//// removed from the file and that any derivative work contains        ////
24
//// the original copyright notice and the associated disclaimer.       ////
25
////                                                                    ////
26
//// This source file is free software; you can redistribute it         ////
27
//// and/or modify it under the terms of the GNU Lesser General         ////
28
//// Public License as published by the Free Software Foundation;       ////
29
//// either version 2.1 of the License, or (at your option) any         ////
30
//// later version.                                                     ////
31
////                                                                    ////
32
//// This source is distributed in the hope that it will be             ////
33
//// useful, but WITHOUT ANY WARRANTY; without even the implied         ////
34
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR            ////
35
//// PURPOSE. See the GNU Lesser General Public License for more        ////
36
//// details.                                                           ////
37
////                                                                    ////
38
//// You should have received a copy of the GNU Lesser General          ////
39
//// Public License along with this source; if not, download it         ////
40
//// from http://www.opencores.org/lgpl.shtml                           ////
41
////                                                                    ////
42
////////////////////////////////////////////////////////////////////////////
43
 
44
// note: this converts 7 ypbpr bits into 24 rgb bits. In order to use less rgb bits just use the most significant ones.
45
 
46
`include "timescale.v"
47
 
48
module video_converter_tb();
49
 
50
reg [6:0] ypbpr;
51
wire [23:0] rgb;
52
 
53
video_converter video_converter (
54
        .ypbpr  (ypbpr),
55
        .rgb    (rgb)
56
);
57
 
58
initial begin
59
        ypbpr = 1;
60
 
61
        while (ypbpr != 0) begin
62
                #10;
63
                ypbpr = ypbpr + 1;
64
        end
65
 
66
        $finish();
67
end
68
 
69
 
70
endmodule
71
 

powered by: WebSVN 2.1.0

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