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

Subversion Repositories quark

[/] [quark/] [trunk/] [05_HDLConstruction/] [01_OldArchitecture_ReferenceOnly/] [Alu/] [AluTestBench.v] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 progman32
`timescale 1ns / 1ps
2
 
3
////////////////////////////////////////////////////////////////////////////////
4
// Company: 
5
// Engineer:
6
//
7
// Create Date:   22:11:23 09/06/2014
8
// Design Name:   ModAlu
9
// Module Name:   C:/Quantum/ALU/ALU_TB.v
10
// Project Name:  Quantum
11
// Target Device:  
12
// Tool versions:  
13
// Description: 
14
//
15
// Verilog Test Fixture created by ISE for module: ModAlu
16
//
17
// Dependencies:
18
// 
19
// Revision:
20
// Revision 0.01 - File Created
21
// Additional Comments:
22
// 
23
////////////////////////////////////////////////////////////////////////////////
24
 
25
module ALU_TB;
26
 
27
        // Inputs
28
        reg Clock;
29
        reg Reset;
30
        reg [0:7] Mnemonic;
31
        reg [0:7] Data0;
32
        reg [0:7] Data1;
33
 
34
        // Outputs
35
        wire [0:15] Result;
36
 
37
        // Instantiate the Unit Under Test (UUT)
38
        ModAlu uut (
39
                .Clock(Clock),
40
                .Reset(Reset),
41
                .Mnemonic(Mnemonic),
42
                .Data0(Data0),
43
                .Data1(Data1),
44
                .Result(Result)
45
        );
46
 
47
   always@(*) begin
48
          #10;
49
          Clock = ~Clock;
50
        end
51
 
52
        initial begin
53
                // Initialize Inputs
54
                Reset = 0;
55
                Mnemonic = 0;
56
                Data0 = 0;
57
                Data1 = 0;
58
 
59
                // Wait 100 ns for global reset to finish
60
                #100;
61
 
62
                // Add stimulus here
63
 
64
        end
65
endmodule

powered by: WebSVN 2.1.0

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