// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
|
|
// Access functions for the ORPSoC Verilator model: implementation
|
// Access functions for the ORPSoC Verilator model: implementation
|
|
|
// Copyright (C) 2008 Embecosm Limited <info@embecosm.com>
|
// Copyright (C) 2008 Embecosm Limited <info@embecosm.com>
|
|
|
// Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
// Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
|
// Contributor Julius Baxter <jb@orsoc.se>
|
// Contributor Julius Baxter <jb@orsoc.se>
|
|
|
// This file is part of the cycle accurate model of the OpenRISC 1000 based
|
// This file is part of the cycle accurate model of the OpenRISC 1000 based
|
// system-on-chip, ORPSoC, built using Verilator.
|
// system-on-chip, ORPSoC, built using Verilator.
|
|
|
// This program is free software: you can redistribute it and/or modify it
|
// 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
|
// 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
|
// the Free Software Foundation, either version 3 of the License, or (at your
|
// option) any later version.
|
// option) any later version.
|
|
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
// License for more details.
|
// License for more details.
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
// 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/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
|
|
// $Id: OrpsocAccess.cpp 303 2009-02-16 11:20:17Z jeremy $
|
// $Id: OrpsocAccess.cpp 303 2009-02-16 11:20:17Z jeremy $
|
|
|
#include "OrpsocAccess.h"
|
#include "OrpsocAccess.h"
|
|
|
#include "Vorpsoc_top.h"
|
#include "Vorpsoc_top.h"
|
#include "Vorpsoc_top_orpsoc_top.h"
|
#include "Vorpsoc_top_orpsoc_top.h"
|
#include "Vorpsoc_top_or1k_top.h"
|
#include "Vorpsoc_top_or1k_top.h"
|
#include "Vorpsoc_top_or1200_top.h"
|
#include "Vorpsoc_top_or1200_top.h"
|
#include "Vorpsoc_top_or1200_cpu.h"
|
#include "Vorpsoc_top_or1200_cpu.h"
|
#include "Vorpsoc_top_or1200_ctrl.h"
|
#include "Vorpsoc_top_or1200_ctrl.h"
|
#include "Vorpsoc_top_or1200_except.h"
|
#include "Vorpsoc_top_or1200_except.h"
|
#include "Vorpsoc_top_or1200_sprs.h"
|
#include "Vorpsoc_top_or1200_sprs.h"
|
#include "Vorpsoc_top_or1200_rf.h"
|
#include "Vorpsoc_top_or1200_rf.h"
|
#include "Vorpsoc_top_or1200_dpram.h"
|
#include "Vorpsoc_top_or1200_dpram.h"
|
//#include "Vorpsoc_top_ram_wb.h"
|
//#include "Vorpsoc_top_ram_wb.h"
|
//#include "Vorpsoc_top_ram_wb_sc_sw.h"
|
//#include "Vorpsoc_top_ram_wb_sc_sw.h"
|
#include "Vorpsoc_top_ram_wb__D20_A19_M800000.h"
|
#include "Vorpsoc_top_ram_wb__D20_A19_M800000.h"
|
#include "Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000.h"
|
#include "Vorpsoc_top_ram_wb_sc_sw__D20_A19_M800000.h"
|
#include "Vorpsoc_top_wb_conbus_top__pi1.h"
|
#include "Vorpsoc_top_wb_conbus_top__pi1.h"
|
|
|
//! Constructor for the ORPSoC access class
|
//! Constructor for the ORPSoC access class
|
|
|
//! Initializes the pointers to the various module instances of interest
|
//! Initializes the pointers to the various module instances of interest
|
//! within the Verilator model.
|
//! within the Verilator model.
|
|
|
//! @param[in] orpsoc The SystemC Verilated ORPSoC instance
|
//! @param[in] orpsoc The SystemC Verilated ORPSoC instance
|
|
|
OrpsocAccess::OrpsocAccess (Vorpsoc_top *orpsoc_top)
|
OrpsocAccess::OrpsocAccess (Vorpsoc_top *orpsoc_top)
|
{
|
{
|
// Assign processor accessor objects
|
// Assign processor accessor objects
|
or1200_ctrl = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_ctrl;
|
or1200_ctrl = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_ctrl;
|
or1200_except = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_except;
|
or1200_except = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_except;
|
or1200_sprs = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_sprs;
|
or1200_sprs = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_sprs;
|
rf_a = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_rf->rf_a;
|
rf_a = orpsoc_top->v->i_or1k->i_or1200_top->or1200_cpu->or1200_rf->rf_a;
|
// Assign main memory accessor objects
|
// Assign main memory accessor objects
|
ram_wb_sc_sw = orpsoc_top->v->ram_wb0->ram0;
|
ram_wb_sc_sw = orpsoc_top->v->ram_wb0->ram0;
|
// Assign arbiter accessor object
|
// Assign arbiter accessor object
|
wb_arbiter = orpsoc_top->v->wb_conbus;
|
wb_arbiter = orpsoc_top->v->wb_conbus;
|
|
|
} // OrpsocAccess ()
|
} // OrpsocAccess ()
|
|
|
//! Access for the ex_freeze signal
|
//! Access for the ex_freeze signal
|
|
|
//! @return The value of the or1200_ctrl.ex_freeze signal
|
//! @return The value of the or1200_ctrl.ex_freeze signal
|
|
|
bool
|
bool
|
OrpsocAccess::getExFreeze ()
|
OrpsocAccess::getExFreeze ()
|
{
|
{
|
return or1200_ctrl->ex_freeze;
|
return or1200_ctrl->ex_freeze;
|
|
|
} // getExFreeze ()
|
} // getExFreeze ()
|
|
|
//! Access for the wb_freeze signal
|
//! Access for the wb_freeze signal
|
|
|
//! @return The value of the or1200_ctrl.wb_freeze signal
|
//! @return The value of the or1200_ctrl.wb_freeze signal
|
|
|
bool
|
bool
|
OrpsocAccess::getWbFreeze ()
|
OrpsocAccess::getWbFreeze ()
|
{
|
{
|
return or1200_ctrl->wb_freeze;
|
return or1200_ctrl->wb_freeze;
|
|
|
} // getWbFreeze ()
|
} // getWbFreeze ()
|
|
|
//! Access for the except_flushpipe signal
|
//! Access for the except_flushpipe signal
|
|
|
//! @return The value of the or1200_except.except_flushpipe signal
|
//! @return The value of the or1200_except.except_flushpipe signal
|
|
|
bool
|
bool
|
OrpsocAccess::getExceptFlushpipe ()
|
OrpsocAccess::getExceptFlushpipe ()
|
{
|
{
|
return or1200_except->except_flushpipe;
|
return or1200_except->except_flushpipe;
|
|
|
} // getExceptFlushpipe ()
|
} // getExceptFlushpipe ()
|
|
|
//! Access for the ex_dslot signal
|
//! Access for the ex_dslot signal
|
|
|
//! @return The value of the or1200_except.ex_dslot signalfac
|
//! @return The value of the or1200_except.ex_dslot signalfac
|
|
|
bool
|
bool
|
OrpsocAccess::getExDslot ()
|
OrpsocAccess::getExDslot ()
|
{
|
{
|
return or1200_except->ex_dslot;
|
return or1200_except->ex_dslot;
|
|
|
} // getExDslot ()
|
} // getExDslot ()
|
|
|
//! Access for the except_type value
|
//! Access for the except_type value
|
|
|
//! @return The value of the or1200_except.except_type register
|
//! @return The value of the or1200_except.except_type register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getExceptType ()
|
OrpsocAccess::getExceptType ()
|
{
|
{
|
return (or1200_except->get_except_type) ();
|
return (or1200_except->get_except_type) ();
|
|
|
} // getExceptType ()
|
} // getExceptType ()
|
|
|
|
|
//! Access for the id_pc register
|
//! Access for the id_pc register
|
|
|
//! @return The value of the or1200_except.id_pc register
|
//! @return The value of the or1200_except.id_pc register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getIdPC ()
|
OrpsocAccess::getIdPC ()
|
{
|
{
|
return (or1200_except->get_id_pc) ();
|
return (or1200_except->get_id_pc) ();
|
|
|
} // getIdPC ()
|
} // getIdPC ()
|
|
|
//! Access for the ex_pc register
|
//! Access for the ex_pc register
|
|
|
//! @return The value of the or1200_except.id_ex register
|
//! @return The value of the or1200_except.id_ex register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getExPC ()
|
OrpsocAccess::getExPC ()
|
{
|
{
|
return (or1200_except->get_ex_pc) ();
|
return (or1200_except->get_ex_pc) ();
|
|
|
} // getExPC ()
|
} // getExPC ()
|
|
|
//! Access for the wb_pc register
|
//! Access for the wb_pc register
|
|
|
//! @return The value of the or1200_except.wb_pc register
|
//! @return The value of the or1200_except.wb_pc register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getWbPC ()
|
OrpsocAccess::getWbPC ()
|
{
|
{
|
return (or1200_except->get_wb_pc) ();
|
return (or1200_except->get_wb_pc) ();
|
|
|
} // getWbPC ()
|
} // getWbPC ()
|
|
|
//! Access for the id_insn register
|
//! Access for the id_insn register
|
|
|
//! @return The value of the or1200_ctrl.wb_insn register
|
//! @return The value of the or1200_ctrl.wb_insn register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getIdInsn ()
|
OrpsocAccess::getIdInsn ()
|
{
|
{
|
return (or1200_ctrl->get_id_insn) ();
|
return (or1200_ctrl->get_id_insn) ();
|
|
|
} // getIdInsn ()
|
} // getIdInsn ()
|
|
|
//! Access for the ex_insn register
|
//! Access for the ex_insn register
|
|
|
//! @return The value of the or1200_ctrl.ex_insn register
|
//! @return The value of the or1200_ctrl.ex_insn register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getExInsn ()
|
OrpsocAccess::getExInsn ()
|
{
|
{
|
return (or1200_ctrl->get_ex_insn) ();
|
return (or1200_ctrl->get_ex_insn) ();
|
|
|
} // getExInsn ()
|
} // getExInsn ()
|
|
|
|
|
//! Access for the wb_insn register
|
//! Access for the wb_insn register
|
|
|
//! @return The value of the or1200_ctrl.wb_insn register
|
//! @return The value of the or1200_ctrl.wb_insn register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getWbInsn ()
|
OrpsocAccess::getWbInsn ()
|
{
|
{
|
return (or1200_ctrl->get_wb_insn) ();
|
return (or1200_ctrl->get_wb_insn) ();
|
|
|
} // getWbInsn ()
|
} // getWbInsn ()
|
|
|
//! Access the Wishbone SRAM memory
|
//! Access the Wishbone SRAM memory
|
|
|
//! @return The value of the memory word at addr
|
//! @return The value of the 32-bit memory word at addr
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::get_mem (uint32_t addr)
|
OrpsocAccess::get_mem32 (uint32_t addr)
|
{
|
{
|
return (ram_wb_sc_sw->get_mem) (addr);
|
return (ram_wb_sc_sw->get_mem) (addr/4);
|
|
|
|
} // get_mem32 ()
|
|
|
|
|
|
//! Access a byte from the Wishbone SRAM memory
|
|
|
|
//! @return The value of the memory byte at addr
|
|
|
|
uint8_t
|
|
OrpsocAccess::get_mem8 (uint32_t addr)
|
|
{
|
|
|
|
uint32_t word;
|
|
static uint32_t cached_word;
|
|
static uint32_t cached_word_addr = 0xffffffff;
|
|
int sel = addr & 0x3; // Remember which byte we want
|
|
addr = addr / 4;
|
|
if (addr != cached_word_addr)
|
|
{
|
|
cached_word_addr = addr;
|
|
// Convert address to word number here
|
|
word = (ram_wb_sc_sw->get_mem) (addr);
|
|
cached_word = word;
|
|
}
|
|
else
|
|
word = cached_word;
|
|
|
|
switch(sel)
|
|
{
|
|
/* Big endian word expected */
|
|
case 0:
|
|
return ((word >> 24) & 0xff);
|
|
break;
|
|
case 1:
|
|
return ((word >> 16) & 0xff);
|
|
break;
|
|
case 2:
|
|
return ((word >> 8) & 0xff);
|
|
break;
|
|
case 3:
|
|
return ((word >> 0) & 0xff);
|
|
break;
|
|
default:
|
|
return 0;
|
|
}
|
|
|
|
} // get_mem8 ()
|
|
|
} // get_mem ()
|
|
|
|
//! Write value to the Wishbone SRAM memory
|
//! Write value to the Wishbone SRAM memory
|
|
|
void
|
void
|
OrpsocAccess::set_mem (uint32_t addr, uint32_t data)
|
OrpsocAccess::set_mem32 (uint32_t addr, uint32_t data)
|
{
|
{
|
(ram_wb_sc_sw->set_mem) (addr, data);
|
(ram_wb_sc_sw->set_mem) (addr/4, data);
|
|
|
} // set_mem ()
|
} // set_mem32 ()
|
|
|
//! Trigger the $readmemh() system call
|
//! Trigger the $readmemh() system call
|
|
|
void
|
void
|
OrpsocAccess::do_ram_readmemh (void)
|
OrpsocAccess::do_ram_readmemh (void)
|
{
|
{
|
(ram_wb_sc_sw->do_readmemh) ();
|
(ram_wb_sc_sw->do_readmemh) ();
|
|
|
} // do_ram_readmemh ()
|
} // do_ram_readmemh ()
|
|
|
//! Access for the OR1200 GPRs
|
//! Access for the OR1200 GPRs
|
|
|
//! These are extracted from memory using the Verilog function
|
//! These are extracted from memory using the Verilog function
|
|
|
//! @param[in] regNum The GPR whose value is wanted
|
//! @param[in] regNum The GPR whose value is wanted
|
|
|
//! @return The value of the GPR
|
//! @return The value of the GPR
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getGpr (uint32_t regNum)
|
OrpsocAccess::getGpr (uint32_t regNum)
|
{
|
{
|
return (rf_a->get_gpr) (regNum);
|
return (rf_a->get_gpr) (regNum);
|
|
|
} // getGpr ()
|
} // getGpr ()
|
|
|
|
|
//! Access for the sr register
|
//! Access for the sr register
|
|
|
//! @return The value of the or1200_sprs.sr register
|
//! @return The value of the or1200_sprs.sr register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getSprSr ()
|
OrpsocAccess::getSprSr ()
|
{
|
{
|
return (or1200_sprs->get_sr) ();
|
return (or1200_sprs->get_sr) ();
|
|
|
} // getSprSr ()
|
} // getSprSr ()
|
|
|
//! Access for the epcr register
|
//! Access for the epcr register
|
|
|
//! @return The value of the or1200_sprs.epcr register
|
//! @return The value of the or1200_sprs.epcr register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getSprEpcr ()
|
OrpsocAccess::getSprEpcr ()
|
{
|
{
|
return (or1200_sprs->get_epcr) ();
|
return (or1200_sprs->get_epcr) ();
|
|
|
} // getSprEpcr ()
|
} // getSprEpcr ()
|
|
|
//! Access for the eear register
|
//! Access for the eear register
|
|
|
//! @return The value of the or1200_sprs.eear register
|
//! @return The value of the or1200_sprs.eear register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getSprEear ()
|
OrpsocAccess::getSprEear ()
|
{
|
{
|
return (or1200_sprs->get_eear) ();
|
return (or1200_sprs->get_eear) ();
|
|
|
} // getSprEear ()
|
} // getSprEear ()
|
|
|
//! Access for the esr register
|
//! Access for the esr register
|
|
|
//! @return The value of the or1200_sprs.esr register
|
//! @return The value of the or1200_sprs.esr register
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getSprEsr ()
|
OrpsocAccess::getSprEsr ()
|
{
|
{
|
return (or1200_sprs->get_esr) ();
|
return (or1200_sprs->get_esr) ();
|
|
|
} // getSprEsr ()
|
} // getSprEsr ()
|
|
|
|
|
//! Access for the arbiter's grant signal
|
//! Access for the arbiter's grant signal
|
|
|
//! @return The value of the wb_conmax_top.arb signal
|
//! @return The value of the wb_conmax_top.arb signal
|
|
|
uint8_t
|
uint8_t
|
OrpsocAccess::getWbArbGrant ()
|
OrpsocAccess::getWbArbGrant ()
|
{
|
{
|
return (wb_arbiter->get_gnt) ();
|
return (wb_arbiter->get_gnt) ();
|
|
|
} // getWbArbGrant ()
|
} // getWbArbGrant ()
|
|
|
|
|
//! Arbiter master[mast_num] access functions
|
//! Arbiter master[mast_num] access functions
|
|
|
//! Access for the arbiter's master[mast_num] data in signal
|
//! Access for the arbiter's master[mast_num] data in signal
|
|
|
//! @return The value of the wb_conmax_top.m_dat_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_dat_i[mast_num]
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getWbArbMastDatI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastDatI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_dat_i) (mast_num);
|
return (wb_arbiter->get_m_dat_i) (mast_num);
|
|
|
} // getWbArbMastDatI ()
|
} // getWbArbMastDatI ()
|
|
|
//! Access for the arbiter's master[mast_num] data out signal
|
//! Access for the arbiter's master[mast_num] data out signal
|
|
|
//! @return The value of the wb_conmax_top.m_dat_o[mast_num]
|
//! @return The value of the wb_conmax_top.m_dat_o[mast_num]
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getWbArbMastDatO (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastDatO (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_dat_o) (mast_num);
|
return (wb_arbiter->get_m_dat_o) (mast_num);
|
|
|
} // getWbArbMastDatO ()
|
} // getWbArbMastDatO ()
|
|
|
//! Access for the arbiter's master[mast_num] data out
|
//! Access for the arbiter's master[mast_num] data out
|
|
|
//! @return The value of the wb_conmax_top.m_adr_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_adr_i[mast_num]
|
|
|
uint32_t
|
uint32_t
|
OrpsocAccess::getWbArbMastAdrI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastAdrI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_adr_i) (mast_num);
|
return (wb_arbiter->get_m_adr_i) (mast_num);
|
|
|
} // getWbArbMastAdrI ()
|
} // getWbArbMastAdrI ()
|
|
|
|
|
//! Access for the arbiter's master[mast_num] select signal
|
//! Access for the arbiter's master[mast_num] select signal
|
|
|
//! @return The value of the wb_conmax_top.m_sel_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_sel_i[mast_num]
|
|
|
uint8_t
|
uint8_t
|
OrpsocAccess::getWbArbMastSelI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastSelI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_sel_i) (mast_num);
|
return (wb_arbiter->get_m_sel_i) (mast_num);
|
|
|
} // getWbArbMastSelI ()
|
} // getWbArbMastSelI ()
|
|
|
//! Access for the arbiter's master[mast_num] decoded slave select signal
|
//! Access for the arbiter's master[mast_num] decoded slave select signal
|
|
|
//! @return The value of the wb_conmax_top.m_ssel_dec[mast_num]
|
//! @return The value of the wb_conmax_top.m_ssel_dec[mast_num]
|
|
|
uint8_t
|
uint8_t
|
OrpsocAccess::getWbArbMastSlaveSelDecoded (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastSlaveSelDecoded (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_ssel_dec) (mast_num);
|
return (wb_arbiter->get_m_ssel_dec) (mast_num);
|
|
|
} // getWbArbMastSlaveSelDecoded ()
|
} // getWbArbMastSlaveSelDecoded ()
|
|
|
//! Access for the arbiter's master[mast_num] write enable signal
|
//! Access for the arbiter's master[mast_num] write enable signal
|
|
|
//! @return The value of the wb_conmax_top.m_we_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_we_i[mast_num]
|
|
|
bool
|
bool
|
OrpsocAccess::getWbArbMastWeI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastWeI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_we_i) (mast_num);
|
return (wb_arbiter->get_m_we_i) (mast_num);
|
|
|
} // getWbArbMastWeI ()
|
} // getWbArbMastWeI ()
|
|
|
//! Access for the arbiter's master[mast_num] cycle input signal
|
//! Access for the arbiter's master[mast_num] cycle input signal
|
|
|
//! @return The value of the wb_conmax_top.m_cyc_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_cyc_i[mast_num]
|
|
|
bool
|
bool
|
OrpsocAccess::getWbArbMastCycI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastCycI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_cyc_i) (mast_num);
|
return (wb_arbiter->get_m_cyc_i) (mast_num);
|
|
|
} // getWbArbMastCycI ()
|
} // getWbArbMastCycI ()
|
|
|
//! Access for the arbiter's master[mast_num] strobe input signal
|
//! Access for the arbiter's master[mast_num] strobe input signal
|
|
|
//! @return The value of the wb_conmax_top.m_stb_i[mast_num]
|
//! @return The value of the wb_conmax_top.m_stb_i[mast_num]
|
|
|
bool
|
bool
|
OrpsocAccess::getWbArbMastStbI (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastStbI (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_stb_i) (mast_num);
|
return (wb_arbiter->get_m_stb_i) (mast_num);
|
|
|
} // getWbArbMastStbI ()
|
} // getWbArbMastStbI ()
|
|
|
//! Access for the arbiter's master[mast_num] ACK output signal
|
//! Access for the arbiter's master[mast_num] ACK output signal
|
|
|
//! @return The value of the wb_conmax_top.m_ack_o[mast_num]
|
//! @return The value of the wb_conmax_top.m_ack_o[mast_num]
|
|
|
bool
|
bool
|
OrpsocAccess::getWbArbMastAckO (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastAckO (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_ack_o) (mast_num);
|
return (wb_arbiter->get_m_ack_o) (mast_num);
|
|
|
} // getWbArbMastAckO ()
|
} // getWbArbMastAckO ()
|
|
|
//! Access for the arbiter's master[mast_num] error input signal
|
//! Access for the arbiter's master[mast_num] error input signal
|
|
|
//! @return The value of the wb_conmax_top.m_err_o[mast_num]
|
//! @return The value of the wb_conmax_top.m_err_o[mast_num]
|
|
|
bool
|
bool
|
OrpsocAccess::getWbArbMastErrO (uint32_t mast_num)
|
OrpsocAccess::getWbArbMastErrO (uint32_t mast_num)
|
{
|
{
|
return (wb_arbiter->get_m_err_o) (mast_num);
|
return (wb_arbiter->get_m_err_o) (mast_num);
|
|
|
} // getWbArbMastErrO ()
|
} // getWbArbMastErrO ()
|
|
|
|
|