URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [sysc/] [include/] [OrpsocAccess.h] - Rev 41
Go to most recent revision | Compare with Previous | Blame | View Log
// ---------------------------------------------------------------------------- // Access functions for the ORPSoC Verilator model: definition // Copyright (C) 2008 Embecosm Limited <info@embecosm.com> // Contributor Jeremy Bennett <jeremy.bennett@embecosm.com> // This file is part of the cycle accurate model of the OpenRISC 1000 based // system-on-chip, ORPSoC, built using Verilator. // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or (at your // option) any later version. // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public // License for more details. // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // ---------------------------------------------------------------------------- // $Id: OrpsocAccess.h 303 2009-02-16 11:20:17Z jeremy $ #ifndef ORPSOC_ACCESS__H #define ORPSOC_ACCESS__H #include <stdint.h> class Vorpsoc_top; class Vorpsoc_top_orpsoc_top; class Vorpsoc_top_or1200_ctrl; class Vorpsoc_top_or1200_dpram; //! Access functions to the Verilator model //! This class encapsulates access to the Verilator model, allowing other //! Classes to access model state, without needing to be built within the //! Verilator environment. class OrpsocAccess { public: // Constructor OrpsocAccess (Vorpsoc_top *orpsoc_top); // Accessor functions bool getWbFreeze (); uint32_t getWbInsn (); uint32_t getGpr (uint32_t regNum); private: // Pointers to modules with accessor functions Vorpsoc_top_or1200_ctrl *or1200_ctrl; Vorpsoc_top_or1200_dpram *rf_a; }; // OrpsocAccess () #endif // ORPSOC_ACCESS__H
Go to most recent revision | Compare with Previous | Blame | View Log