|
4 | 4 | -- 20180713 JB Change adress definition for GBT register after change the Avalon |
5 | 5 | -- component type |
6 | 6 | -- Add adress definition for add_gbt_wrapper_test_control = x"0000_0008" |
| 7 | +-------------------------------------------------------------------------------------------- |
| 8 | +-- NOTE: Register assignment should keep the base address on the left of the + operator |
| 9 | +-- and the extension on the left: e.g. :=add_base+X"0000_0000"; |
| 10 | + |
7 | 11 |
|
8 | 12 | library ieee; |
9 | 13 | use ieee.std_logic_1164.ALL; |
@@ -93,12 +97,12 @@ constant add_gbt_sc : unsigned(31 downto 0):=X"00F0_0000"; |
93 | 97 | ------------------------------------------------------------------------------- |
94 | 98 | -- Redaout protocol address tables |
95 | 99 | ------------------------------------------------------------------------------- |
96 | | -constant add_ro_prot_conf_reg : unsigned(31 downto 0):=X"0000_0000"+add_ro_protocol_base; |
97 | | -constant add_ro_prot_check_mask : unsigned(31 downto 0):=X"0000_0004"+add_ro_protocol_base; |
98 | | -constant add_ro_prot_alloc_fail : unsigned(31 downto 0):=X"0000_0008"+add_ro_protocol_base; |
99 | | -constant add_ro_prot_ttc_linkerr : unsigned(31 downto 0):=X"0000_000C"+add_ro_protocol_base; |
100 | | -constant add_ro_prot_nack_dly_reg : unsigned(31 downto 0):=X"0000_0010"+add_ro_protocol_base; |
101 | | -constant add_ro_prot_system_id : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0014"; |
| 100 | +constant add_ro_prot_conf_reg : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0000"; |
| 101 | +constant add_ro_prot_check_mask : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0004"; |
| 102 | +constant add_ro_prot_alloc_fail : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0008"; |
| 103 | +constant add_ro_prot_ttc_linkerr : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_000C"; |
| 104 | +constant add_ro_prot_nack_dly_reg : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0010"; |
| 105 | +constant add_ro_prot_system_id : unsigned(31 downto 0):=add_ro_protocol_base+X"0000_0014"; |
102 | 106 |
|
103 | 107 | ------------------------------------------------------------------------------- |
104 | 108 | -- GBT address tables |
@@ -218,6 +222,17 @@ constant add_pon_wrapper_tx : unsigned(31 downto 0):=add_ttc_onu+X"0000_6000"; |
218 | 222 | constant add_onu_user_logic : unsigned(31 downto 0):=add_ttc_onu+X"0000_A000"; |
219 | 223 | constant add_onu_freq_meas : unsigned(31 downto 0):=add_ttc_onu+X"0000_E000"; |
220 | 224 |
|
| 225 | +-- ONU register bank |
| 226 | +constant add_onu_mode : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0000"; |
| 227 | +constant add_onu_HB_offset : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0004"; |
| 228 | +constant add_onu_offset_tdm_sfp_en : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0008"; |
| 229 | +constant add_onu_fec_counters : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_000C"; |
| 230 | +constant add_onu_fec_stickys : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0010"; |
| 231 | +constant add_onu_mgt_stickys : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0014"; |
| 232 | +constant add_onu_interrupts : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0018"; |
| 233 | +constant add_onu_i2cmast_ctrl : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0034"; |
| 234 | +constant add_onu_i2cmast_stat : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0038"; |
| 235 | +constant add_onu_clk_phase_ctrl : unsigned(31 downto 0):=add_pon_wrapper_reg+X"0000_0048"; |
221 | 236 |
|
222 | 237 | -- Pattern player |
223 | 238 | constant add_patplayer_cfg : unsigned(31 downto 0):=add_ttc_patplayer+X"0000_0000"; |
@@ -252,6 +267,7 @@ constant add_ctp_emu_hcdiv : unsigned(31 downto 0):=add_ctp_emu_core |
252 | 267 | constant add_ctp_emu_userbits : unsigned(31 downto 0):=add_ctp_emu_core+X"0000_001C"; |
253 | 268 | constant add_ctp_emu_caldiv : unsigned(31 downto 0):=add_ctp_emu_core+X"0000_0020"; |
254 | 269 | constant add_ctp_emu_fbct : unsigned(31 downto 0):=add_ctp_emu_core+X"0000_0024"; |
| 270 | +constant add_ctp_emu_orbit_init : unsigned(31 downto 0):=add_ctp_emu_core+X"0000_0028"; |
255 | 271 |
|
256 | 272 |
|
257 | 273 | ------------------------------------------------------------------------------- |
|
0 commit comments