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

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 233 to Rev 234
    Reverse comparison

Rev 233 → Rev 234

/trunk/or1ksim/toplevel.c
84,7 → 84,7
#endif /* no DEBUGMOD_OFF */
 
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.26 $";
const char rcsrev[] = "$Revision: 1.27 $";
 
/* Continuos run versus single step tracing switch. */
int cont_run;
313,7 → 313,8
int i;
if(config.random_mem) {
unsigned int val = 0;
int seed = time(NULL);
int seed = time(NULL);
int breakpoint = 0;
 
srandom(seed);
/* Print out the seed just in case we ever need to debug */
324,16 → 325,18
val = random();
if(random() > RAND_MAX/2)
val |= 0x80000000;
cur_area->writefunc(i + cur_area->start, val);
set_mem8(i + cur_area->start, val, &breakpoint);
}
} else if(config.pattern_mem) {
int breakpoint = 0;
for (cur_area = dev_list; cur_area; cur_area = cur_area->next)
for(i = 0; i < cur_area->size; i++)
cur_area->writefunc(i + cur_area->start, config.pattern_mem);
set_mem8(i + cur_area->start, config.pattern_mem, &breakpoint);
} else {
int breakpoint = 0;
for (cur_area = dev_list; cur_area; cur_area = cur_area->next)
for(i = 0; i < cur_area->size; i++)
cur_area->writefunc(i + cur_area->start, 0);
set_mem8(i + cur_area->start, 0, &breakpoint);
}
if(config.memory) {

powered by: WebSVN 2.1.0

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