GR712RC unit tests 1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
mcal_reg.h
Go to the documentation of this file.
1
9
10namespace mcal
11{
12namespace reg
13{
14
15constexpr std::size_t sdram_memory_size = (64*1024*1024*4); // 256Bytes of SDRAM. Memory size in bytes.
16
17constexpr std::uint32_t mem_base_addr = 0x40000000;
18constexpr std::uint32_t mem_end_addr = mem_base_addr + sdram_memory_size;
19
20
21//FT Memory Controller
22constexpr std::uint32_t mem_config_register_base = 0x80000000UL;
23constexpr std::uint32_t mem_config_register_1 = mem_config_register_base;
24constexpr std::uint32_t mem_config_register_2 = mem_config_register_base + 0x00000004UL;
25constexpr std::uint32_t mem_config_register_3 = mem_config_register_base + 0x00000008UL;
26constexpr std::uint32_t mem_config_register_4 = mem_config_register_base + 0x8000000CUL;
27
28//GRGPIO port 1 registers
29constexpr std::uint32_t grgpio1_base_address = 0x80000900;
30
31//GRGPIO port 2 registers
32constexpr std::uint32_t grgpio2_base_address = 0x80000A00;
33
34//Emplear port_pin.
35
36
37constexpr std::uint32_t mem_cfg1_value = 0x1003c0ffUL;
38// SDRAM enable
39// SRAM disable
40constexpr std::uint32_t mem_cfg2_value = 0x8B606040UL;
41
42// Reed-Solomon EDA SRAM:off
43// RAM EDAC: on; PROM EDAC: on
44constexpr std::uint32_t mem_cfg3_value = 0x18184200UL;
45
46}
47}
constexpr std::uint32_t mem_config_register_4
Definition mcal_reg.h:24
constexpr std::uint32_t grgpio1_base_address
Definition mcal_reg.h:27
constexpr std::uint32_t mem_cfg3_value
Definition mcal_reg.h:43
constexpr std::uint32_t mem_cfg1_value
Definition mcal_reg.h:34
constexpr std::uint32_t mem_config_register_base
Definition mcal_reg.h:20
constexpr std::uint32_t mem_base_addr
Definition mcal_reg.h:16
constexpr std::uint32_t sdram_memory_size
Definition mcal_reg.h:15
constexpr std::uint32_t grgpio2_base_address
Definition mcal_reg.h:30
constexpr std::uint32_t mem_config_register_3
Definition mcal_reg.h:23
constexpr std::uint32_t mem_end_addr
Definition mcal_reg.h:17
constexpr std::uint32_t mem_config_register_2
Definition mcal_reg.h:22
constexpr std::uint32_t mem_cfg2_value
Definition mcal_reg.h:41
constexpr std::uint32_t mem_config_register_1
Definition mcal_reg.h:21