28#ifndef __ARCH_ARM_FASTMODEL_COMMON_SIGNAL_RECEIVER_HH__
29#define __ARCH_ARM_FASTMODEL_COMMON_SIGNAL_RECEIVER_HH__
31#pragma GCC diagnostic push
32#pragma GCC diagnostic ignored "-Woverloaded-virtual"
34#pragma GCC diagnostic pop
67 amba_pv::signal_slave_base<bool>(
name),
76 set_state(
int export_id,
const bool &new_state)
override
96 if (signal && signal->isConnected())
109 signalOut[idx] = std::make_unique<IntPin>(
110 csprintf(
"%s.signalOut[%d]", get_name(), idx), idx);
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
SignalReceiverInt(const std::string &name)
SignalSourcePort< bool > IntPin
std::vector< std::unique_ptr< IntPin > > signalOut
IntPin & getSignalOut(int idx)
SignalReceiver(const std::string &name, OnChangeFunc on_change=nullptr)
std::function< void(bool)> OnChangeFunc
amba_pv::signal_slave_export< bool > signal_in
SignalReceiver(const char *name, OnChangeFunc on_change=nullptr)
void set_state(int export_id, const bool &new_state) override
void onChange(OnChangeFunc func)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::string csprintf(const char *format, const Args &...args)
const std::string & name()