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

Subversion Repositories openrisc

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

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

Rev 6 Rev 44
Line 33... Line 33...
#include <stdint.h>
#include <stdint.h>
 
 
class Vorpsoc_top;
class Vorpsoc_top;
class Vorpsoc_top_orpsoc_top;
class Vorpsoc_top_orpsoc_top;
class Vorpsoc_top_or1200_ctrl;
class Vorpsoc_top_or1200_ctrl;
 
class Vorpsoc_top_or1200_except;
 
class Vorpsoc_top_or1200_sprs;
class Vorpsoc_top_or1200_dpram;
class Vorpsoc_top_or1200_dpram;
 
 
 
 
//! Access functions to the Verilator model
//! Access functions to the Verilator model
 
 
Line 51... Line 53...
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
 
 
  // Accessor functions
  // Accessor functions
  bool      getWbFreeze ();
  bool      getWbFreeze ();
  uint32_t  getWbInsn ();
  uint32_t  getWbInsn ();
 
  uint32_t  getWbPC ();
 
  bool  getExceptFlushpipe ();
 
  bool  getExDslot ();
 
  // Get a specific GPR from the register file
  uint32_t  getGpr (uint32_t regNum);
  uint32_t  getGpr (uint32_t regNum);
 
  //SPR accessessors
 
  uint32_t  getSprSr ();
 
  uint32_t  getSprEpcr ();
 
  uint32_t  getSprEear ();
 
  uint32_t  getSprEsr ();
 
 
private:
private:
 
 
  // Pointers to modules with accessor functions
  // Pointers to modules with accessor functions
  Vorpsoc_top_or1200_ctrl          *or1200_ctrl;
  Vorpsoc_top_or1200_ctrl          *or1200_ctrl;
 
  Vorpsoc_top_or1200_except     *or1200_except;
 
  Vorpsoc_top_or1200_sprs       *or1200_sprs;
  Vorpsoc_top_or1200_dpram *rf_a;
  Vorpsoc_top_or1200_dpram *rf_a;
 
 
};      // OrpsocAccess ()
};      // OrpsocAccess ()
 
 
#endif  // ORPSOC_ACCESS__H
#endif  // ORPSOC_ACCESS__H

powered by: WebSVN 2.1.0

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