# HG changeset patch # User sohan # Date 1331658489 -3600 # Node ID a4fc1d735dce5cca6110e12e7bacd52c2acd7816 # Parent 36fc881c883e0dd74d357acd309a8cd4e0f7afa0 New Structures for InPorts and OutPorts Defined diff -r 36fc881c883e -r a4fc1d735dce HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h --- a/HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h Tue Mar 13 18:07:25 2012 +0100 +++ b/HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h Tue Mar 13 18:08:09 2012 +0100 @@ -7,6 +7,8 @@ #define CONTEXT_UNIT_ #include +#define INSTR_FETCHED 1 +#define //============================== Structures ============================== typedef struct { @@ -58,6 +60,65 @@ } ContextUnitState; +//==================Structures for Port Signals============================== + +typedef struct +{ + int32 instr; + int32 PC; + int32 ctxtAddr; +} +ScheduledInstrMsg; + +typedef struct +{ + int32 PC; + int32 ctxtAddr; +} +ScheduledCtxtForFetch; + +typedef struct +{ + int32 PC; + int32 ctxtAddr; +} +MsgOnPortFromDecStage; + +typedef struct +{ + int32 PC; + int32 ctxtAddr; +} +MsgOnPortFromRegStage; + +typedef struct +{ + int32 PC; + int32 ctxtAddr; +} +MsgOnPortFromWbStage; + +typedef struct +{ + bool InstrInLdSt; + int32 ctxtAddr; +} +MsgOnPortFromWBStage; + +typedef struct +{ + bool InstrDone; + int32 ctxtAddr; +} +MsgOnPortFromWBBStage; + +typedef struct +{ + int32 Instr; + int32 ctxtAddr; +} +MsgOnPortFromInstrCache; + //============================== Functions ================================ //===========================================================================