OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_processor/] [mor1kx-3.1/] [sw/] [mor1kx/] [include/] [board.h] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 alirezamon
#ifndef _BOARD_H_
2
#define _BOARD_H_
3
 
4
#define IN_CLK                50000000 // Hz
5
//#define IN_CLK              32000000 // Hz
6
//#define IN_CLK              30000000 // HZ
7
//#define IN_CLK              24000000 // HZ
8
//#define IN_CLK              20000000 // HZ
9
//#define IN_CLK              18000000 // HZ
10
//#define IN_CLK              16000000 // HZ
11
 
12
 
13
//
14
// OR1200 tick timer period define
15
//
16
#define TICKS_PER_SEC   100
17
/*
18
 
19
//
20
// ROM bootloader
21
//
22
// Uncomment the appropriate bootloader define. This will effect the bootrom.S
23
// file, which is compiled and converted into Verilog for inclusion at
24
// synthesis time. See bootloader/bootloader.S for details on each option.
25
#ifndef PRELOAD_RAM
26
#define BOOTROM_SPI_FLASH
27
#define BOOTROM_SPI_FLASH_DELAY 1024
28
//#define BOOTROM_GOTO_RESET
29
//#define BOOTROM_LOOP_AT_ZERO
30
//#define BOOTROM_LOOP_IN_ROM
31
#else
32
#define BOOTROM_GOTO_RESET
33
#endif
34
 
35
// Address bootloader should start from in FLASH
36
// Offset 0x0b0000
37
#define BOOTROM_ADDR_BYTE2 0x0b
38
#define BOOTROM_ADDR_BYTE1 0x00
39
#define BOOTROM_ADDR_BYTE0 0x00
40
// Causes SPI bootloader to loop if SPI didn't give correct size of image
41
#define SPI_RETRY_IF_INSANE_SIZEWORD
42
 
43
 
44
//
45
// Defines for each core (memory map base, OR1200 interrupt line number, etc.)
46
//
47
#define SDRAM_BASE                 0x0
48
//#define MT48LC32M16A2 // 64MB SDRAM part
49
#define MT48LC16M16A2 // 32MB SDRAM part
50
//#define MT48LC4M16A2 // 8MB SDRAM part
51
 
52
#define FLASHROM_BASE       0xcf000000
53
#define FLASHROM_SIZE            0x100
54
 
55
#define GPIO_0_BASE         0x91000000
56
#define GPIO0_IRQ                    3
57
 
58
#define UART0_BASE          0x90000000
59
#define UART0_IRQ                    2
60
#define UART0_BAUD_RATE         115200
61
 
62
#define SPI0_BASE           0xb0000000
63
#define SPI0_IRQ                     6
64
 
65
#define SPI1_BASE           0xb1000000
66
#define SPI1_IRQ                     7
67
 
68
#define SPI2_BASE           0xb2000000
69
#define SPI2_IRQ                     8
70
 
71
#define I2C_0_BASE          0xa0000000
72
#define I2C_0_IRQ                   10
73
 
74
#define I2C_1_BASE          0xa1000000
75
#define I2C_1_IRQ                   11
76
 
77
#define I2C_2_BASE          0xa2000000
78
#define I2C_2_IRQ                   12
79
 
80
#define I2C_3_BASE          0xa3000000
81
#define I2C_3_IRQ                   13
82
 
83
#define USB0_BASE            0x9c000000
84
#define USB0_HOST_IRQ                20
85
#define USB0_SLAVE_IRQ               21
86
 
87
#define USB1_BASE            0x9d000000
88
#define USB1_HOST_IRQ                22
89
#define USB1_SLAVE_IRQ               23
90
 
91
#define ETH0_BASE            0x92000000
92
#define ETH0_IRQ                      4
93
 
94
#define ETH_MACADDR0               0x00
95
#define ETH_MACADDR1               0x12
96
#define ETH_MACADDR2               0x34
97
#define ETH_MACADDR3               0x56
98
#define ETH_MACADDR4               0x78
99
#define ETH_MACADDR5               0x9a
100
 
101
 
102
 
103
//
104
// UART driver initialisation
105
//
106
#define UART_NUM_CORES 1
107
 
108
#define UART_BASE_ADDRESSES_CSV                                         \
109
        UART0_BASE
110
 
111
#define UART_BAUD_RATES_CSV                                             \
112
        UART0_BAUD_RATE
113
 
114
//
115
// i2c_master_slave core driver configuration
116
//
117
 
118
#define I2C_MASTER_SLAVE_NUM_CORES 4
119
 
120
#define I2C_MASTER_SLAVE_BASE_ADDRESSES_CSV             \
121
        I2C_0_BASE, I2C_1_BASE, I2C_2_BASE,I2C_3_BASE
122
 
123
#define GPIO_NUM_CORES 1
124
#define GPIO_BASE_ADDRESSES_CSV GPIO_0_BASE
125
 
126
 
127
#define SPI_NUM_CORES 3
128
#define SPI_BASE_ADDRESSES_CSV SPI0_BASE, SPI1_BASE, SPI2_BASE
129
 
130
*/
131
 
132
#endif

powered by: WebSVN 2.1.0

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