-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_emu.v
63 lines (51 loc) · 1.07 KB
/
test_emu.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
55
56
57
58
59
60
61
62
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company: ITEP
// Engineer: SvirLex
//
// Create Date: 00:39:21 03/29/2022
// Design Name: emugen
// Module Name: /home/igor/proj/spascharm-timecounter/test_emu.v
// Project Name: timecnt
// Target Device: xc3s400-4pq208
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: emugen
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module test_emu;
// Inputs
reg clk;
reg enable;
// Outputs
wire trigger;
// Instantiate the Unit Under Test (UUT)
emugen #(
.period(40),
.cycleon(1000),
.cycleoff(500)
) uut (
.clk(clk),
.enable(enable),
.trigger(trigger)
);
always begin
#12.5 clk = ~clk;
end
initial begin
// Initialize Inputs
clk = 0;
enable = 0;
// Wait 100 ns for global reset to finish
#1000;
// Add stimulus here
enable <= 1;
end
endmodule