28#ifndef __DEV_INTPIN_HH__
29#define __DEV_INTPIN_HH__
34#include "debug/IntPin.hh"
47 template <
class Device>
52 onChange([dev, num](
const bool &new_val) {
54 dev->raiseInterruptPin(num);
56 dev->lowerInterruptPin(num);
60 template <
class Device>
76template <
class Compat>
82 template <
class Device>
92 DPRINTF(IntPin,
"Raise interrupt.\n");
96 DPRINTF(IntPin,
"Lower interrupt.\n");
101template <
class Compat>
IntSinkPinBase(const std::string &_name, PortID _id)
IntSinkPinBase(const std::string &_name, PortID _id, Device *dev)
IntSinkPinBase(const std::string &_name, PortID _id, Device *dev, int num)
IntSinkPinBase(const std::string &_name, PortID _id, int num)
IntSourcePinBase(const std::string &_name, PortID _id, Device *owner)
IntSourcePinBase(const std::string &_name, PortID _id)
void onChange(OnChangeFunc func)
SignalSinkPort(const std::string &_name, PortID _id=InvalidPortID)
SignalSourcePort(const std::string &_name, PortID _id=InvalidPortID)
Copyright (c) 2024 Arm Limited All rights reserved.
IntSourcePinBase IntSourcePin
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
IntSinkPinBase IntSinkPin