-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_main.v
More file actions
57 lines (44 loc) · 1.06 KB
/
test_main.v
File metadata and controls
57 lines (44 loc) · 1.06 KB
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
55
56
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:21:51 04/26/2015
// Design Name: main
// Module Name: H:/Users/asw011/Documents/Final Project Elec 245/Final Project Elec 245/Final Project Elec 245 (1)/Final Project Elec 245/PrimeFactorization/test_main.v
// Project Name: PrimeFactorization
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: main
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module test_main;
// Inputs
reg clk;
reg [31:0] n;
// Outputs
wire [31:0] prime1;
// Instantiate the Unit Under Test (UUT)
main uut (
.clk(clk),
.n(n),
.prime1(prime1)
);
always #1 clk = ~clk;
initial begin
// Initialize Inputs
clk = 1;
n = 485;
// Wait 100 ns for global reset to finish
#5000;
// Add stimulus here
end
endmodule