URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 567 to Rev 568
- ↔ Reverse comparison
Rev 567 → Rev 568
/trunk/or1ksim/sim.cfg
35,6 → 35,10
supplying -f <filename.cfg> option when starting simulator. |
|
This file may contain (standard C) only comments - no // support. |
|
Configure files can also be included, using: |
|
include "file_name_to_include" |
|
Like normal configuration file, this file is divided in sections, |
where each section is described in detail also. |
49,7 → 53,6
which creates a device instance. |
*/ |
|
|
/* MEMORY SECTION |
|
This section specifies how is initial memory generated and which blocks |
/trunk/or1ksim/testbench/configure
1691,7 → 1691,7
fi |
fi |
|
CFLAGS="-Wall" |
CFLAGS="-Wall -g" |
|
COMPILE_OR1K=unknown |
|
/trunk/or1ksim/testbench/configure.in
46,7 → 46,7
dnl Compiler options. |
AC_PROG_GCC_TRADITIONAL |
dnl set -- $CFLAGS |
CFLAGS="-Wall" |
CFLAGS="-Wall -g" |
|
COMPILE_OR1K=unknown |
|
/trunk/or1ksim/sim-config.c
314,6 → 314,7
|
#if !FAST_SIM |
/* Forward declarations of functions */ |
void base_include (); |
void sim_clkcycle (); |
void change_device (); |
void end_device (); |
385,7 → 386,7
#define CPF_GLOBAL 4 /* Not part of the substructure (group) in config */ |
|
struct section sections[] = { |
{"?", 0}, /* 0 */ |
{"base", 0}, /* 0 */ |
{"mc", 0}, |
{"uart", 0}, |
{"dma", 0}, |
416,6 → 417,8
void *addr; |
int attr; |
} config_params[] = { |
{0, "include", "\"%s\"", base_include, (void *)(&tempS), 0}, |
|
{1, "enabled", "=%i", NULL, (void *)(&config.mc.enabled), 0}, |
{1, "baseaddr", "=0x%x", NULL, (void *)(&config.mc.baseaddr), 0}, |
{1, "POC", "=0x%x", NULL, (void *)(&config.mc.POC), 0}, |
563,6 → 566,11
current_device = -1; |
} |
|
void base_include () { |
read_script_file (tempS); |
section = 0; |
} |
|
void sim_clkcycle () { |
int len = strlen (tempS); |
int pos = len - 1; |