SWE-350 TOTP Generator
Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
Loading...
Searching...
No Matches
address_map_arm.h
Go to the documentation of this file.
1
/* Memory */
2
#define DDR_BASE 0x00000000
3
#define DDR_SPAN 0x3FFFFFFF
4
#define A9_ONCHIP_BASE 0xFFFF0000
5
#define A9_ONCHIP_SPAN 0x0000FFFF
6
#define SDRAM_BASE 0xC0000000
7
#define SDRAM_SPAN 0x03FFFFFF
8
#define FPGA_ONCHIP_BASE 0xC8000000
9
#define FPGA_ONCHIP_SPAN 0x0003FFFF
10
#define FPGA_CHAR_BASE 0xC9000000
11
#define FPGA_CHAR_SPAN 0x00001FFF
12
13
/* Cyclone V FPGA devices */
14
#define LW_BRIDGE_BASE 0xFF200000
15
16
#define LEDR_BASE 0x00000000
17
#define HEX3_HEX0_BASE 0x00000020
18
#define HEX5_HEX4_BASE 0x00000030
19
#define SW_BASE 0x00000040
20
#define KEY_BASE 0x00000050
21
#define JP1_BASE 0x00000060
22
#define JP2_BASE 0x00000070
23
#define PS2_BASE 0x00000100
24
#define PS2_DUAL_BASE 0x00000108
25
#define JTAG_UART_BASE 0x00001000
26
#define JTAG_UART_2_BASE 0x00001008
27
#define IrDA_BASE 0x00001020
28
#define TIMER0_BASE 0x00002000
29
#define TIMER1_BASE 0x00002020
30
#define AV_CONFIG_BASE 0x00003000
31
#define PIXEL_BUF_CTRL_BASE 0x00003020
32
#define CHAR_BUF_CTRL_BASE 0x00003030
33
#define AUDIO_BASE 0x00003040
34
// Audio Core Registers
35
#define FIFOSPACE 1
// word offset
36
#define LDATA 2
// word offset
37
#define RDATA 3
// word offset
38
#define VIDEO_IN_BASE 0x00003060
39
#define ADC_BASE 0x00004000
40
41
#define LW_BRIDGE_SPAN 0x00005000
42
43
/* ARM Peripherals */
44
#define I2C0_BASE 0xFFC04000
// base
45
#define I2C0_CON 0x00000000
// word offset
46
#define I2C0_TAR 0x00000001
// word offset
47
#define I2C0_DATA_CMD 0x00000004
// word offset
48
#define I2C0_FS_SCL_HCNT 0x00000007
// word offset
49
#define I2C0_FS_SCL_LCNT 0x00000008
// word offset
50
#define I2C0_ENABLE 0x0000001B
// word offset
51
#define I2C0_RXFLR 0x0000001E
// word offset
52
#define I2C0_ENABLE_STATUS 0x00000027
// word offset
53
#define I2C0_SPAN 0x00000100
// span
54
55
/* Cyclone V HPS devices */
56
#define HPS_BRIDGE_BASE 0xFF700000
// base
57
#define HPS_GPIO0_BASE 0x00008000
// word offset
58
#define HPS_GPIO1_BASE 0x00009000
59
#define HPS_GPIO2_BASE 0x0000A000
60
#define I2C1_BASE 0x00505000
61
#define I2C2_BASE 0x00506000
62
#define I2C3_BASE 0x00507000
63
#define HPS_TIMER0_BASE 0x00508000
64
#define HPS_TIMER1_BASE 0x00509000
65
#define HPS_TIMER2_BASE 0x00600000
66
#define HPS_TIMER3_BASE 0x00601000
67
#define HPS_RSTMGR 0x00605000
68
#define HPS_RSTMGR_PREMODRST 0x00605014
69
#define FPGA_BRIDGE 0x0060501C
70
71
#define HPS_BRIDGE_SPAN 0x006FFFFF
// span
72
73
#define PIN_MUX 0xFFD08400
// word offset
74
#define CLK_MGR 0xFFD04000
75
76
#define SPIM0_BASE 0xFFF00000
// base
77
#define SPIM0_SR 0x00000028
// word offset
78
#define SPIM0_DR 0x00000060
79
#define SPIM0_SPAN 0x00000100
// span
80
81
82
/* ARM A9 MPCORE devices */
83
#define PERIPH_BASE 0xFFFEC000
// base address of peripheral devices
84
#define MPCORE_PRIV_TIMER 0xFFFEC600
// PERIPH_BASE + 0x0600
85
86
/* Interrupt controller (GIC) CPU interface(s) */
87
#define MPCORE_GIC_CPUIF 0xFFFEC100
// PERIPH_BASE + 0x100
88
#define ICCICR 0x00
// offset to CPU interface control reg
89
#define ICCPMR 0x04
// offset to interrupt priority mask reg
90
#define ICCIAR 0x0C
// offset to interrupt acknowledge reg
91
#define ICCEOIR 0x10
// offset to end of interrupt reg
92
/* Interrupt controller (GIC) distributor interface(s) */
93
#define MPCORE_GIC_DIST 0xFFFED000
// PERIPH_BASE + 0x1000
94
#define ICDDCR 0x00
// offset to distributor control reg
95
#define ICDISER 0x100
// offset to interrupt set-enable regs
96
#define ICDICER 0x180
// offset to interrupt clear-enable regs
97
#define ICDIPTR 0x800
// offset to interrupt processor targets regs
98
#define ICDICFR 0xC00
// offset to interrupt configuration regs
99
100
#define SYSMGR_BASE 0xFFD08000
// base
101
#define SYSMGR_GENERALIO7 0x00000127
// word offset
102
/* GENERALIO7 (trace_d6):
103
0 : Pin is connected to GPIO/LoanIO number 55.
104
1 : Pin is connected to Peripheral signal I2C0.SDA.
105
2 : Pin is connected to Peripheral signal SPIS1.SS0.
106
3 : Pin is connected to Peripheral signal TRACE.D6. */
107
#define SYSMGR_GENERALIO8 0x00000128
// word offset
108
/* GENERALIO8 (trace_d7):
109
0 : Pin is connected to GPIO/LoanIO number 56.
110
1 : Pin is connected to Peripheral signal I2C0.SCL.
111
2 : Pin is connected to Peripheral signal SPIS1.MISO.
112
3 : Pin is connected to Peripheral signal TRACE.D7. */
113
#define SYSMGR_I2C0USEFPGA 0x000001C1
114
/* I2C0USEFPGA:
115
0 : I2C0 uses HPS Pins.
116
1 : I2C0 uses the FPGA Inteface. */
117
#define SYSMGR_SPAN 0x00000800
// base
118
HPS-incrementLEDS
address_map_arm.h
Generated by
1.12.0