changeset 9:a4fc1d735dce tip

New Structures for InPorts and OutPorts Defined
author sohan
date Tue, 13 Mar 2012 18:08:09 +0100
parents 36fc881c883e
children
files HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h
diffstat 1 files changed, 61 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h	Tue Mar 13 18:07:25 2012 +0100
     1.2 +++ b/HWSim__LPGPU_Arch__HWDef/ContextUnitElem.h	Tue Mar 13 18:08:09 2012 +0100
     1.3 @@ -7,6 +7,8 @@
     1.4  #define CONTEXT_UNIT_
     1.5  
     1.6  #include<stdbool.h>
     1.7 +#define INSTR_FETCHED 1
     1.8 +#define 
     1.9  //==============================  Structures  ==============================
    1.10  typedef struct
    1.11   { 
    1.12 @@ -58,6 +60,65 @@
    1.13   }
    1.14  ContextUnitState;
    1.15  
    1.16 +//==================Structures for Port Signals==============================
    1.17 +
    1.18 +typedef struct
    1.19 +{
    1.20 +    int32 instr;
    1.21 +    int32 PC;
    1.22 +    int32 ctxtAddr;
    1.23 +}
    1.24 +ScheduledInstrMsg;
    1.25 +
    1.26 +typedef struct
    1.27 +{
    1.28 +    int32 PC;
    1.29 +    int32 ctxtAddr;
    1.30 +}
    1.31 +ScheduledCtxtForFetch;
    1.32 +
    1.33 +typedef struct
    1.34 +{
    1.35 +    int32 PC;
    1.36 +    int32 ctxtAddr;
    1.37 +}
    1.38 +MsgOnPortFromDecStage;
    1.39 +
    1.40 +typedef struct
    1.41 +{
    1.42 +    int32 PC;
    1.43 +    int32 ctxtAddr;
    1.44 +}
    1.45 +MsgOnPortFromRegStage;
    1.46 +
    1.47 +typedef struct
    1.48 +{
    1.49 +    int32 PC;
    1.50 +    int32 ctxtAddr;
    1.51 +}
    1.52 +MsgOnPortFromWbStage;
    1.53 +
    1.54 +typedef struct
    1.55 +{
    1.56 +    bool InstrInLdSt;
    1.57 +    int32 ctxtAddr;
    1.58 +}
    1.59 +MsgOnPortFromWBStage;
    1.60 +
    1.61 +typedef struct
    1.62 +{
    1.63 +    bool InstrDone;
    1.64 +    int32 ctxtAddr;
    1.65 +}
    1.66 +MsgOnPortFromWBBStage;
    1.67 +
    1.68 +typedef struct
    1.69 +{
    1.70 +    int32 Instr;
    1.71 +    int32 ctxtAddr;
    1.72 +}
    1.73 +MsgOnPortFromInstrCache;
    1.74 +
    1.75  //==============================  Functions  ================================
    1.76  
    1.77  //===========================================================================