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

Subversion Repositories ion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /ion/trunk/src/common
    from Rev 184 to Rev 229
    Reverse comparison

Rev 184 → Rev 229

/libsoc/src/hw.h
13,8 → 13,8
 
#define UART_TX (0x20000000) /**< Addr of TX buffer */
#define UART_RX (0x20000000) /**< Addr of RX buffer */
#define UART_STATUS (0x20000020) /**< Addr of status register */
#define UART_RXRDY_MASK (0x00000001) /**< Flag mask for 'RX ready' */
#define UART_TXRDY_MASK (0x00000002) /**< Flag mask for 'TX ready' */
#define UART_STATUS (0x20000004) /**< Addr of status register */
#define UART_RXRDY_MASK (0x00000002) /**< Flag mask for 'RX ready' */
#define UART_TXRDY_MASK (0x00000001) /**< Flag mask for 'TX ready' */
 
#endif // HW_H_INCLUDED
/libsoc/src/hw_ion_mpu.c
27,12 → 27,12
/** Replacement for the standard C library getchar. */
int getchar(void){
uint32_t uart;
uint8_t c;
while(1){
uart = *((volatile uint32_t *)UART_STATUS);
if(uart & UART_RXRDY_MASK) break;
}
uart = *((volatile uint32_t *)UART_RX);
uart = (uart >> 24) & 0x0ff;
return (int)uart;
c = *((volatile uint8_t *)UART_RX);
return (int)c;
}
/makefile
40,7 → 40,6
LD = $(BIN_MIPS)/mips-sde-elf-ld
DUMP = $(BIN_MIPS)/mips-sde-elf-objdump
COPY = $(BIN_MIPS)/mips-sde-elf-objcopy
TO_VHDL = python ../bin2hdl.py
 
else
#**** Customize for Linux
54,15 → 53,19
LD = $(BIN_MIPS)/mips-unknown-linux-uclibc-ld
DUMP = $(BIN_MIPS)/mips-unknown-linux-uclibc-objdump
COPY = $(BIN_MIPS)/mips-unknown-linux-uclibc-objcopy
TO_VHDL = python ../bin2hdl.py
 
endif
 
### VHDL source file manipulation tools ########################################
ION_TOOLS = ../../tools
TO_VHDL = python $(ION_TOOLS)/bin2hdl/bin2hdl.py
VHDL_OBJ_PKG = python $(ION_TOOLS)/build_pkg/build_pkg.py -t $(ION_TOOLS)/build_pkg/templates
 
### Default system parameters -- to be replaced in application makefile ########
 
# 'CODE_BRAM' is meant to be a small BRAM (2 to 4KB) used for bootstrapping.
# 'DATA_BRAM' is a small BRAM connected to the data ports, used for debugging.
# 'XRAM' is meant to be the main external RAM, either SRAM or SDRAM.
# 'XRAM' is meant to be external SRAM
 
 
# Default location of code BRAM is on the reset vector address
73,7 → 76,7
DATA_BRAM_SIZE = 256
# Default address of BRAM -- used in some simulation-only tests, see makefiles
DATA_BRAM_ADDRESS = 0x10000
# Default size of data external RAM (XRAM) in 32-bit words (for simulation)
# Default size of data external SRAM (XRAM) in 16-bit words (for simulation)
XRAM_SIZE = 2048
# Default address of XRAM
XRAM_ADDRESS = 0x80000000
93,7 → 96,7
 
### Build options -- to be replaced in application makefile ####################
 
# Don't use gcc builtin functions, and try to target MIPS-I architecture
# Don't use gcc builtin functions, and try to target MIPS-I architecture.
# This will prevent usage of unimplemented opcodes but will insert nops after
# load instructions, which Ion does not need.
# (See comment above about -G0 flag)

powered by: WebSVN 2.1.0

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