ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Public Attributes | List of all members
etiss::InterruptVector Class Referenceabstract

interface to set interrupt bits More...

#include <InterruptVector.h>

Inheritance diagram for etiss::InterruptVector:
Inheritance graph
[legend]
Collaboration diagram for etiss::InterruptVector:
Collaboration graph
[legend]

Public Member Functions

virtual ~InterruptVector ()
 
virtual void setBit (unsigned bit, bool state)=0
 set the bit of an interrupt line to state (true = raised) More...
 
virtual bool getBit (unsigned bit) const =0
 get the bit of an interrupt line More...
 
virtual unsigned width () const =0
 number of interrupt bits More...
 
virtual bool isActive () const
 
virtual void clear ()
 sets every bit to false More...
 

Public Attributes

bool consumed_by_interruptlistener_ { false }
 

Detailed Description

interface to set interrupt bits

Definition at line 69 of file InterruptVector.h.

Constructor & Destructor Documentation

◆ ~InterruptVector()

InterruptVector::~InterruptVector ( )
virtual

Definition at line 57 of file InterruptVector.cpp.

Member Function Documentation

◆ clear()

void InterruptVector::clear ( )
virtual

sets every bit to false

Reimplemented in etiss::MappedInterruptVector< INT >, and etiss::CPUCore::InterruptVectorWrapper.

Definition at line 68 of file InterruptVector.cpp.

References setBit(), and width().

Here is the call graph for this function:

◆ getBit()

virtual bool etiss::InterruptVector::getBit ( unsigned  bit) const
pure virtual

get the bit of an interrupt line

Implemented in etiss::MappedInterruptVector< INT >, and etiss::CPUCore::InterruptVectorWrapper.

Referenced by isActive().

Here is the caller graph for this function:

◆ isActive()

bool InterruptVector::isActive ( ) const
virtual
Returns
true if any bit is set to true

Reimplemented in etiss::MappedInterruptVector< INT >, and etiss::CPUCore::InterruptVectorWrapper.

Definition at line 59 of file InterruptVector.cpp.

References getBit(), and width().

Referenced by etiss::InterruptHandler::execute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setBit()

virtual void etiss::InterruptVector::setBit ( unsigned  bit,
bool  state 
)
pure virtual

set the bit of an interrupt line to state (true = raised)

Implemented in etiss::MappedInterruptVector< INT >, and etiss::CPUCore::InterruptVectorWrapper.

Referenced by clear(), and etiss::InterruptHandler::execute().

Here is the caller graph for this function:

◆ width()

virtual unsigned etiss::InterruptVector::width ( ) const
pure virtual

number of interrupt bits

Implemented in etiss::MappedInterruptVector< INT >, and etiss::CPUCore::InterruptVectorWrapper.

Referenced by clear(), and isActive().

Here is the caller graph for this function:

Member Data Documentation

◆ consumed_by_interruptlistener_

bool etiss::InterruptVector::consumed_by_interruptlistener_ { false }

Definition at line 94 of file InterruptVector.h.

Referenced by etiss::InterruptHandler::execute().


The documentation for this class was generated from the following files: