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

Subversion Repositories potato

[/] [potato/] [trunk/] [benchmarks/] [platform.h] - Blame information for rev 17

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 13 skordal
// The Potato Processor Benchmark Applications
2
// (c) Kristian Klomsten Skordal 2015 <kristian.skordal@wafflemail.net>
3
// Report bugs and issues on <http://opencores.org/project,potato,bugtracker>
4
 
5
// This file contains various platform details. The default defines in this file
6
// correspond to the "official" test platform, the Potato SoC for the Nexys4 board.
7
 
8
#ifndef PLATFORM_H
9
#define PLATFORM_H
10
 
11
// Macro for using the addresses below in C code:
12
#define IO_ADDRESS(x)   ((volatile void *) x)
13
 
14
// Base addresses for the various peripherals in the system:
15
#define IMEM_BASE       0x00000000
16
#define DMEM_BASE       0x00002000
17
#define GPIO1_BASE      0x00004000 
18
#define GPIO2_BASE      0x00004800
19
#define UART_BASE       0x00005000
20
#define TIMER_BASE      0x00005800
21
 
22
// IRQs:
23
#define EXTERNAL_IRQ    0
24
#define TIMER_IRQ       5
25
 
26
// GPIO register offsets:
27
#define GPIO_INPUT      0
28
#define GPIO_OUTPUT     4
29
#define GPIO_DIR        8
30
 
31
// UART register offsets:
32
#define UART_TX         0
33
#define UART_RX         4
34
#define UART_STATUS     8
35
 
36
// Timer register offsets:
37
#define TIMER_CTRL      0
38
#define TIMER_COMPARE   4
39
#define TIMER_COUNTER   8
40
 
41
// Timer control register bits:
42
#define TIMER_CTRL_RUN          0
43
#define TIMER_CTRL_CLEAR        1
44
 
45
#endif
46
 

powered by: WebSVN 2.1.0

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