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

Subversion Repositories othellogame

[/] [othellogame/] [trunk/] [test/] [test_b_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:   22:39:43 04/05/2009
8
// Design Name:   b_move
9
// Module Name:   E:/Projects/Diplom/Othello/test_b_move.v
10
// Project Name:  Othello
11
// Target Device:  
12
// Tool versions:  
13
// Description: 
14
//
15
// Verilog Test Fixture created by ISE for module: b_move
16
//
17
// Dependencies:
18
// 
19
// Revision:
20
// Revision 0.01 - File Created
21
// Additional Comments:
22
// 
23
////////////////////////////////////////////////////////////////////////////////
24
 
25
module test_b_move;
26
 
27
        // Inputs
28
        reg clk;
29
        reg [63:0] R;
30
        reg [63:0] B;
31
        reg [2:0] X;
32
        reg [2:0] Y;
33
        reg RST;
34
 
35
        // Outputs
36
        wire [63:0] R_OUT;
37
        wire [63:0] B_OUT;
38
 
39
 
40
        initial begin
41
                // Initialize Inputs
42
                clk = 0;
43
//              B = 64'b01000001_00000000_00000000_00000000_00000000_00000000_00000001_10000000;
44
//              R = 64'b00000000_00100010_00011100_00010100_00011100_00100010_01000000_00000000;                
45
 
46
                B = 64'b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000110;
47
                R = 64'b00000000_00000000_00000000_00000000_00000000_00000000_00000000_00000001;
48
 
49
                X = 3'd3;
50
                Y = 3'd0;
51
 
52
                // Wait 100 ns for global reset to finish
53
                #100;
54
 
55
                // Add stimulus here
56
                #100 RST = 1;
57
                #200 RST = 0;
58
 
59
        end
60
 
61
 
62
        always #100 clk = ~clk;
63
 
64
 
65
        // Instantiate the Unit Under Test (UUT)
66
        b_move uut (
67
                .clk(clk),
68
                .RST(RST),
69
                .player(1),
70
                .R_(R),
71
                .B_(B),
72
                .X(X),
73
                .Y(Y),
74
                .R_OUT(R_OUT),
75
                .B_OUT(B_OUT)
76
        );
77
 
78
endmodule
79
 

powered by: WebSVN 2.1.0

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