URL
https://opencores.org/ocsvn/mlite/mlite/trunk
[/] [mlite/] [trunk/] [tools/] [ddr_init.c] - Diff between revs 268 and 336
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 268 |
Rev 336 |
Line 11... |
Line 11... |
*--------------------------------------------------------------------*/
|
*--------------------------------------------------------------------*/
|
#define DDR_BASE 0x10000000
|
#define DDR_BASE 0x10000000
|
#define MemoryRead(A) (*(volatile int*)(A))
|
#define MemoryRead(A) (*(volatile int*)(A))
|
#define MemoryWrite(A,V) *(volatile int*)(A)=(V)
|
#define MemoryWrite(A,V) *(volatile int*)(A)=(V)
|
|
|
extern void putchar(int value);
|
extern int putchar(int value);
|
extern int puts(const char *string);
|
extern int puts(const char *string);
|
extern void print_hex(unsigned long num);
|
extern void print_hex(unsigned long num);
|
|
|
//SD_A <= address_reg(25 downto 13); --address row
|
//SD_A <= address_reg(25 downto 13); --address row
|
//SD_BA <= address_reg(12 downto 11); --bank_address
|
//SD_BA <= address_reg(12 downto 11); --bank_address
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.