URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 860 |
Rev 882 |
Line 110... |
Line 110... |
(*pptmp)->size_mask = size_mask;
|
(*pptmp)->size_mask = size_mask;
|
(*pptmp)->granularity = granularity;
|
(*pptmp)->granularity = granularity;
|
(*pptmp)->readfunc = readfunc;
|
(*pptmp)->readfunc = readfunc;
|
(*pptmp)->writefunc = writefunc;
|
(*pptmp)->writefunc = writefunc;
|
(*pptmp)->log = 0;
|
(*pptmp)->log = 0;
|
(*pptmp)->delayr = 1;
|
(*pptmp)->delayr = 2;
|
(*pptmp)->delayw = 1;
|
(*pptmp)->delayw = 2;
|
(*pptmp)->next = NULL;
|
(*pptmp)->next = NULL;
|
}
|
}
|
|
|
/* Register read and write function for a memory area.
|
/* Register read and write function for a memory area.
|
Memory areas should be aligned. Memory area is rounded up to
|
Memory areas should be aligned. Memory area is rounded up to
|
Line 156... |
Line 156... |
return cur_area = ptmp;
|
return cur_area = ptmp;
|
}
|
}
|
return cur_area = NULL;
|
return cur_area = NULL;
|
}
|
}
|
|
|
|
/* Finds the memory area for the address and adjust the read and write delays for it. */
|
|
void adjust_rw_delay(unsigned long memaddr, unsigned long delayr, unsigned long delayw)
|
|
{
|
|
if (verify_memoryarea(memaddr)) {
|
|
cur_area->delayr = delayr;
|
|
cur_area->delayw = delayw;
|
|
}
|
|
}
|
|
|
inline unsigned long evalsim_mem32(unsigned long memaddr)
|
inline unsigned long evalsim_mem32(unsigned long memaddr)
|
{
|
{
|
unsigned long temp;
|
unsigned long temp;
|
|
|
if (verify_memoryarea(memaddr)) {
|
if (verify_memoryarea(memaddr)) {
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.