URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1097 to Rev 1098
- ↔ Reverse comparison
Rev 1097 → Rev 1098
/trunk/or1ksim/cuc/cuc.h
92,7 → 92,7
# define MAX(x,y) ((x) > (y) ? (x) : (y)) |
#endif |
|
#define log(x...) fprintf (flog, x) |
#define log(x...) {fprintf (flog, x); fflush (flog); } |
|
#define cucdebug(x,s...) {if ((x) <= cuc_debug) PRINTF (s);} |
|
/trunk/or1ksim/cuc/verilog.c
222,8 → 222,8
} |
|
/* output header */ |
GEN ("/* %s -- generated by OpenRISC Custom Unit Compiler\n", tmp); |
GEN (" (C) 2002 OpenCores http://www.opencores.org/\n"); |
GEN ("/* %s -- generated by FLEXelerator\n", tmp); |
GEN (" (C) 2002 Flextronics http://www.flextronics.com/\n"); |
GEN (" function \"%s\"\n", funcname); |
GEN (" at %08x - %08x\n", f->start_addr, f->end_addr); |
GEN (" num BBs %i */\n\n", f->num_bb); |
525,13 → 525,16
} |
|
if (nstores) { |
int cur_store = 0; |
int cur_store; |
GEN ("\n/* Memory stores */\n"); |
GEN ("always @("); |
GEN ("always @(s_stb"); |
for (i = 0; i < f->nmsched; i++) |
if (f->mtype[i] & MT_STORE) { |
char t[30]; |
GEN ("%s%s", cur_store++ ? " or " : "", print_op_v (f, t, f->msched[i], 0)); |
unsigned long opt = f->INSN(ref).opt[j]; |
if ((opt & ~OPT_DEST) != OPT_CONST) { |
GEN (" or %s", print_op_v (f, t, f->msched[i], 0)); |
} |
} |
|
cur_store = 0; |
731,8 → 734,8
} |
|
/* output header */ |
GEN ("/* %s -- generated by OpenRISC Custom Unit Compiler\n", tmp); |
GEN (" (C) 2002 OpenCores http://www.opencores.org/ */\n\n"); |
GEN ("/* %s -- generated by FLEXelerator\n", tmp); |
GEN (" (C) 2002 Flextronics http://www.flextronics.com/ */\n\n"); |
GEN ("/* Includes %i functions:", nrf); |
for (i = 0; i < nfuncs; i++) if (f[i]) |
GEN ("\n%s", prof_func[i].name); |
/trunk/or1ksim/cuc/cuc.c
697,6 → 697,14
if (func[i] && func_v[i]) generate_function (func[i], prof_func[i].name, filename_cut); |
generate_main (prof_nfuncs, func, filename_cut); |
|
/* list command */ |
} else if (strcmp (tmp1, "l") == 0 || strcmp (tmp1, "list") == 0) { |
/* check for function dependencies */ |
for (i = 0; i < prof_nfuncs; i++) |
if (func_v[i]) { |
PRINTF ("%s\n", prof_func[j].name); |
} |
|
/* selectall command */ |
} else if (strcmp (tmp1, "sa") == 0 || strcmp (tmp1, "selectall") == 0) { |
char tmp[50], ch; |
803,6 → 811,7
PRINTF (" s | select func [option] selects an option/function\n"); |
PRINTF (" u | unselect func [option] unselects an option/function\n"); |
PRINTF (" g | generate generates verilog file\n"); |
PRINTF (" l | list displays selected functions\n"); |
} |
} |
|
/trunk/or1ksim/peripheral/atadevice.h
137,6 → 137,7
unsigned short dbuf[4096]; |
unsigned short *dbuf_ptr; |
unsigned short dbuf_cnt; |
unsigned short *dbuf_ptr; |
|
/* current statemachine state */ |
int state; |
/trunk/or1ksim/sim-config.c
64,6 → 64,8
config.sim.spr_log = 0; |
strcpy (config.sim.exe_log_fn, "executed.log"); |
strcpy (config.sim.spr_log_fn, "spr.log"); |
config.sim.profile = 0; |
config.sim.mprofile = 0; |
|
config.sim.debug = 0; |
config.sim.verbose = 1; |