-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTDC_TOP.v
More file actions
65 lines (59 loc) · 1.44 KB
/
Copy pathTDC_TOP.v
File metadata and controls
65 lines (59 loc) · 1.44 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
57
58
59
60
61
62
63
64
65
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 11.01.2018 11:38:34
// Design Name:
// Module Name: TDC_TOP
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
`include "Defines.v"
module TDC_TOP(
input iCLK,
input iRST,
input iHIT,
//DEBUG OUTPUTS
//output [`NUM_STAGES-1:0] oTHERMOMETERSTART,
//output [`NUM_STAGES-1:0] oTHERMOMETERSTOP,
//END OF DEBUG OUTPUTS
output oVALUEREADY,
//output [`COARSE_BITS-1:0] oCOARSEARBITERVALUE,
output [`NUM_OUTPUT_BITS-1:0] oTDCVALUE
);
//PLL TO SHIFT SYSTEM CLOCK FOR TDC SAMPLING AND COARSE COUNTING
//wire wCLK0;
wire wCLK1;
wire wCLK2;
PHASEPLL pll_inst(
.iCLK(iCLK),
.reset(iRST),
.oCLK(wCLK1),
.oCLK2(wCLK2)
);
//TDC BLOCK
TDCMODULE tdc_module_inst(
.iCLK0(iCLK),
.iCLK1(wCLK1),
.iCLK2(wCLK2),
.iRST(iRST),
.iHIT(iHIT),
//DEBUG OUTPUTS
//.oTHERMOMETERSTART(oTHERMOMETERSTART),
//.oTHERMOMETERSTOP(oTHERMOMETERSTOP),
//END OF DEBUG OUTPUTS
//.oCOARSEARBITERVALUE(oCOARSEARBITERVALUE),
.oVALUEREADY(oVALUEREADY),
.oTDCVALUE(oTDCVALUE)
);
endmodule