annotate contextUnitElem.h @ 5:e5dfca080b0f

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