URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 51 |
Rev 52 |
Line 72... |
Line 72... |
void printSwitches();
|
void printSwitches();
|
|
|
// Method to print out the usage for each option
|
// Method to print out the usage for each option
|
void printUsage();
|
void printUsage();
|
|
|
|
// Method to dump simulation's RAM contents at finish
|
|
void memdump();
|
|
|
|
|
// The ports
|
// The ports
|
sc_in<bool> clk;
|
sc_in<bool> clk;
|
|
|
private:
|
private:
|
|
|
#define DEFAULT_PROF_FILE "sim.profile"
|
#define DEFAULT_PROF_FILE "sim.profile"
|
|
#define DEFAULT_MEMDUMP_FILE "vorpsoc_ram.dump"
|
|
|
// Special NOP instructions
|
// Special NOP instructions
|
static const uint32_t NOP_NOP = 0x15000000; //!< Normal nop instruction
|
static const uint32_t NOP_NOP = 0x15000000; //!< Normal nop instruction
|
static const uint32_t NOP_EXIT = 0x15000001; //!< End of simulation
|
static const uint32_t NOP_EXIT = 0x15000001; //!< End of simulation
|
static const uint32_t NOP_REPORT = 0x15000002; //!< Simple report
|
static const uint32_t NOP_REPORT = 0x15000002; //!< Simple report
|
Line 89... |
Line 94... |
static const uint32_t NOP_PUTC = 0x15000004; //!< Putc instruction
|
static const uint32_t NOP_PUTC = 0x15000004; //!< Putc instruction
|
|
|
// Variables for processor status output
|
// Variables for processor status output
|
ofstream statusFile;
|
ofstream statusFile;
|
ofstream profileFile;
|
ofstream profileFile;
|
|
int profiling_enabled;
|
int logging_enabled;
|
int logging_enabled;
|
int exit_perf_summary_enabled;
|
int exit_perf_summary_enabled;
|
int insn_count;
|
int insn_count;
|
long long cycle_count;
|
long long cycle_count;
|
|
ofstream memdumpFile;
|
|
string memdumpFileName;
|
|
int do_memdump, memdump_start_addr, memdump_end_addr;
|
|
|
//! Time measurement variable - for calculating performance of the sim
|
//! Time measurement variable - for calculating performance of the sim
|
clock_t start;
|
clock_t start;
|
|
|
//! The accessor for the Orpsoc instance
|
//! The accessor for the Orpsoc instance
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.