Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
conv-common-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
level-conversion
conv-common-gw
Commits
aa091233
Commit
aa091233
authored
Aug 05, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in top-level module interface
parent
0c9c6def
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
33 deletions
+35
-33
conv_common_gw.vhd
top/conv_common_gw.vhd
+11
-10
conv_common_gw_pkg.vhd
top/conv_common_gw_pkg.vhd
+24
-23
No files found.
top/conv_common_gw.vhd
View file @
aa091233
...
...
@@ -108,6 +108,7 @@ entity conv_common_gw is
pulse_o
:
out
std_logic_vector
(
g_nr_chans
-1
downto
0
);
-- Channel leds
-- 26 ms active-high pulse on pulse_o rising edge
led_pulse_o
:
out
std_logic_vector
(
g_nr_chans
-1
downto
0
);
-- I2C interface
...
...
@@ -118,6 +119,12 @@ entity conv_common_gw is
sda_o
:
out
std_logic
;
sda_en_o
:
out
std_logic
;
-- I2C LED signals -- conect to a bicolor LED of choice
-- led_i2c_o pulses four times on I2C transfer
-- led_i2c_err_o reflects the state of SR.I2C_ERR bit in conv_regs
led_i2c_o
:
out
std_logic
;
led_i2c_err_o
:
out
std_logic
;
-- VME interface
vme_ga_i
:
in
std_logic_vector
(
4
downto
0
);
vme_gap_i
:
in
std_logic
;
...
...
@@ -147,12 +154,6 @@ entity conv_common_gw is
sfp_tx_disable_o
:
out
std_logic
;
sfp_tx_fault_i
:
in
std_logic
;
-- I2C LED signals -- conect to a bicolor LED of choice
-- led_i2c_o pulses four times on I2C transfer
-- led_i2c_err_o reflects the state of SR.I2C_ERR bit in conv_regs
led_i2c_o
:
out
std_logic
;
led_i2c_err_o
:
out
std_logic
;
-- Switch inputs (for readout from converter status register)
sw_gp_i
:
in
std_logic_vector
(
7
downto
0
);
sw_multicast_i
:
in
std_logic_vector
(
3
downto
0
);
...
...
@@ -162,8 +163,8 @@ entity conv_common_gw is
rtmp_i
:
in
std_logic_vector
(
2
downto
0
);
-- TTL, INV-TTL and rear-panel channel inputs, for reflection in line status register
line_
ttl_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_inv
ttl_i
:
in
std_logic_vector
(
3
downto
0
);
line_
front_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_inv
_i
:
in
std_logic_vector
(
3
downto
0
);
line_rear_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_rear_fs_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
...
...
@@ -706,8 +707,8 @@ begin
reg_ch6ltsthr_tai_i
=>
(
others
=>
'0'
),
reg_ch6ltsthr_wrtag_i
=>
'0'
,
reg_lsr_front_ttl_i
=>
line_
ttl
_i
,
reg_lsr_front_invttl_i
=>
line_inv
ttl
_i
,
reg_lsr_front_ttl_i
=>
line_
front
_i
,
reg_lsr_front_invttl_i
=>
line_inv_i
,
reg_lsr_rear_i
=>
line_rear_i
,
reg_lsr_fs_i
=>
line_rear_fs_i
,
...
...
top/conv_common_gw_pkg.vhd
View file @
aa091233
...
...
@@ -53,13 +53,13 @@ package conv_common_gw_pkg is
(
-- Number of repeater channels
g_nr_chans
:
integer
:
=
6
;
-- Board ID -- 4-letter ASCII string indicating the board ID
-- see [1] for example
g_board_id
:
std_logic_vector
(
31
downto
0
);
-- Gateware version
g_gwvers
:
std_logic_vector
(
7
downto
0
);
-- Generate pulse repetition logic with fixed output pulse width
g_pgen_fixed_width
:
boolean
;
-- Pulse width at pulse generator output (valid with fixed output pulse width)
...
...
@@ -69,7 +69,7 @@ package conv_common_gw_pkg is
g_pgen_duty_cycle_div
:
natural
:
=
5
;
-- Pulse generator glitch filter length in number of clk_20_i cycles
g_pgen_gf_len
:
integer
:
=
4
;
-- Bicolor LED controller signals
g_bicolor_led_columns
:
integer
:
=
6
;
g_bicolor_led_lines
:
integer
:
=
2
...
...
@@ -80,26 +80,27 @@ package conv_common_gw_pkg is
clk_20_i
:
in
std_logic
;
clk_125_p_i
:
in
std_logic
;
clk_125_n_i
:
in
std_logic
;
-- Reset output signal, synchronous to 20 MHz clock
rst_n_o
:
out
std_logic
;
-- Glitch filter active-low enable signal
gf_en_n_i
:
in
std_logic
;
-- Channel enable
global_ch_oen_o
:
out
std_logic
;
pulse_front_oen_o
:
out
std_logic
;
pulse_rear_oen_o
:
out
std_logic
;
inv_oen_o
:
out
std_logic
;
-- Pulse inputs
pulse_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
pulse_o
:
out
std_logic_vector
(
g_nr_chans
-1
downto
0
);
-- Channel leds
-- 26 ms active-high pulse on pulse_o rising edge
led_pulse_o
:
out
std_logic_vector
(
g_nr_chans
-1
downto
0
);
-- I2C interface
scl_i
:
in
std_logic
;
scl_o
:
out
std_logic
;
...
...
@@ -107,17 +108,23 @@ package conv_common_gw_pkg is
sda_i
:
in
std_logic
;
sda_o
:
out
std_logic
;
sda_en_o
:
out
std_logic
;
-- I2C LED signals -- conect to a bicolor LED of choice
-- led_i2c_o pulses four times on I2C transfer
-- led_i2c_err_o reflects the state of SR.I2C_ERR bit in conv_regs
led_i2c_o
:
out
std_logic
;
led_i2c_err_o
:
out
std_logic
;
-- VME interface
vme_ga_i
:
in
std_logic_vector
(
4
downto
0
);
vme_gap_i
:
in
std_logic
;
-- SPI interface to on-board flash chip
flash_cs_n_o
:
out
std_logic
;
flash_sclk_o
:
out
std_logic
;
flash_mosi_o
:
out
std_logic
;
flash_miso_i
:
in
std_logic
;
-- PLL DACs
-- 20 MHz VCXO control
dac20_din_o
:
out
std_logic
;
...
...
@@ -127,7 +134,7 @@ package conv_common_gw_pkg is
dac125_din_o
:
out
std_logic
;
dac125_sclk_o
:
out
std_logic
;
dac125_sync_n_o
:
out
std_logic
;
-- SFP lines
sfp_los_i
:
in
std_logic
;
sfp_mod_def0_i
:
in
std_logic
;
...
...
@@ -136,13 +143,7 @@ package conv_common_gw_pkg is
sfp_mod_def2_b
:
inout
std_logic
;
sfp_tx_disable_o
:
out
std_logic
;
sfp_tx_fault_i
:
in
std_logic
;
-- I2C LED signals -- conect to a bicolor LED of choice
-- led_i2c_o pulses four times on I2C transfer
-- led_i2c_err_o reflects the state of SR.I2C_ERR bit in conv_regs
led_i2c_o
:
out
std_logic
;
led_i2c_err_o
:
out
std_logic
;
-- Switch inputs (for readout from converter status register)
sw_gp_i
:
in
std_logic_vector
(
7
downto
0
);
sw_multicast_i
:
in
std_logic_vector
(
3
downto
0
);
...
...
@@ -152,11 +153,11 @@ package conv_common_gw_pkg is
rtmp_i
:
in
std_logic_vector
(
2
downto
0
);
-- TTL, INV-TTL and rear-panel channel inputs, for reflection in line status register
line_
ttl_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_inv
ttl_i
:
in
std_logic_vector
(
3
downto
0
);
line_
front_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_inv
_i
:
in
std_logic_vector
(
3
downto
0
);
line_rear_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
line_rear_fs_i
:
in
std_logic_vector
(
g_nr_chans
-1
downto
0
);
-- Bicolor LED signals
bicolor_led_state_i
:
in
std_logic_vector
(
2
*
g_bicolor_led_columns
*
g_bicolor_led_lines
-1
downto
0
);
bicolor_led_col_o
:
out
std_logic_vector
(
g_bicolor_led_columns
-1
downto
0
);
...
...
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