OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

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

Rev 439 Rev 462
Line 24... Line 24...
 
 
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
 
 
// $Id: OrpsocAccess.h 303 2009-02-16 11:20:17Z jeremy $
// $Id: OrpsocAccess.h 303 2009-02-16 11:20:17Z jeremy $
 
 
 
 
#ifndef ORPSOC_ACCESS__H
#ifndef ORPSOC_ACCESS__H
#define ORPSOC_ACCESS__H
#define ORPSOC_ACCESS__H
 
 
#include <stdint.h>
#include <stdint.h>
 
 
Line 44... Line 43...
//class Vorpsoc_top_wb_ram_b3__D20_A17_M800000;
//class Vorpsoc_top_wb_ram_b3__D20_A17_M800000;
class Vorpsoc_top_ram_wb_b3__pi3;
class Vorpsoc_top_ram_wb_b3__pi3;
// SoC Arbiter class - will also change if any modifications to bus architecture
// SoC Arbiter class - will also change if any modifications to bus architecture
//class Vorpsoc_top_wb_conbus_top__pi1;
//class Vorpsoc_top_wb_conbus_top__pi1;
 
 
 
 
//! Access functions to the Verilator model
//! Access functions to the Verilator model
 
 
//! This class encapsulates access to the Verilator model, allowing other
//! This class encapsulates access to the Verilator model, allowing other
//! Classes to access model state, without needing to be built within the
//! Classes to access model state, without needing to be built within the
//! Verilator environment.
//! Verilator environment.
class OrpsocAccess
class OrpsocAccess {
{
 
public:
public:
 
 
  // Constructor
  // Constructor
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
 
 
Line 71... Line 68...
  bool  getExceptFlushpipe ();
  bool  getExceptFlushpipe ();
  bool  getExDslot ();
  bool  getExDslot ();
  uint32_t getExceptType();
  uint32_t getExceptType();
  // Get a specific GPR from the register file
  // Get a specific GPR from the register file
  uint32_t  getGpr (uint32_t regNum);
  uint32_t  getGpr (uint32_t regNum);
 
        void setGpr(uint32_t regNum, uint32_t value);
  //SPR accessessors
  //SPR accessessors
  uint32_t  getSprSr ();
  uint32_t  getSprSr ();
  uint32_t  getSprEpcr ();
  uint32_t  getSprEpcr ();
  uint32_t  getSprEear ();
  uint32_t  getSprEear ();
  uint32_t  getSprEsr ();
  uint32_t  getSprEsr ();
Line 100... Line 98...
  bool  getWbArbMastStbI (uint32_t mast_num);
  bool  getWbArbMastStbI (uint32_t mast_num);
  bool  getWbArbMastAckO (uint32_t mast_num);
  bool  getWbArbMastAckO (uint32_t mast_num);
  bool  getWbArbMastErrO (uint32_t mast_num);
  bool  getWbArbMastErrO (uint32_t mast_num);
  */
  */
 
 
 
 
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_except     *or1200_except;

powered by: WebSVN 2.1.0

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