Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDC core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
TDC core
Commits
a4fd5c20
Commit
a4fd5c20
authored
Aug 17, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Top level module interface (WIP)
parent
adf29743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
1 deletion
+75
-1
tdc.vhd
core/tdc.vhd
+74
-0
tb_freqc.vhd
tb/freqc/tb_freqc.vhd
+1
-1
No files found.
core/tdc.vhd
0 → 100644
View file @
a4fd5c20
-------------------------------------------------------------------------------
-- TDC Core / CERN
-------------------------------------------------------------------------------
--
-- unit name: tdc
--
-- author: Sebastien Bourdeauducq, sebastien@milkymist.org
--
-- description: Top level module
--
-- references: http://www.ohwr.org/projects/tdc-core
--
-------------------------------------------------------------------------------
-- last changes:
-- 2011-08-17 SB Created file
-------------------------------------------------------------------------------
-- Copyright (C) 2011 Sebastien Bourdeauducq
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
library
work
;
use
work
.
tdc_package
.
all
;
entity
tdc_channelbank
is
generic
(
-- Number of channels.
g_CHANNEL_COUNT
:
positive
;
-- Number of CARRY4 elements per channel.
g_CARRY4_COUNT
:
positive
;
-- Number of raw output bits.
g_RAW_COUNT
:
positive
;
-- Number of fractional part bits.
g_FP_COUNT
:
positive
;
-- Number of coarse counter bits.
g_COARSE_COUNT
:
positive
;
-- Length of each ring oscillator.
g_RO_LENGTH
:
positive
;
-- Frequency counter width.
g_FCOUNTER_WIDTH
:
positive
;
-- Frequency counter timer width.
g_FTIMER_WIDTH
:
positive
);
port
(
clk_i
:
in
std_logic
;
reset_i
:
in
std_logic
;
ready_o
:
out
std_logic
;
-- Coarse counter control.
cc_rst_i
:
in
std_logic
;
cc_cy_o
:
out
std_logic
;
-- Per-channel deskew inputs.
deskew_i
:
in
std_logic_vector
(
g_CHANNEL_COUNT
*
(
g_COARSE_COUNT
+
g_FP_COUNT
)
-1
downto
0
);
-- Per-channel signal inputs.
signal_i
:
in
std_logic_vector
(
g_CHANNEL_COUNT
-1
downto
0
);
calib_i
:
in
std_logic_vector
(
g_CHANNEL_COUNT
-1
downto
0
);
-- Per-channel detection outputs.
detect_o
:
out
std_logic_vector
(
g_CHANNEL_COUNT
-1
downto
0
);
polarity_o
:
out
std_logic_vector
(
g_CHANNEL_COUNT
-1
downto
0
);
raw_o
:
out
std_logic_vector
(
g_CHANNEL_COUNT
*
g_RAW_COUNT
-1
downto
0
);
fp_o
:
out
std_logic_vector
(
g_CHANNEL_COUNT
*
(
g_COARSE_COUNT
+
g_FP_COUNT
)
-1
downto
0
);
-- Debug interface.
-- TODO
);
end
entity
;
architecture
rtl
of
tdc
is
begin
end
architecture
;
tb/freqc/tb_freqc.vhd
View file @
a4fd5c20
...
...
@@ -2,7 +2,7 @@
-- TDC Core / CERN
-------------------------------------------------------------------------------
--
-- unit name: tb_
lb
c
-- unit name: tb_
freq
c
--
-- author: Sebastien Bourdeauducq, sebastien@milkymist.org
--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment