source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Constant/Constant_OpenRISC.h @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.4 KB
Line 
1#ifndef morpheo_behavioural_constant_Constant_h
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10using namespace std;
11
12namespace morpheo {
13namespace behavioural {
14namespace constant {
15
16  //------------------------------------------------------[ Control ]-----
17  typedef bool    Tcontrol_t;
18
19  //----------------------------------------------------[ Condition ]-----
20  typedef uint8_t Tcondition_t;
21   
22  const Tcondition_t    cst_CONDITION_NONE            = 0x0;           // None condition (jump)
23  const Tcondition_t    cst_CONDITION_F               = 0x2;           // Branch if Flag is set
24  const Tcondition_t    cst_CONDITION_NF              = 0x3;           // Branch if Flag is clear
25  const Tcondition_t    cst_CONDITION_REG             = 0x4;           // Branch if a register is read
26  const Tcondition_t    cst_CONDITION_STACK           = 0x8;           // Branch with pop  in stack pointer
27
28  //-------------------------------------------------[ branch_state ]-----
29  typedef uint8_t Tbranch_state_t;
30
31  const Tbranch_state_t cst_BRANCH_STATE_NONE         = 0x0;           // 0 0
32  const Tbranch_state_t cst_BRANCH_STATE_NSPEC_TAKE   = 0x1;           // 0 1  -> incondionnal
33  const Tbranch_state_t cst_BRANCH_STATE_SPEC_NTAKE   = 0x2;           // 1 0
34  const Tbranch_state_t cst_BRANCH_STATE_SPEC_TAKE    = 0x3;           // 1 1
35
36
37}; // end namespace constant
38}; // end namespace behavioural
39}; // end namespace morpheo             
40
41#endif
Note: See TracBrowser for help on using the repository browser.