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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [socsim_plugin/] [rfctrl.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      RF front-end black-box model.
6
 */
7
 
8
#ifndef __DEBUGGER_SOCSIM_PLUGIN_RFCTRL_H__
9
#define __DEBUGGER_SOCSIM_PLUGIN_RFCTRL_H__
10
 
11
#include "iclass.h"
12
#include "iservice.h"
13
#include "coreservices/imemop.h"
14
 
15
namespace debugger {
16
 
17
class RfController : public IService,
18
                     public IMemoryOperation {
19
public:
20
    RfController(const char *name);
21
    ~RfController();
22
 
23
    /** IService interface */
24
    virtual void postinitService();
25
 
26
    /** IMemoryOperation */
27
    virtual ETransStatus b_transport(Axi4TransactionType *trans);
28
 
29
private:
30
    struct rfctrl_map {
31
        volatile uint32_t conf1;                // 0x00
32
        volatile uint32_t conf2;                // 0x04
33
        volatile uint32_t conf3;                // 0x08/
34
        volatile uint32_t pllconf;              // 0x0C/
35
        volatile uint32_t div;          // 0x10
36
        volatile uint32_t fdiv;         // 0x14
37
        volatile uint32_t strm;         // 0x18
38
        volatile uint32_t clkdiv;               // 0x1C
39
        volatile uint32_t test1;                // 0x20
40
        volatile uint32_t test2;                // 0x24
41
        volatile uint32_t scale;                // 0x28
42
        volatile uint32_t run;              // 0x2C
43
        volatile uint32_t reserved1[3]; // 0x30,0x34,0x38
44
        volatile uint32_t rw_ant_status;// 0x3C
45
    } regs_;
46
};
47
 
48
DECLARE_CLASS(RfController)
49
 
50
}  // namespace debugger
51
 
52
#endif  // __DEBUGGER_SOCSIM_PLUGIN_RFCTRL_H__

powered by: WebSVN 2.1.0

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