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

Subversion Repositories openrisc

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

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

Rev 49 Rev 51
Line 36... Line 36...
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_except;
class Vorpsoc_top_or1200_sprs;
class Vorpsoc_top_or1200_sprs;
class Vorpsoc_top_or1200_dpram;
class Vorpsoc_top_or1200_dpram;
 
class Vorpsoc_top_ram_wb_sc_sw__D20_A18_M800000;
 
 
 
 
//! 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
Line 51... Line 52...
 
 
  // Constructor
  // Constructor
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
  OrpsocAccess (Vorpsoc_top *orpsoc_top);
 
 
  // Accessor functions
  // Accessor functions
 
  bool      getExFreeze ();
  bool      getWbFreeze ();
  bool      getWbFreeze ();
  uint32_t  getWbInsn ();
  uint32_t  getWbInsn ();
  uint32_t  getIdInsn ();
  uint32_t  getIdInsn ();
 
  uint32_t  getExInsn ();
  uint32_t  getWbPC ();
  uint32_t  getWbPC ();
  uint32_t  getIdPC ();
  uint32_t  getIdPC ();
 
  uint32_t  getExPC ();
  bool  getExceptFlushpipe ();
  bool  getExceptFlushpipe ();
  bool  getExDslot ();
  bool  getExDslot ();
 
  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);
  //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 ();
 
 
 
  // Wishbone SRAM accessor functions
 
  uint32_t  get_mem (uint32_t addr);
 
  void  set_mem (uint32_t addr, uint32_t data);
 
  // Trigger a $readmemh for the RAM array
 
  void  do_ram_readmemh (void);
 
 
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;
  Vorpsoc_top_or1200_sprs       *or1200_sprs;
  Vorpsoc_top_or1200_sprs       *or1200_sprs;
  Vorpsoc_top_or1200_dpram      *rf_a;
  Vorpsoc_top_or1200_dpram      *rf_a;
 
  /*Vorpsoc_top_ram_wb_sc_sw*/Vorpsoc_top_ram_wb_sc_sw__D20_A18_M800000 *ram_wb_sc_sw;
 
 
};      // OrpsocAccess ()
};      // OrpsocAccess ()
 
 
#endif  // ORPSOC_ACCESS__H
#endif  // ORPSOC_ACCESS__H
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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