-
Notifications
You must be signed in to change notification settings - Fork 0
/
IRQLogic.h
59 lines (48 loc) · 1.14 KB
/
IRQLogic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*******************************************************************
*
* DESCRIPTION: Atomic Model IRQLogic
*
* AUTHOR: Christian Durr
* Ruben Festini
* Diego Hereu
* Martin Paoletta
*
* DATE: 00/10/998
*
*
*
*
* MODIFICADO POR: Pablo L. Cremona
* Pablo S. Sor
*
* DATE: 27/01/1999
*
*******************************************************************/
#ifndef __IRQLOGIC_H
#define __IRQLOGIC_H
#include <atomic.h> // class Atomic
#include "bits.h"
class IRQLogic : public Atomic
{
public:
IRQLogic( const string &name = "IRQLogic" ); //Default constructor
~IRQLogic();
virtual string className() const ;
protected:
Model &initFunction();
Model &externalFunction( const ExternalMessage & );
Model &internalFunction( const InternalMessage & );
Model &outputFunction( const InternalMessage & );
private:
Port **IRQ, **PIL, &TF, **TT;
bit irq[15], pil[4];
o_bit tf, tt[8];
Time preparationTime;
}; // class IRQLOGIC
// ** inline ** //
inline
string IRQLogic::className() const
{
return "IRQLogic" ;
}
#endif //__IRQLOGIC_H