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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [sysc/] [include/] [Or1200MonitorSC.h] - Diff between revs 44 and 49

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 44 Rev 49
Line 49... Line 49...
{
{
public:
public:
 
 
  // Constructor
  // Constructor
  Or1200MonitorSC (sc_core::sc_module_name  name,
  Or1200MonitorSC (sc_core::sc_module_name  name,
                   OrpsocAccess            *_accessor);
                   OrpsocAccess            *_accessor,
 
                   int argc,
 
                   char *argv[]);
 
 
  // Method to check instructions
  // Method to check instructions
  void  checkInstruction();
  void  checkInstruction();
 
 
  // Methods to setup and output state of processor to a file
  // Methods to setup and output state of processor to a file
  void init_displayState(int argc,char *argv[]);
 
  void displayState();
  void displayState();
 
 
 
  // Function to calculate performance of the sim
 
  void perfSummary();
 
 
 
  // Print out the command-line switches for this module's options  
 
  void printSwitches();
 
 
 
  // Print out the usage for each option
 
  void printUsage();
 
 
  // The ports
  // The ports
  sc_in<bool>   clk;
  sc_in<bool>   clk;
 
 
private:
private:
 
 
  // Function to calculate performance of the sim
 
  void perfSummary();
 
 
 
  // 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
  static const uint32_t NOP_PRINTF = 0x15000003;  //!< Simprintf instruction
  static const uint32_t NOP_PRINTF = 0x15000003;  //!< Simprintf instruction

powered by: WebSVN 2.1.0

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