Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__LPGPU_Arch__HWDef
view contextUnitElem.h @ 5:e5dfca080b0f
Defined a macro
| author | sohan |
|---|---|
| date | Wed, 07 Mar 2012 17:26:23 +0100 |
| parents | |
| children |
line source
1 /*
2 * Copyright 2011 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 */
6 #ifndef CONTEXT_UNIT_
7 #define CONTEXT_UNIT_
9 #include<stdbool.h>
10 //============================== Structures ==============================
11 struct
12 {
13 bool ReadyForIF;
14 bool InIF;
15 bool DoneWithIF;
16 }
17 IFState;
19 struct
20 {
21 bool ReadyForPipe;
22 bool InPipe;
23 bool DoneWithPipe;
24 }
25 PipeState;
27 struct
28 {
29 bool NotinLdSt;
30 bool InLdSt;
31 }
32 LdStState;
34 struct
35 {
36 struct IFState IF;
37 struct PipeState PS;
38 struct LdStState LS;
40 }
41 FsmState;
43 typedef struct
44 {
45 int ContextId;
46 int CurrentPc;
47 int NewPc;
48 int Instr;
49 struct FsmState FS;
50 }
51 ContextUnit;
53 //============================== Functions ================================
55 //===========================================================================
57 #endif /**/
