-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplatform.h
More file actions
33 lines (26 loc) · 962 Bytes
/
platform.h
File metadata and controls
33 lines (26 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* The RISCY Processor - A simple RISC-V based processor for FPGAs
(c) Krishna Subramanian <https://github.com/mongrelgem>
*/
#ifndef PAEE_PLATFORM_H
#define PAEE_PLATFORM_H
// This file contains information about the platform that the PAEE is running
// on. The current version of the file contains information about the Arty-
// based "official" RISCY SoC.
// System clock frequency:
#define PLATFORM_SYSCLK_FREQ 50000000U
// Base addresses for peripherals:
#define PLATFORM_TIMER0_BASE 0xc0000000
#define PLATFORM_TIMER1_BASE 0xc0001000
#define PLATFORM_UART0_BASE 0xc0002000
#define PLATFORM_UART1_BASE 0xc0003000
#define PLATFORM_GPIO_BASE 0xc0004000
#define PLATFORM_ICERROR_BASE 0xc0005000
#define PLATFORM_PAEE_ROM_BASE 0xffff8000
#define PLATFORM_PAEE_RAM_BASE 0xffffc000
// Interrupts:
#define PLATFORM_IRQ_TIMER0 0
#define PLATFORM_IRQ_TIMER1 1
#define PLATFORM_IRQ_UART0 2
#define PLATFORM_IRQ_UART1 3
#define PLATFORM_IRQ_BUS_ERROR 4
#endif