# HG changeset patch # User sohan # Date 1331137555 -3600 # Node ID ddfcbc21b5c2cfeb6f84b9c912255e7d3bb22b70 # Parent 03de56d9aad5e210db27c0f83f33b93698e32ebd Data structures for Context Unit diff -r 03de56d9aad5 -r ddfcbc21b5c2 contextUnitElem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contextUnitElem.h Wed Mar 07 17:25:55 2012 +0100 @@ -0,0 +1,60 @@ +/* + * Copyright 2011 OpenSourceStewardshipFoundation.org + * Licensed under GNU General Public License version 2 + */ + +#ifndef CONTEXT_UNIT_ +#define CONTEXT_UNIT_ + +#include +//============================== Structures ============================== +struct + { + bool ReadyForIF; + bool InIF; + bool DoneWithIF; + } +IFState; + +struct + { + bool ReadyForPipe; + bool InPipe; + bool DoneWithPipe; + } +PipeState; + +struct +{ + bool NotinLdSt; + bool InLdSt; +} +LdStState; + +struct +{ + struct IFState IF; + struct PipeState PS; + struct LdStState LS; + +} +FsmState; + +typedef struct +{ + int ContextId; + int CurrentPc; + int NewPc; + int Instr; + struct FsmState FS; +} +ContextUnit; + +//============================== Functions ================================ + +//=========================================================================== + +#endif /**/ + + +