ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Public Attributes | Private Attributes | List of all members
etiss::CPUCore::InterruptVectorWrapper Class Reference
Inheritance diagram for etiss::CPUCore::InterruptVectorWrapper:
Inheritance graph
[legend]
Collaboration diagram for etiss::CPUCore::InterruptVectorWrapper:
Collaboration graph
[legend]

Public Member Functions

 InterruptVectorWrapper (CPUCore &parent)
 
virtual void setBit (unsigned bit, bool state)
 set the bit of an interrupt line to state (true = raised) More...
 
virtual bool getBit (unsigned bit) const
 get the bit of an interrupt line More...
 
virtual unsigned width () const
 number of interrupt bits More...
 
virtual bool isActive () const
 
virtual void clear ()
 sets every bit to false More...
 
- Public Member Functions inherited from etiss::InterruptVector
virtual ~InterruptVector ()
 

Public Attributes

CPUCoreparent_
 
- Public Attributes inherited from etiss::InterruptVector
bool consumed_by_interruptlistener_ { false }
 

Private Attributes

std::list< etiss::InterruptListenerPlugin * > plugins_
 

Detailed Description

Definition at line 129 of file CPUCore.h.

Constructor & Destructor Documentation

◆ InterruptVectorWrapper()

CPUCore::InterruptVectorWrapper::InterruptVectorWrapper ( CPUCore parent)

Definition at line 87 of file CPUCore.cpp.

Member Function Documentation

◆ clear()

void CPUCore::InterruptVectorWrapper::clear ( )
virtual

sets every bit to false

Reimplemented from etiss::InterruptVector.

Definition at line 123 of file CPUCore.cpp.

◆ getBit()

bool CPUCore::InterruptVectorWrapper::getBit ( unsigned  bit) const
virtual

get the bit of an interrupt line

Implements etiss::InterruptVector.

Definition at line 111 of file CPUCore.cpp.

◆ isActive()

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

Reimplemented from etiss::InterruptVector.

Definition at line 119 of file CPUCore.cpp.

◆ setBit()

void CPUCore::InterruptVectorWrapper::setBit ( unsigned  bit,
bool  state 
)
virtual

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

Implements etiss::InterruptVector.

Definition at line 88 of file CPUCore.cpp.

References etiss::Plugin::getInterruptListenerPlugin(), and etiss::InterruptListenerPlugin::interruptWrite().

Here is the call graph for this function:

◆ width()

unsigned CPUCore::InterruptVectorWrapper::width ( ) const
virtual

number of interrupt bits

Implements etiss::InterruptVector.

Definition at line 115 of file CPUCore.cpp.

Member Data Documentation

◆ parent_

CPUCore& etiss::CPUCore::InterruptVectorWrapper::parent_

Definition at line 135 of file CPUCore.h.

◆ plugins_

std::list<etiss::InterruptListenerPlugin *> etiss::CPUCore::InterruptVectorWrapper::plugins_
private

Definition at line 132 of file CPUCore.h.


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