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

Subversion Repositories dmt_tx

[/] [dmt_tx/] [trunk/] [const_encoder/] [tb/] [tb_const_enc.v] - Blame information for rev 13

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

Line No. Rev Author Line
1 13 dannori
/* *****************************************************************
2
 *
3
 *  This file is part of Tone Order and Constellation Encoder Core.
4
 *  Copyright (C) 2007 Guenter Dannoritzer
5
 *
6
 *   This source is free software; you can redistribute it
7
 *   and/or modify it under the terms of the
8
 *             GNU General Public License
9
 *   as published by the Free Software Foundation;
10
 *   either version 3 of the License,
11
 *   or (at your option) any later version.
12
 *
13
 *   This source is distributed in the hope
14
 *   that it will be useful, but WITHOUT ANY WARRANTY;
15
 *   without even the implied warranty of MERCHANTABILITY
16
 *   or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *   GNU General Public License for more details.
18
 *
19
 *   You should have received a copy of the
20
 *   GNU General Public License along with this program.
21
 *   If not, see <http://www.gnu.org/licenses/>.
22
 *
23
 * *****************************************************************/
24 12 dannori
 
25
module tb_const_encoder();
26
 
27
reg   clk;
28
reg   reset;
29
wire  input_ready_o;
30
reg   we_data_i;
31
 
32
 
33
//
34
// instantiate the DUT
35
// 
36
const_encoder dut ( .clk(clk),
37
                    .reset(reset),
38
                    .input_ready_o(input_ready_o),
39
                    .we_data_i(we_data_i),
40
                    .data_i(data_i),
41
                    .addr_i(addr_i),
42
                    .we_conf_i(we_conf_i),
43
                    .conf_data_i(conf_data_i),
44
                    .xy_ready_o(xy_ready_o),
45
                    .bin_num_o(bin_num_o),
46
                    .x_o(x_o),
47
                    .y_o(y_o));
48
 
49
 
50
 
51
initial begin
52
 
53
  $monitor($time, " clk: ", clk, " reset: ", reset);
54
 
55
  clk   = 0;
56
  reset = 0;
57
 
58
  #50 reset = 1;
59
  #50 reset = 0;
60
 
61
  #1000 $finish();
62
 
63
end
64
 
65
 
66
 
67
 
68
endmodule

powered by: WebSVN 2.1.0

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