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

Subversion Repositories othellogame

[/] [othellogame/] [trunk/] [test/] [test_board_move.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 marius_mtm
`timescale 1ns / 1ps
2
 
3
////////////////////////////////////////////////////////////////////////////////
4
// Company: 
5
// Engineer:
6
//
7
// Create Date:   04:47:26 03/26/2009
8
// Design Name:   board_move
9
// Module Name:   E:/Projects/Diplom/Othello/test_board_move.v
10
// Project Name:  Othello
11
// Target Device:  
12
// Tool versions:  
13
// Description: 
14
//
15
// Verilog Test Fixture created by ISE for module: board_move
16
//
17
// Dependencies:
18
// 
19
// Revision:
20
// Revision 0.01 - File Created
21
// Additional Comments:
22
// 
23
////////////////////////////////////////////////////////////////////////////////
24
 
25
module test_board_move_v;
26
 
27
        // Inputs
28
        reg clk;
29
        reg [63:0] B;
30
        reg [63:0] R;
31
        reg [2:0] X;
32
        reg [2:0] Y;
33
        reg player;
34
        reg RST;
35
 
36
        // Outputs
37
        wire [63:0] MB;
38
        wire [63:0] MR;
39
 
40
        // Instantiate the Unit Under Test (UUT)
41
 
42
        initial begin
43
                // Initialize Inputs
44
                clk = 0;
45
                B = 64'b00000100_00000100_00000100_00000100_00000100_00000100_10000100_10000001;
46
                R = 64'b00000010_00000000_00000000_00000000_00000000_00000000_01110000_01110110;
47
                X = 3;
48
                Y = 0;
49
                player = 0;
50
                RST = 0;
51
 
52
                // Wait 100 ns for global reset to finish
53
                #100;
54
 
55
                #100 RST = 1;
56
                #200 RST = 0;
57
 
58
                // Add stimulus here
59
 
60
        end
61
 
62
        always #100 clk = ~clk;
63
 
64
        board_move uut (
65
                .clk(clk),
66
                .B(B),
67
                .R(R),
68
                .X(X),
69
                .Y(Y),
70
                .player(player),
71
                .MB(MB),
72
                .MR(MR),
73
                .RST(RST)
74
        );
75
 
76
endmodule
77
 

powered by: WebSVN 2.1.0

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