OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [socsim_plugin/] [fsev2.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2017 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Fast Search Engnine (FSE) black-box model.
6
 */
7
 
8
#ifndef __DEBUGGER_SOCSIM_PLUGIN_FSEV2_H__
9
#define __DEBUGGER_SOCSIM_PLUGIN_FSEV2_H__
10
 
11
#include "iclass.h"
12
#include "iservice.h"
13
#include "coreservices/imemop.h"
14
 
15
namespace debugger {
16
 
17
class FseV2 : public IService,
18
              public IMemoryOperation {
19
public:
20
    FseV2(const char *name);
21
 
22
    /** IMemoryOperation */
23
    virtual ETransStatus b_transport(Axi4TransactionType *trans);
24
 
25
private:
26
    static const int FSE2_CHAN_MAX = 32;
27
 
28
    struct fsev2_chan_fields {
29
        volatile uint32_t common;//prn, acc_ms, carr_steps, coh_ena
30
        volatile int32_t carr_nco_f0;
31
        volatile int32_t carr_nco_dlt;
32
        volatile int32_t carr_nco_letter;
33
        volatile uint32_t max;
34
        volatile uint32_t ind;
35
        volatile uint32_t noise;
36
        volatile int32_t dopler;
37
    };
38
 
39
    struct fsev2_map {
40
       fsev2_chan_fields chan[FSE2_CHAN_MAX];
41
 
42
       volatile uint32_t hw_id; // msec ram capacity and hw_id
43
       volatile uint32_t control;
44
       volatile uint32_t ms_marker;
45
       volatile uint32_t carr_nco_th;
46
       volatile uint32_t code_nco_th;
47
       volatile int32_t carr_nco_if;
48
       volatile uint32_t code_nco;
49
       uint32_t reserved;
50
    } regs_;
51
};
52
 
53
DECLARE_CLASS(FseV2)
54
 
55
}  // namespace debugger
56
 
57
#endif  // __DEBUGGER_SOCSIM_PLUGIN_FSEV2_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.