GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
galileo_e1_dll_pll_veml_tracking_fpga.h
Go to the documentation of this file.
1 /*!
2  * \file galileo_e1_dll_pll_veml_tracking_fpga.h
3  * \brief Adapts a DLL+PLL VEML (Very Early Minus Late) tracking loop block
4  * to a TrackingInterface for Galileo E1 signals for the FPGA
5  * \author Marc Majoral, 2019. mmajoral(at)cttc.cat
6  *
7  * Code DLL + carrier PLL according to the algorithms described in:
8  * K.Borre, D.M.Akos, N.Bertelsen, P.Rinder, and S.H.Jensen,
9  * A Software-Defined GPS and Galileo Receiver. A Single-Frequency
10  * Approach, Birkhauser, 2007
11  *
12  * -----------------------------------------------------------------------------
13  *
14  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
15  *
16  * GNSS-SDR is a software defined Global Navigation
17  * Satellite Systems receiver
18  *
19  * This file is part of GNSS-SDR.
20  *
21  * SPDX-License-Identifier: GPL-3.0-or-later
22  *
23  * -----------------------------------------------------------------------------
24  */
25 
26 #ifndef GNSS_SDR_GALILEO_E1_DLL_PLL_VEML_TRACKING_FPGA_H
27 #define GNSS_SDR_GALILEO_E1_DLL_PLL_VEML_TRACKING_FPGA_H
28 
30 #include "tracking_interface.h"
31 #include <string>
32 
33 
35 
36 /*!
37  * \brief This class Adapts a DLL+PLL VEML (Very Early Minus Late) tracking
38  * loop block to a TrackingInterface for Galileo E1 signals
39  */
41 {
42 public:
43  /*!
44  * \brief Constructor
45  */
47  const ConfigurationInterface* configuration,
48  const std::string& role,
49  unsigned int in_streams,
50  unsigned int out_streams);
51 
52  /*!
53  * \brief Destructor
54  */
56 
57  /*!
58  * \brief Role
59  */
60  inline std::string role() override
61  {
62  return role_;
63  }
64 
65  /*!
66  * \brief Returns "Galileo_E1_DLL_PLL_VEML_Tracking_Fpga"
67  */
68  inline std::string implementation() override
69  {
70  return "Galileo_E1_DLL_PLL_VEML_Tracking_Fpga";
71  }
72 
73  /*!
74  * \brief Returns size of lv_16sc_t
75  */
76  size_t item_size() override
77  {
78  return sizeof(int16_t);
79  }
80 
81  /*!
82  * \brief Connect
83  */
84  void connect(gr::top_block_sptr top_block) override;
85 
86  /*!
87  * \brief Disconnect
88  */
89  void disconnect(gr::top_block_sptr top_block) override;
90 
91  /*!
92  * \brief Get left block
93  */
94  gr::basic_block_sptr get_left_block() override;
95 
96  /*!
97  * \brief Get right block
98  */
99  gr::basic_block_sptr get_right_block() override;
100 
101  /*!
102  * \brief Set tracking channel unique ID
103  */
104  void set_channel(unsigned int channel) override;
105 
106  /*!
107  * \brief Set acquisition/tracking common Gnss_Synchro object pointer
108  * to efficiently exchange synchronization data between acquisition and
109  * tracking blocks
110  */
111  void set_gnss_synchro(Gnss_Synchro* p_gnss_synchro) override;
112 
113  /*!
114  * \brief Start the tracking process in the FPGA
115  */
116  void start_tracking() override;
117 
118  /*!
119  * \brief Stop the tracking process in the FPGA
120  */
121  void stop_tracking() override;
122 
123 private:
124  // the following flags are FPGA-specific and they are using arrange the values of the local code in the way the FPGA
125  // expects. This arrangement is done in the initialisation to avoid consuming unnecessary clock cycles during tracking.
126  static const int32_t LOCAL_CODE_FPGA_ENABLE_WRITE_MEMORY = 0x0C000000; // flag that enables WE (Write Enable) of the local code FPGA
127  static const int32_t LOCAL_CODE_FPGA_CORRELATOR_SELECT_COUNT = 0x20000000; // flag that selects the writing of the pilot code in the FPGA (as opposed to the data code)
128 
129  dll_pll_veml_tracking_fpga_sptr tracking_fpga_sc;
130  uint32_t channel_;
131  std::string role_;
132  uint32_t in_streams_;
133  uint32_t out_streams_;
134  int32_t* d_ca_codes;
135  int32_t* d_data_codes;
136  bool d_track_pilot;
137 };
138 
139 
140 #endif // GNSS_SDR_GALILEO_E1_DLL_PLL_VEML_TRACKING_FPGA_H
std::string implementation() override
Returns "Galileo_E1_DLL_PLL_VEML_Tracking_Fpga".
void start_tracking() override
Start the tracking process in the FPGA.
gr::basic_block_sptr get_right_block() override
Get right block.
size_t item_size() override
Returns size of lv_16sc_t.
Implementation of a code DLL + carrier PLL tracking block using an FPGA.
virtual ~GalileoE1DllPllVemlTrackingFpga()
Destructor.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
void stop_tracking() override
Stop the tracking process in the FPGA.
This class Adapts a DLL+PLL VEML (Very Early Minus Late) tracking loop block to a TrackingInterface f...
This is the class that contains the information that is shared by the processing blocks.
Definition: gnss_synchro.h:33
This abstract class represents an interface to configuration parameters.
void disconnect(gr::top_block_sptr top_block) override
Disconnect.
gr::basic_block_sptr get_left_block() override
Get left block.
void set_channel(unsigned int channel) override
Set tracking channel unique ID.
void connect(gr::top_block_sptr top_block) override
Connect.
This abstract class represents an interface to a tracking block.
GalileoE1DllPllVemlTrackingFpga(const ConfigurationInterface *configuration, const std::string &role, unsigned int in_streams, unsigned int out_streams)
Constructor.
This class represents an interface to a tracking block.