-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mux2Test.v
54 lines (46 loc) · 1.05 KB
/
Mux2Test.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 09:38:11 06/27/2019
// Design Name: Mux2
// Module Name: Z:/Memari_Project/MemariProject/Mux2Test.v
// Project Name: MemariProject
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: Mux2
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module Mux2Test;
reg control;
reg [31:0] A;
reg [31:0] B;
reg clk;
wire [31:0]ou;
// Instantiate the Unit Under Test (UUT)
Mux2 uut (control,A,B,ou);
initial begin
// Initialize Inputs
control = 0;
A = 32'h00000001;
B = 32'h00000002;
clk = 0;
end
always #100 clk= ~clk;
// Add stimulus here
always @(posedge clk)
begin
#100; control = 1'b0;
#100; control = 1'b1;
#100; $stop;
end
endmodule