Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Oct 3, 2018
2 parents 05a5230 + 13e87a9 commit d05e561
Show file tree
Hide file tree
Showing 10 changed files with 2,357 additions and 1,013 deletions.
967 changes: 843 additions & 124 deletions core/common/include/hw/wb_slave_afc_timing_regs.h

Large diffs are not rendered by default.

195 changes: 117 additions & 78 deletions core/sm_io/include/sm_io_afc_timing_codes.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2014 LNLS (www.lnls.br)
* Author: Joao Brito <[email protected]>
*
Expand All @@ -14,83 +14,122 @@
#define AFC_TIMING_OPCODE_TYPE uint32_t
#define AFC_TIMING_OPCODE_SIZE (sizeof (AFC_TIMING_OPCODE_TYPE))

#define AFC_TIMING_OPCODE_SET_GET_LINK_STATUS 0
#define AFC_TIMING_NAME_SET_GET_LINK_STATUS "afc_timing_set_get_link_status"
#define AFC_TIMING_OPCODE_SET_GET_RXEN_STATUS 1
#define AFC_TIMING_NAME_SET_GET_RXEN_STATUS "afc_timing_set_get_rxen_status"
#define AFC_TIMING_OPCODE_SET_GET_REF_CLK_LOCKED 2
#define AFC_TIMING_NAME_SET_GET_REF_CLK_LOCKED "afc_timing_set_get_ref_clk_locked"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN0 3
#define AFC_TIMING_NAME_SET_GET_EVT_IN0 "afc_timing_set_get_evt_code_0"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN1 4
#define AFC_TIMING_NAME_SET_GET_EVT_IN1 "afc_timing_set_get_evt_code_1"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN2 5
#define AFC_TIMING_NAME_SET_GET_EVT_IN2 "afc_timing_set_get_evt_code_2"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN3 6
#define AFC_TIMING_NAME_SET_GET_EVT_IN3 "afc_timing_set_get_evt_code_3"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN4 7
#define AFC_TIMING_NAME_SET_GET_EVT_IN4 "afc_timing_set_get_evt_code_4"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN5 8
#define AFC_TIMING_NAME_SET_GET_EVT_IN5 "afc_timing_set_get_evt_code_5"
#define AFC_TIMING_OPCODE_SET_GET_EVT_IN6 9
#define AFC_TIMING_NAME_SET_GET_EVT_IN6 "afc_timing_set_get_evt_code_6"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY0 10
#define AFC_TIMING_NAME_SET_GET_EVT_DLY0 "afc_timing_set_get_evt_delay_0"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY1 11
#define AFC_TIMING_NAME_SET_GET_EVT_DLY1 "afc_timing_set_get_evt_delay_1"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY2 12
#define AFC_TIMING_NAME_SET_GET_EVT_DLY2 "afc_timing_set_get_evt_delay_2"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY3 13
#define AFC_TIMING_NAME_SET_GET_EVT_DLY3 "afc_timing_set_get_evt_delay_3"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY4 14
#define AFC_TIMING_NAME_SET_GET_EVT_DLY4 "afc_timing_set_get_evt_delay_4"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY5 15
#define AFC_TIMING_NAME_SET_GET_EVT_DLY5 "afc_timing_set_get_evt_delay_5"
#define AFC_TIMING_OPCODE_SET_GET_EVT_DLY6 16
#define AFC_TIMING_NAME_SET_GET_EVT_DLY6 "afc_timing_set_get_evt_delay_6"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT0 17
#define AFC_TIMING_NAME_SET_GET_EVT_WDT0 "afc_timing_set_get_evt_width_0"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT1 18
#define AFC_TIMING_NAME_SET_GET_EVT_WDT1 "afc_timing_set_get_evt_width_1"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT2 19
#define AFC_TIMING_NAME_SET_GET_EVT_WDT2 "afc_timing_set_get_evt_width_2"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT3 20
#define AFC_TIMING_NAME_SET_GET_EVT_WDT3 "afc_timing_set_get_evt_width_3"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT4 21
#define AFC_TIMING_NAME_SET_GET_EVT_WDT4 "afc_timing_set_get_evt_width_4"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT5 22
#define AFC_TIMING_NAME_SET_GET_EVT_WDT5 "afc_timing_set_get_evt_width_5"
#define AFC_TIMING_OPCODE_SET_GET_EVT_WDT6 23
#define AFC_TIMING_NAME_SET_GET_EVT_WDT6 "afc_timing_set_get_evt_width_6"
#define AFC_TIMING_OPCODE_SET_GET_FREQ_KP 24
#define AFC_TIMING_NAME_SET_GET_FREQ_KP "afc_timing_set_get_freq_kp"
#define AFC_TIMING_OPCODE_SET_GET_FREQ_KI 25
#define AFC_TIMING_NAME_SET_GET_FREQ_KI "afc_timing_set_get_freq_ki"
#define AFC_TIMING_OPCODE_SET_GET_PHASE_KP 26
#define AFC_TIMING_NAME_SET_GET_PHASE_KP "afc_timing_set_get_phase_kp"
#define AFC_TIMING_OPCODE_SET_GET_PHASE_KI 27
#define AFC_TIMING_NAME_SET_GET_PHASE_KI "afc_timing_set_get_phase_ki"
#define AFC_TIMING_OPCODE_SET_GET_PHASE_SET 28
#define AFC_TIMING_NAME_SET_GET_PHASE_SET "afc_timing_set_get_phase_set"
#define AFC_TIMING_OPCODE_SET_GET_AVG_EXPONENT 29
#define AFC_TIMING_NAME_SET_GET_AVG_EXPONENT "afc_timing_set_get_avg_exponent"
#define AFC_TIMING_OPCODE_SET_GET_RTM_RFREQ_HI 30
#define AFC_TIMING_NAME_SET_GET_RTM_RFREQ_HI "afc_timing_set_get_rtm_rfreq_hi"
#define AFC_TIMING_OPCODE_SET_GET_RTM_RFREQ_LO 31
#define AFC_TIMING_NAME_SET_GET_RTM_RFREQ_LO "afc_timing_set_get_rtm_rfreq_lo"
#define AFC_TIMING_OPCODE_SET_GET_RTM_N1 32
#define AFC_TIMING_NAME_SET_GET_RTM_N1 "afc_timing_set_get_rtm_n1"
#define AFC_TIMING_OPCODE_SET_GET_RTM_HS_DIV 33
#define AFC_TIMING_NAME_SET_GET_RTM_HS_DIV "afc_timing_set_get_rtm_hs_div"
#define AFC_TIMING_OPCODE_SET_GET_AFC_RFREQ_HI 34
#define AFC_TIMING_NAME_SET_GET_AFC_RFREQ_HI "afc_timing_set_get_afc_rfreq_hi"
#define AFC_TIMING_OPCODE_SET_GET_AFC_RFREQ_LO 35
#define AFC_TIMING_NAME_SET_GET_AFC_RFREQ_LO "afc_timing_set_get_afc_rfreq_lo"
#define AFC_TIMING_OPCODE_SET_GET_AFC_N1 36
#define AFC_TIMING_NAME_SET_GET_AFC_N1 "afc_timing_set_get_afc_n1"
#define AFC_TIMING_OPCODE_SET_GET_AFC_HS_DIV 37
#define AFC_TIMING_NAME_SET_GET_AFC_HS_DIV "afc_timing_set_get_afc_hs_div"
#define AFC_TIMING_OPCODE_END 38
#define AFC_TIMING_OPCODE_SET_GET_LINK_STATUS 0
#define AFC_TIMING_NAME_SET_GET_LINK_STATUS "afc_timing_set_get_link_status"
#define AFC_TIMING_OPCODE_SET_GET_RXEN_STATUS 1
#define AFC_TIMING_NAME_SET_GET_RXEN_STATUS "afc_timing_set_get_rxen_status"
#define AFC_TIMING_OPCODE_SET_GET_REF_CLK_LOCKED 2
#define AFC_TIMING_NAME_SET_GET_REF_CLK_LOCKED "afc_timing_set_get_ref_clk_locked"
#define AFC_TIMING_OPCODE_SET_GET_EVREN 3
#define AFC_TIMING_NAME_SET_GET_EVREN "afc_timing_set_get_evren"
#define AFC_TIMING_OPCODE_SET_GET_ALIVE 4
#define AFC_TIMING_NAME_SET_GET_ALIVE "afc_timing_set_get_alive"
#define AFC_TIMING_OPCODE_SET_GET_AMC_EN 5
#define AFC_TIMING_NAME_SET_GET_AMC_EN "afc_timing_set_get_amc_en"
#define AFC_TIMING_OPCODE_SET_GET_AMC_POL 6
#define AFC_TIMING_NAME_SET_GET_AMC_POL "afc_timing_set_get_amc_pol"
#define AFC_TIMING_OPCODE_SET_GET_AMC_LOG 7
#define AFC_TIMING_NAME_SET_GET_AMC_LOG "afc_timing_set_get_amc_log"
#define AFC_TIMING_OPCODE_SET_GET_AMC_ITL 8
#define AFC_TIMING_NAME_SET_GET_AMC_ITL "afc_timing_set_get_amc_itl"
#define AFC_TIMING_OPCODE_SET_GET_AMC_SRC 9
#define AFC_TIMING_NAME_SET_GET_AMC_SRC "afc_timing_set_get_amc_src"
#define AFC_TIMING_OPCODE_SET_GET_AMC_DIR 10
#define AFC_TIMING_NAME_SET_GET_AMC_DIR "afc_timing_set_get_amc_dir"
#define AFC_TIMING_OPCODE_SET_GET_AMC_PULSES 11
#define AFC_TIMING_NAME_SET_GET_AMC_PULSES "afc_timing_set_get_amc_pulses"
#define AFC_TIMING_OPCODE_SET_GET_AMC_EVT 12
#define AFC_TIMING_NAME_SET_GET_AMC_EVT "afc_timing_set_get_amc_evt"
#define AFC_TIMING_OPCODE_SET_GET_AMC_DLY 13
#define AFC_TIMING_NAME_SET_GET_AMC_DLY "afc_timing_set_get_amc_dly"
#define AFC_TIMING_OPCODE_SET_GET_AMC_WDT 14
#define AFC_TIMING_NAME_SET_GET_AMC_WDT "afc_timing_set_get_amc_wdt"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_EN 15
#define AFC_TIMING_NAME_SET_GET_FMC1_EN "afc_timing_set_get_fmc1_en"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_POL 16
#define AFC_TIMING_NAME_SET_GET_FMC1_POL "afc_timing_set_get_fmc1_pol"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_LOG 17
#define AFC_TIMING_NAME_SET_GET_FMC1_LOG "afc_timing_set_get_fmc1_log"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_ITL 18
#define AFC_TIMING_NAME_SET_GET_FMC1_ITL "afc_timing_set_get_fmc1_itl"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_SRC 19
#define AFC_TIMING_NAME_SET_GET_FMC1_SRC "afc_timing_set_get_fmc1_src"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_DIR 20
#define AFC_TIMING_NAME_SET_GET_FMC1_DIR "afc_timing_set_get_fmc1_dir"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_PULSES 21
#define AFC_TIMING_NAME_SET_GET_FMC1_PULSES "afc_timing_set_get_fmc1_pulses"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_EVT 22
#define AFC_TIMING_NAME_SET_GET_FMC1_EVT "afc_timing_set_get_fmc1_evt"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_DLY 23
#define AFC_TIMING_NAME_SET_GET_FMC1_DLY "afc_timing_set_get_fmc1_dly"
#define AFC_TIMING_OPCODE_SET_GET_FMC1_WDT 24
#define AFC_TIMING_NAME_SET_GET_FMC1_WDT "afc_timing_set_get_fmc1_wdt"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_EN 25
#define AFC_TIMING_NAME_SET_GET_FMC2_EN "afc_timing_set_get_fmc2_en"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_POL 26
#define AFC_TIMING_NAME_SET_GET_FMC2_POL "afc_timing_set_get_fmc2_pol"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_LOG 27
#define AFC_TIMING_NAME_SET_GET_FMC2_LOG "afc_timing_set_get_fmc2_log"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_ITL 28
#define AFC_TIMING_NAME_SET_GET_FMC2_ITL "afc_timing_set_get_fmc2_itl"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_SRC 29
#define AFC_TIMING_NAME_SET_GET_FMC2_SRC "afc_timing_set_get_fmc2_src"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_DIR 30
#define AFC_TIMING_NAME_SET_GET_FMC2_DIR "afc_timing_set_get_fmc2_dir"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_PULSES 31
#define AFC_TIMING_NAME_SET_GET_FMC2_PULSES "afc_timing_set_get_fmc2_pulses"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_EVT 32
#define AFC_TIMING_NAME_SET_GET_FMC2_EVT "afc_timing_set_get_fmc2_evt"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_DLY 33
#define AFC_TIMING_NAME_SET_GET_FMC2_DLY "afc_timing_set_get_fmc2_dly"
#define AFC_TIMING_OPCODE_SET_GET_FMC2_WDT 34
#define AFC_TIMING_NAME_SET_GET_FMC2_WDT "afc_timing_set_get_fmc2_wdt"
#define AFC_TIMING_OPCODE_SET_GET_RTM_FREQ_KP 35
#define AFC_TIMING_NAME_SET_GET_RTM_FREQ_KP "afc_timing_set_get_rtm_freq_kp"
#define AFC_TIMING_OPCODE_SET_GET_RTM_FREQ_KI 36
#define AFC_TIMING_NAME_SET_GET_RTM_FREQ_KI "afc_timing_set_get_rtm_freq_ki"
#define AFC_TIMING_OPCODE_SET_GET_RTM_PHASE_KP 37
#define AFC_TIMING_NAME_SET_GET_RTM_PHASE_KP "afc_timing_set_get_rtm_phase_kp"
#define AFC_TIMING_OPCODE_SET_GET_RTM_PHASE_KI 38
#define AFC_TIMING_NAME_SET_GET_RTM_PHASE_KI "afc_timing_set_get_rtm_phase_ki"
#define AFC_TIMING_OPCODE_SET_GET_RTM_PHASE_SET 39
#define AFC_TIMING_NAME_SET_GET_RTM_PHASE_SET "afc_timing_set_get_rtm_phase_set"
#define AFC_TIMING_OPCODE_SET_GET_RTM_PHASE_NAVG 40
#define AFC_TIMING_NAME_SET_GET_RTM_PHASE_NAVG "afc_timing_set_get_rtm_phase_navg"
#define AFC_TIMING_OPCODE_SET_GET_RTM_PHASE_DIV_EXP 41
#define AFC_TIMING_NAME_SET_GET_RTM_PHASE_DIV_EXP "afc_timing_set_get_rtm_phase_div_exp"
#define AFC_TIMING_OPCODE_SET_GET_RTM_RFREQ_HI 42
#define AFC_TIMING_NAME_SET_GET_RTM_RFREQ_HI "afc_timing_set_get_rtm_rfreq_hi"
#define AFC_TIMING_OPCODE_SET_GET_RTM_RFREQ_LO 43
#define AFC_TIMING_NAME_SET_GET_RTM_RFREQ_LO "afc_timing_set_get_rtm_rfreq_lo"
#define AFC_TIMING_OPCODE_SET_GET_RTM_N1 44
#define AFC_TIMING_NAME_SET_GET_RTM_N1 "afc_timing_set_get_rtm_n1"
#define AFC_TIMING_OPCODE_SET_GET_RTM_HS_DIV 45
#define AFC_TIMING_NAME_SET_GET_RTM_HS_DIV "afc_timing_set_get_rtm_hs_div"
#define AFC_TIMING_OPCODE_SET_GET_AFC_FREQ_KP 46
#define AFC_TIMING_NAME_SET_GET_AFC_FREQ_KP "afc_timing_set_get_afc_freq_kp"
#define AFC_TIMING_OPCODE_SET_GET_AFC_FREQ_KI 47
#define AFC_TIMING_NAME_SET_GET_AFC_FREQ_KI "afc_timing_set_get_afc_freq_ki"
#define AFC_TIMING_OPCODE_SET_GET_AFC_PHASE_KP 48
#define AFC_TIMING_NAME_SET_GET_AFC_PHASE_KP "afc_timing_set_get_afc_phase_kp"
#define AFC_TIMING_OPCODE_SET_GET_AFC_PHASE_KI 49
#define AFC_TIMING_NAME_SET_GET_AFC_PHASE_KI "afc_timing_set_get_afc_phase_ki"
#define AFC_TIMING_OPCODE_SET_GET_AFC_PHASE_SET 50
#define AFC_TIMING_NAME_SET_GET_AFC_PHASE_SET "afc_timing_set_get_afc_phase_set"
#define AFC_TIMING_OPCODE_SET_GET_AFC_PHASE_NAVG 51
#define AFC_TIMING_NAME_SET_GET_AFC_PHASE_NAVG "afc_timing_set_get_afc_phase_navg"
#define AFC_TIMING_OPCODE_SET_GET_AFC_PHASE_DIV_EXP 52
#define AFC_TIMING_NAME_SET_GET_AFC_PHASE_DIV_EXP "afc_timing_set_get_afc_phase_div_exp"
#define AFC_TIMING_OPCODE_SET_GET_AFC_RFREQ_HI 53
#define AFC_TIMING_NAME_SET_GET_AFC_RFREQ_HI "afc_timing_set_get_afc_rfreq_hi"
#define AFC_TIMING_OPCODE_SET_GET_AFC_RFREQ_LO 54
#define AFC_TIMING_NAME_SET_GET_AFC_RFREQ_LO "afc_timing_set_get_afc_rfreq_lo"
#define AFC_TIMING_OPCODE_SET_GET_AFC_N1 55
#define AFC_TIMING_NAME_SET_GET_AFC_N1 "afc_timing_set_get_afc_n1"
#define AFC_TIMING_OPCODE_SET_GET_AFC_HS_DIV 56
#define AFC_TIMING_NAME_SET_GET_AFC_HS_DIV "afc_timing_set_get_afc_hs_div"

#define AFC_TIMING_OPCODE_END 57

#endif

Loading

0 comments on commit d05e561

Please sign in to comment.