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