diff options
Diffstat (limited to 'src/arch/arm/fastmodel/iris/cpu.cc')
-rw-r--r-- | src/arch/arm/fastmodel/iris/cpu.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/arm/fastmodel/iris/cpu.cc b/src/arch/arm/fastmodel/iris/cpu.cc index 234a1ca0d..246fe0cf0 100644 --- a/src/arch/arm/fastmodel/iris/cpu.cc +++ b/src/arch/arm/fastmodel/iris/cpu.cc @@ -61,6 +61,14 @@ BaseCPU::BaseCPU(BaseCPUParams *params, sc_core::sc_module *_evs) : panic_if(base && !periodAttribute, "The EVS clock period attribute is not of type " "sc_attribute<Tick>."); + + base = evs->get_attribute(SendFunctionalAttributeName); + sendFunctional = + dynamic_cast<sc_core::sc_attribute<PortProxy::SendFunctionalFunc> *>( + base); + panic_if(base && !sendFunctional, + "The EVS send functional attribute is not of type " + "sc_attribute<PortProxy::SendFunctionalFunc>."); } BaseCPU::~BaseCPU() |