source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Constants.h @ 76

Last change on this file since 76 was 76, checked in by rosiere, 16 years ago

Add new component : Read_unit (no tested)
Change functionnal_unit : now use type and operation to execute the good function
Change New_Component's script

File size: 44.4 KB
Line 
1#ifndef morpheo_behavioural_Constants_h
2#define morpheo_behavioural_Constants_h
3
4namespace morpheo {
5namespace behavioural {
6
7  //=========================================================[ Type ]=====
8#  define TYPE_ALU                                 0x0        // 00000 - unit multiple
9#  define TYPE_SHIFT                               0x1        // 00000 - unit multiple
10#  define TYPE_MOVE                                0x2        // 00000 - unit multiple
11#  define TYPE_TEST                                0x3        // 00000 - unit multiple
12#  define TYPE_MUL_DIV                             0x4        // 00000 - unit multiple, type optionnal
13#  define TYPE_EXTEND                              0x5        // 00000 - unit multiple, type optionnal
14#  define TYPE_FIND                                0x6        // 00000 - unit multiple, type optionnal
15#  define TYPE_SPECIAL                             0x7        // 00000 - unit uniq
16#  define TYPE_CUSTOM                              0x8        // 00000 - unit uniq
17#  define TYPE_BRANCH                              0x9        // 00000 - unit multiple, to a special routing
18#  define TYPE_MEMORY                              0xa        // 00000 - unit uniq
19#  define MAX_TYPE                                 0x10       // 00000 - unit uniq
20
21  //====================================================[ Operation ]=====
22
23  //-------------------------------------------------------[ Memory ]-----
24#  define OPERATION_MEMORY_LOAD                    0x0        // 000_0000
25#  define OPERATION_MEMORY_LOAD_8_Z                0x0        // 000_0000
26#  define OPERATION_MEMORY_LOAD_16_Z               0x20       // 010_0000
27#  define OPERATION_MEMORY_LOAD_32_Z               0x40       // 100_0000
28#  define OPERATION_MEMORY_LOAD_64_Z               0x60       // 110_0000
29#  define OPERATION_MEMORY_LOAD_8_S                0x10       // 001_0000
30#  define OPERATION_MEMORY_LOAD_16_S               0x30       // 011_0000
31#  define OPERATION_MEMORY_LOAD_32_S               0x50       // 101_0000
32#  define OPERATION_MEMORY_LOAD_64_S               0x70       // 111_0000
33
34#  define OPERATION_MEMORY_STORE_8                 0x8        // 000_1000
35#  define OPERATION_MEMORY_STORE_16                0x9        // 000_1001
36#  define OPERATION_MEMORY_STORE_32                0xa        // 000_1010
37#  define OPERATION_MEMORY_STORE_64                0xb        // 000_1011
38#  define OPERATION_MEMORY_STORE_HEAD_OK           0xc        // 000_1100
39#  define OPERATION_MEMORY_STORE_HEAD_KO           0xd        // 000_1101
40
41#  define OPERATION_MEMORY_LOCK                    0x1        // 000_0001
42#  define OPERATION_MEMORY_INVALIDATE              0x2        // 000_0010
43#  define OPERATION_MEMORY_PREFETCH                0x3        // 000_0011
44#  define OPERATION_MEMORY_FLUSH                   0x6        // 000_0110
45#  define OPERATION_MEMORY_SYNCHRONIZATION         0x7        // 000_0111
46 
47#define is_operation_memory_load(x)             \
48  ((x == OPERATION_MEMORY_LOAD_8_Z ) or         \
49   (x == OPERATION_MEMORY_LOAD_16_Z) or         \
50   (x == OPERATION_MEMORY_LOAD_32_Z) or         \
51   (x == OPERATION_MEMORY_LOAD_64_Z) or         \
52   (x == OPERATION_MEMORY_LOAD_8_S ) or         \
53   (x == OPERATION_MEMORY_LOAD_16_S) or         \
54   (x == OPERATION_MEMORY_LOAD_32_S) or         \
55   (x == OPERATION_MEMORY_LOAD_64_S) )
56 
57#define is_operation_memory_store(x)            \
58  ((x == OPERATION_MEMORY_STORE_8      ) or     \
59   (x == OPERATION_MEMORY_STORE_16     ) or     \
60   (x == OPERATION_MEMORY_STORE_32     ) or     \
61   (x == OPERATION_MEMORY_STORE_64     ) or     \
62   (x == OPERATION_MEMORY_STORE_HEAD_OK) or     \
63   (x == OPERATION_MEMORY_STORE_HEAD_KO))
64
65#define is_operation_memory_store_head(x)       \
66  ((x == OPERATION_MEMORY_STORE_HEAD_OK) or     \
67   (x == OPERATION_MEMORY_STORE_HEAD_KO))
68 
69#define is_operation_memory_load_signed(x)      \
70  ((x == OPERATION_MEMORY_LOAD_8_S ) or         \
71   (x == OPERATION_MEMORY_LOAD_16_S) or         \
72   (x == OPERATION_MEMORY_LOAD_32_S) or         \
73   (x == OPERATION_MEMORY_LOAD_64_S) )
74
75#  define MEMORY_ACCESS_8                          0x0
76#  define MEMORY_ACCESS_16                         0x1
77#  define MEMORY_ACCESS_32                         0x2
78#  define MEMORY_ACCESS_64                         0x3
79
80#  define MEMORY_SIZE_8                            8
81#  define MEMORY_SIZE_16                           16
82#  define MEMORY_SIZE_32                           32
83#  define MEMORY_SIZE_64                           64
84
85#  define MASK_MEMORY_ACCESS_8                     0x0
86#  define MASK_MEMORY_ACCESS_16                    0x1
87#  define MASK_MEMORY_ACCESS_32                    0x3
88#  define MASK_MEMORY_ACCESS_64                    0x7
89
90#define memory_size(x)                                                  \
91  (((x==OPERATION_MEMORY_LOAD_16_Z)or                                   \
92    (x==OPERATION_MEMORY_LOAD_16_S)or                                   \
93    (x==OPERATION_MEMORY_STORE_16 ))?MEMORY_SIZE_16:                    \
94   (((x==OPERATION_MEMORY_LOAD_32_Z)or                                  \
95     (x==OPERATION_MEMORY_LOAD_32_S)or                                  \
96     (x==OPERATION_MEMORY_STORE_32 ))?MEMORY_SIZE_32:                   \
97    (((x==OPERATION_MEMORY_LOAD_64_Z)or                                 \
98      (x==OPERATION_MEMORY_LOAD_64_S)or                                 \
99      (x==OPERATION_MEMORY_STORE_64 ))?MEMORY_SIZE_64:MEMORY_SIZE_8)))
100 
101#define memory_access(x)                                                \
102  (((x==OPERATION_MEMORY_LOAD_16_Z)or                                   \
103    (x==OPERATION_MEMORY_LOAD_16_S)or                                   \
104    (x==OPERATION_MEMORY_STORE_16 ))?MEMORY_ACCESS_16:                  \
105   (((x==OPERATION_MEMORY_LOAD_32_Z)or                                  \
106     (x==OPERATION_MEMORY_LOAD_32_S)or                                  \
107     (x==OPERATION_MEMORY_STORE_32 ))?MEMORY_ACCESS_32:                 \
108    (((x==OPERATION_MEMORY_LOAD_64_Z)or                                 \
109      (x==OPERATION_MEMORY_LOAD_64_S)or                                 \
110      (x==OPERATION_MEMORY_STORE_64 ))?MEMORY_ACCESS_64:MEMORY_ACCESS_8)))
111 
112#define mask_memory_access(x)                                           \
113  (((x==OPERATION_MEMORY_LOAD_16_Z)or                                   \
114    (x==OPERATION_MEMORY_LOAD_16_S)or                                   \
115    (x==OPERATION_MEMORY_STORE_16 ))?MASK_MEMORY_ACCESS_16:             \
116   (((x==OPERATION_MEMORY_LOAD_32_Z)or                                  \
117     (x==OPERATION_MEMORY_LOAD_32_S)or                                  \
118     (x==OPERATION_MEMORY_STORE_32 ))?MASK_MEMORY_ACCESS_32:            \
119    (((x==OPERATION_MEMORY_LOAD_64_Z)or                                 \
120      (x==OPERATION_MEMORY_LOAD_64_S)or                                 \
121      (x==OPERATION_MEMORY_STORE_64 ))?MASK_MEMORY_ACCESS_64:MASK_MEMORY_ACCESS_8)))
122
123  //---------------------------------------------[ Functionnal Unit ]-----
124#  define OPERATION_ALU_L_ADD                      0x1        // 000_0000 l.add   , l.addi
125#  define OPERATION_ALU_L_ADDC                     0x2        // 000_0000 l.addc  , l.addic
126#  define OPERATION_ALU_L_SUB                      0x4        // 000_0000 l.sub
127#  define OPERATION_ALU_L_AND                      0x8        // 000_0000 l.and   , l.andi
128#  define OPERATION_ALU_L_OR                       0x10       // 000_0000 l.or    , l.ori
129#  define OPERATION_ALU_L_XOR                      0x20       // 000_0000 l.xor   , l.xori
130
131#  define OPERATION_SHIFT_L_SLL                    0x1        // 000_0000 l.sll   , l.slli
132#  define OPERATION_SHIFT_L_SRA                    0x2        // 000_0000 l.sra   , l.srai
133#  define OPERATION_SHIFT_L_SRL                    0x4        // 000_0000 l.srl   , l.srli
134#  define OPERATION_SHIFT_L_ROR                    0x8        // 000_0000 l.ror   , l.rori
135
136#  define OPERATION_MOVE_L_MOVHI                   0x1        // 000_0000 l.movhi
137#  define OPERATION_MOVE_L_CMOV                    0x2        // 000_0000 l.cmov
138
139#  define OPERATION_TEST_L_SFGES                   0x41       // 000_0000 l.sfges , l.sfges
140#  define OPERATION_TEST_L_SFGEU                   0x1        // 000_0000 l.sfgeu , l.sfgeu
141#  define OPERATION_TEST_L_SFGTS                   0x42       // 000_0000 L.sfgts , l.sfgts
142#  define OPERATION_TEST_L_SFGTU                   0x2        // 000_0000 l.sfgtu , l.sfgtu
143#  define OPERATION_TEST_L_SFLES                   0x44       // 000_0000 l.sfles , l.sfles
144#  define OPERATION_TEST_L_SFLEU                   0x4        // 000_0000 l.sfleu , l.sfleu
145#  define OPERATION_TEST_L_SFLTS                   0x48       // 000_0000 l.sflts , l.sflts
146#  define OPERATION_TEST_L_SFLTU                   0x8        // 000_0000 l.sfltu , l.sfltu
147#  define OPERATION_TEST_L_SFEQ                    0x10       // 000_0000 l.sfeq  , l.sfeqi
148#  define OPERATION_TEST_L_SFNE                    0x20       // 000_0000 l.sfne  , l.sfnei
149
150#  define OPERATION_MUL_DIV_L_MUL                  0x1        // 000_0000 l.mul   , l.muli
151#  define OPERATION_MUL_DIV_L_MULU                 0x2        // 000_0000 l.mulu
152#  define OPERATION_MUL_DIV_L_DIV                  0x4        // 000_0000 l.div
153#  define OPERATION_MUL_DIV_L_DIVU                 0x8        // 000_0000 l.divu
154
155#  define OPERATION_EXTEND_L_EXTEND_Z              0x1        // 000_0000 l.extbz , l.exthz, l.extwz
156#  define OPERATION_EXTEND_L_EXTEND_S              0x2        // 000_0000 l.extbs , l.exths, l.extws
157
158#  define OPERATION_FIND_L_FF1                     0x1        // 000_0000 l.ff1
159#  define OPERATION_FIND_L_FL1                     0x2        // 000_0000 l.fl1
160
161#  define OPERATION_SPECIAL_L_MFSPR                0x1        // 000_0000 l.mfspr
162#  define OPERATION_SPECIAL_L_MTSPR                0x2        // 000_0000 l.mtspr
163#  define OPERATION_SPECIAL_L_MAC                  0x4        // 000_0000 l.mac   , l.maci
164#  define OPERATION_SPECIAL_L_MACRC                0x8        // 000_0000 l.macrc
165#  define OPERATION_SPECIAL_L_MSB                  0x10       // 000_0000 l.msb
166
167#  define OPERATION_BRANCH_L_TEST_NF               0x1        // 000_0000 l.bnf
168#  define OPERATION_BRANCH_L_TEST_F                0x2        // 000_0000 l.bf
169#  define OPERATION_BRANCH_L_JALR                  0x4        // 000_0000 l.jal   , l.jalr , l.jr
170
171  //-------------------------------------------------------[ Custom ]-----
172
173#  define OPERATION_CUSTOM_L_1                     0x40       // 100_0000
174#  define OPERATION_CUSTOM_L_2                     0x41       // 100_0001
175#  define OPERATION_CUSTOM_L_3                     0x42       // 100_0010
176#  define OPERATION_CUSTOM_L_4                     0x43       // 100_0011
177#  define OPERATION_CUSTOM_L_5                     0x44       // 100_0100
178#  define OPERATION_CUSTOM_L_6                     0x45       // 100_0101
179#  define OPERATION_CUSTOM_L_7                     0x46       // 100_0110
180#  define OPERATION_CUSTOM_L_8                     0x47       // 100_0111
181#  define OPERATION_CUSTOM_LF_1_D                  0x48       // 100_1000
182#  define OPERATION_CUSTOM_LF_1_S                  0x49       // 100_1001
183#  define OPERATION_CUSTOM_LV_1                    0x4c       // 100_1100
184#  define OPERATION_CUSTOM_LV_2                    0x4d       // 100_1101
185#  define OPERATION_CUSTOM_LV_3                    0x4e       // 100_1110
186#  define OPERATION_CUSTOM_LV_4                    0x4f       // 100_1111
187
188#  define MAX_OPERATION                            0x80
189
190  //====================================================[ Exception ]=====
191  // Exception - OpenRISC
192
193#  define SIZE_EXCEPTION                           5
194
195#  define EXCEPTION_NONE                           0x00       // none exception
196#  define EXCEPTION_RESET                          0x01       // software or hardware reset
197#  define EXCEPTION_BUS_ERROR                      0x02       // Access at a invalid physical adress
198#  define EXCEPTION_DATA_PAGE                      0x03       // No matching or page violation protection in pages tables
199#  define EXCEPTION_INSTRUCTION_PAGE               0x04       // No matching or page violation protection in pages tables
200#  define EXCEPTION_TICK_TIMER                     0x05       // Tick timer interruption
201#  define EXCEPTION_ALIGNMENT                      0x06       // Load/Store access is not aligned
202#  define EXCEPTION_ILLEGAL_INSTRUCTION            0x07       // Instruction is illegal (no implemented)
203#  define EXCEPTION_INTERRUPT                      0x08       // External interruption
204#  define EXCEPTION_DATA_TLB                       0x09       // DTLB miss
205#  define EXCEPTION_INSTRUCTION_TLB                0x0a       // ITLB miss
206#  define EXCEPTION_RANGE                          0x0b       // Overflow or access at a unimplemented register or context
207#  define EXCEPTION_SYSCALL                        0x0c       // System Call
208#  define EXCEPTION_FLOATING_POINT                 0x0d       // Caused by a floating instruction
209#  define EXCEPTION_TRAP                           0x0e       // L.trap or debug unit
210#  define EXCEPTION_RESERVED_0                     0x0f       // Reserved for a futur usage
211#  define EXCEPTION_RESERVED_1                     0x10       // Reserved for a futur usage
212#  define EXCEPTION_RESERVED_2                     0x11       // Reserved for a futur usage
213#  define EXCEPTION_RESERVED_3                     0x12       // Reserved for a futur usage
214#  define EXCEPTION_RESERVED_4                     0x13       // Reserved for a futur usage
215#  define EXCEPTION_RESERVED_5                     0x14       // Reserved for a futur usage
216#  define EXCEPTION_RESERVED_6                     0x15       // Reserved for implemented specific exceptions
217#  define EXCEPTION_RESERVED_7                     0x16       // Reserved for implemented specific exceptions
218#  define EXCEPTION_RESERVED_8                     0x17       // Reserved for implemented specific exceptions
219#  define EXCEPTION_RESERVED_9                     0x18       // Reserved for implemented specific exceptions
220#  define EXCEPTION_CUSTOM_0                       0x19       // Reserved for custom exceptions
221#  define EXCEPTION_CUSTOM_1                       0x1a       // Reserved for custom exceptions
222#  define EXCEPTION_CUSTOM_2                       0x1b       // Reserved for custom exceptions
223#  define EXCEPTION_CUSTOM_3                       0x1c       // Reserved for custom exceptions
224#  define EXCEPTION_CUSTOM_4                       0x1d       // Reserved for custom exceptions
225#  define EXCEPTION_CUSTOM_5                       0x1e       // Reserved for custom exceptions
226#  define EXCEPTION_CUSTOM_6                       0x1f       // Reserved for custom exceptions
227
228#define exception_to_address(x) (x<<8)
229
230  // Exception Execution
231#  define EXCEPTION_MEMORY_NONE                    0x0        // Load/Store generate none exception
232#  define EXCEPTION_MEMORY_ALIGNMENT               0x1        // Load/Store access is not aligned
233#  define EXCEPTION_MEMORY_DATA_TLB                0x2        // DTLB miss
234#  define EXCEPTION_MEMORY_DATA_PAGE               0x3        // No matching or page violation protection in pages tables
235#  define EXCEPTION_MEMORY_BUS_ERROR               0x4        // Access at a invalid physical address
236#  define EXCEPTION_MEMORY_MISS_SPECULATION        0x5        // Load miss speculation
237#  define EXCEPTION_MEMORY_LOAD_SPECULATIVE        0x6        // The load is speculative : write in register file, but don't commit
238
239#  define EXCEPTION_CUSTOM_NONE                    0x1        // Custom unit generate none exception
240#  define EXCEPTION_CUSTOM_CUST_0                  0x1        // Reserved for custom exceptions
241#  define EXCEPTION_CUSTOM_CUST_1                  0x2        // Reserved for custom exceptions
242#  define EXCEPTION_CUSTOM_CUST_2                  0x3        // Reserved for custom exceptions
243#  define EXCEPTION_CUSTOM_CUST_3                  0x4        // Reserved for custom exceptions
244#  define EXCEPTION_CUSTOM_CUST_4                  0x5        // Reserved for custom exceptions
245#  define EXCEPTION_CUSTOM_CUST_5                  0x6        // Reserved for custom exceptions
246#  define EXCEPTION_CUSTOM_CUST_6                  0x7        // Reserved for custom exceptions
247
248#  define EXCEPTION_ALU_NONE                       0x0        // Functionnal unit generate none exception
249#  define EXCEPTION_ALU_RANGE                      0x1        //
250#  define EXCEPTION_ALU_SPR_ACCESS_INVALID         0x2        // SPR     present in ALU but not compatible privilege
251#  define EXCEPTION_ALU_SPR_ACCESS_NOT_COMPLETE    0x3        // SPR not present in ALU
252
253  //=======================================================[ dcache ]=====
254
255  //--------------------------------------------------[ dcache_type ]-----
256
257#  define SIZE_DCACHE_TYPE                              4
258
259#  define DCACHE_TYPE_LOAD                              0x0        // 0000
260#  define DCACHE_TYPE_LOCK                              0x1        // 0001
261#  define DCACHE_TYPE_INVALIDATE                        0x2        // 0010
262#  define DCACHE_TYPE_PREFETCH                          0x3        // 0011
263//#define DCACHE_TYPE_                                  0x4        // 0100
264//#define DCACHE_TYPE_                                  0x5        // 0101
265#  define DCACHE_TYPE_FLUSH                             0x6        // 0110
266#  define DCACHE_TYPE_SYNCHRONIZATION                   0x7        // 0111
267#  define DCACHE_TYPE_STORE_8                           0x8        // 1000
268#  define DCACHE_TYPE_STORE_16                          0x9        // 1001
269#  define DCACHE_TYPE_STORE_32                          0xa        // 1010
270#  define DCACHE_TYPE_STORE_64                          0xb        // 1011
271//#define DCACHE_TYPE_                                  0xc        // 1100
272//#define DCACHE_TYPE_                                  0xd        // 1101
273//#define DCACHE_TYPE_                                  0xe        // 1110
274//#define DCACHE_TYPE_                                  0xf        // 1111
275
276// just take the 4 less significative bits.
277#define operation_to_dcache_type(x) (x&0xf)
278
279  //-------------------------------------------------[ dcache_error ]-----
280
281#  define SIZE_DCACHE_ERROR                             1
282
283#  define DCACHE_ERROR_NONE                             0x0
284#  define DCACHE_ERROR_BUS_ERROR                        0x1
285
286  //=================================================[ special_data ]=====
287
288#  define SIZE_SPECIAL_DATA                             2
289
290// Position of flag in "rename register SR" (NOT IN "SR")
291#  define FLAG_POSITION_F                               0x0         // Conditionnal branch flag
292#  define FLAG_POSITION_CY                              0x1         // Carry was produced by last arithmetic operation
293#  define FLAG_POSITION_OV                              0x0         // Overflow occured during last arithmetic operation
294
295#  define FLAG_F                                        (1<<FLAG_POSITION_F ) // Conditionnal branch flag
296#  define FLAG_CY                                       (1<<FLAG_POSITION_CY) // Carry was produced by last arithmetic operation
297#  define FLAG_OV                                       (1<<FLAG_POSITION_OV) // Overflow occured during last arithmetic operation
298
299  //==========================================================[ spr ]=====
300
301  enum
302    {
303      GROUP_SYSTEM_AND_CONTROL,  // 0
304      GROUP_DMMU,                // 1
305      GROUP_IMMU,                // 2
306      GROUP_DCACHE,              // 3
307      GROUP_ICACHE,              // 4
308      GROUP_MAC,                 // 5
309      GROUP_DEBUG,               // 6
310      GROUP_PERFORMANCE_COUNTER, // 7
311      GROUP_POWER_MANAGEMENT,    // 8
312      GROUP_PIC,                 // 9
313      GROUP_TICK_TIMER,          // 10
314      GROUP_FLOATING_POINT,      // 11
315      GROUP_RESERVED_1,          // 12     
316      GROUP_RESERVED_2,          // 13     
317      GROUP_RESERVED_3,          // 14     
318      GROUP_RESERVED_4,          // 15     
319      GROUP_RESERVED_5,          // 16     
320      GROUP_RESERVED_6,          // 17     
321      GROUP_RESERVED_7,          // 18     
322      GROUP_RESERVED_8,          // 19     
323      GROUP_RESERVED_9,          // 20     
324      GROUP_RESERVED_10,         // 21     
325      GROUP_RESERVED_11,         // 22     
326      GROUP_RESERVED_12,         // 23
327      GROUP_CUSTOM_1,            // 24     
328      GROUP_CUSTOM_2,            // 25     
329      GROUP_CUSTOM_3,            // 26     
330      GROUP_CUSTOM_4,            // 27     
331      GROUP_CUSTOM_5,            // 28     
332      GROUP_CUSTOM_6,            // 29     
333      GROUP_CUSTOM_7,            // 30     
334      GROUP_CUSTOM_8             // 31     
335    };
336
337#  define NB_GROUP                                 32
338#  define NB_REG_GROUP_SYSTEM_AND_CONTROL          1536
339#  define NB_REG_GROUP_DMMU                        1536
340#  define NB_REG_GROUP_IMMU                        1536
341#  define NB_REG_GROUP_DCACHE                      6
342#  define NB_REG_GROUP_ICACHE                      4
343#  define NB_REG_GROUP_MAC                         3
344#  define NB_REG_GROUP_DEBUG                       22
345#  define NB_REG_GROUP_PERFORMANCE_COUNTER         16
346#  define NB_REG_GROUP_POWER_MANAGEMENT            1
347#  define NB_REG_GROUP_PIC                         3
348#  define NB_REG_GROUP_TICK_TIMER                  2
349#  define NB_REG_GROUP_FLOATING_POINT              0
350#  define NB_REG_GROUP_RESERVED_1                  0
351#  define NB_REG_GROUP_RESERVED_2                  0
352#  define NB_REG_GROUP_RESERVED_3                  0
353#  define NB_REG_GROUP_RESERVED_4                  0
354#  define NB_REG_GROUP_RESERVED_5                  0
355#  define NB_REG_GROUP_RESERVED_6                  0
356#  define NB_REG_GROUP_RESERVED_7                  0
357#  define NB_REG_GROUP_RESERVED_8                  0
358#  define NB_REG_GROUP_RESERVED_9                  0
359#  define NB_REG_GROUP_RESERVED_10                 0
360#  define NB_REG_GROUP_RESERVED_11                 0
361#  define NB_REG_GROUP_RESERVED_12                 0
362#  define NB_REG_GROUP_CUSTOM_1                    0
363#  define NB_REG_GROUP_CUSTOM_2                    0
364#  define NB_REG_GROUP_CUSTOM_3                    0
365#  define NB_REG_GROUP_CUSTOM_4                    0
366#  define NB_REG_GROUP_CUSTOM_5                    0
367#  define NB_REG_GROUP_CUSTOM_6                    0
368#  define NB_REG_GROUP_CUSTOM_7                    0
369#  define NB_REG_GROUP_CUSTOM_8                    0
370                                                   
371                                                   
372  // GROUP_MAC                                     
373#  define SPR_MACLO                                1          // MAC Low
374#  define SPR_MACHI                                2          // MAC High
375
376  //----------------------------------------------[ spr_mode_access ]-----
377
378#  define SPR_ACCESS_MODE_NONE                     0x0        // 000
379#  define SPR_ACCESS_MODE_READ_ONLY                0x1        // 001
380#  define SPR_ACCESS_MODE_WRITE_ONLY               0x2        // 010
381#  define SPR_ACCESS_MODE_READ_WRITE               0x3        // 011
382#  define SPR_ACCESS_MODE_READ_ONLY_COND           0x5        // 101 special read
383
384  /*
385#define                 _size_instruction             32
386#define                 _size_instruction_log2        5
387
388  //----------------------------------------------------[ Operation ]-----
389// #define                 _nb_operation                 32
390// #define                 _size_operation               5
391
392#define                 _operation_none               0x0
393#define                 _operation_l_adds             0x1
394#define                 _operation_l_addu             0x2
395#define                 _operation_l_subs             0x3
396#define                 _operation_l_and              0x4
397#define                 _operation_l_or               0x5
398#define                 _operation_l_xor              0x6
399#define                 _operation_l_cmove            0x7
400#define                 _operation_l_read_imm         0x8
401#define                 _operation_l_movhi            0x9
402#define                 _operation_l_muls             0xa
403#define                 _operation_l_mulu             0xb
404#define                 _operation_l_divs             0xc
405#define                 _operation_l_divu             0xd
406#define                 _operation_l_exts             0xe
407#define                 _operation_l_extz             0xf
408#define                 _operation_l_ff1              0x10
409#define                 _operation_l_fl1              0x11
410#define                 _operation_l_sll              0x12
411#define                 _operation_l_sla              0x13
412#define                 _operation_l_srl              0x14
413#define                 _operation_l_ror              0x15
414#define                 _operation_l_cmp_eq           0x16
415#define                 _operation_l_cmp_ne           0x17
416#define                 _operation_l_cmp_ges          0x18
417#define                 _operation_l_cmp_geu          0x19
418#define                 _operation_l_cmp_gts          0x1a
419#define                 _operation_l_cmp_gtu          0x1b
420#define                 _operation_l_cmp_les          0x1c
421#define                 _operation_l_cmp_leu          0x1d
422#define                 _operation_l_cmp_lts          0x1e
423#define                 _operation_l_cmp_ltu          0x1f
424
425  //--------------------------------------------------[ destination ]-----
426#define                 _size_destination1            4
427
428#define                  cst_DESTINATION1_NONE        0x0
429#define                 mask_DESTINATION1_GPR         0x1
430#define                 mask_DESTINATION1_MEMORY      0x2
431#define                 mask_DESTINATION1_SPR         0x4
432#define                 mask_DESTINATION1_MAC_UNIT    0x8
433 
434#define                 _size_destination2  3
435
436#define                  cst_DESTINATION2_NONE        0x0
437#define                 mask_DESTINATION2_COMMIT      0x1
438#define                 mask_DESTINATION2_MEMORY      0x2
439#define                 mask_DESTINATION2_SPR         0x4
440 
441  //----------------------------------------------------[ exec_flag ]-----
442#define                 _size_exec_flag               2
443
444#define                 mask_EXEC_FLAG_NONE           0x1
445#define                 mask_EXEC_FLAG_CARRY          0x1
446#define                 mask_EXEC_FLAG_FLAG           0x1
447#define                 mask_EXEC_FLAG_OVERFLOW       0x2
448
449  //---------------------------------------------------[ exec_excep ]-----
450#define                  _size_exec_excep             1
451
452#define                 mask_EXEC_EXCEP_NONE          0x0
453#define                 mask_EXEC_EXCEP_RANGE         0x1
454 
455  //----------------------------------------------------[ Condition ]-----
456#define                 _size_condition               3
457   
458#define                  cst_CONDITION_UNCONDITIONAL  0x0           // None condition (jump)
459#define                 mask_CONDITION_CONDITIONAL    0x2           
460#define                 mask_CONDITION_CONDITIONAL_NF 0x0           // Branch if Flag is clear
461#define                 mask_CONDITION_CONDITIONAL_F  0x1           // Branch if Flag is set   
462#define                 mask_CONDITION_REG            0x4           // Branch if a register is read
463#define                 mask_CONDITION_STACK          0x8           // Branch with pop  in stack pointer
464
465  //-------------------------------------------------[ branch_state ]-----
466#define                 cst_BRANCH_STATE_NONE         0x0           // 0 0
467#define                 cst_BRANCH_STATE_NSPEC_TAKE   0x1           // 0 1  -> incondionnal
468#define                 cst_BRANCH_STATE_SPEC_NTAKE   0x2           // 1 0
469#define                 cst_BRANCH_STATE_SPEC_TAKE    0x3           // 1 1
470  */
471
472  /*
473#define M_CPU_SIZE_INST       32
474
475//----------------------------------------------------
476// Exception type
477//----------------------------------------------------
478
479#define M_CPU_LOG2_NB_EXCP    5
480#define M_CPU_NB_EXCP         32
481
482#define EXCP_NO               0x00          // none exception
483#define EXCP_RESET            0x01          // software or hardware reset
484#define EXCP_BERR             0x02          // Access at a invalid physical adress
485#define EXCP_D_PAGE           0x03          // No matching or page violation protection in pages tables
486#define EXCP_I_PAGE           0x04          // No matching or page violation protection in pages tables
487#define EXCP_TICK_TIMER       0x05          // Tick timer interruption
488#define EXCP_ALIGNMENT        0x06          // Load/Store access is not aligned
489#define EXCP_ILL_INST         0x07          // Instruction is illegal (no implemented)
490#define EXCP_IRQ              0x08          // External interruption
491#define EXCP_D_TLB            0x09          // DTLB miss
492#define EXCP_I_TLB            0x0a          // ITLB miss
493#define EXCP_RANGE            0x0b          // Overflow or access at a unimplemented register or context
494#define EXCP_SYSCALL          0x0c          // System Call
495#define EXCP_FP               0x0d          // Caused by a floating instruction
496#define EXCP_TRAP             0x0e          // L.trap or debug unit
497#define EXCP_RES0             0x0f          // Reserved for a futur usage
498#define EXCP_RES1             0x10          // Reserved for a futur usage
499#define EXCP_RES2             0x11          // Reserved for a futur usage
500#define EXCP_RES3             0x12          // Reserved for a futur usage
501#define EXCP_RES4             0x13          // Reserved for a futur usage
502#define EXCP_RES5             0x14          // Reserved for a futur usage
503#define EXCP_RES6             0x15          // Reserved for implemented specific exceptions
504#define EXCP_RES7             0x16          // Reserved for implemented specific exceptions
505#define EXCP_RES8             0x17          // Reserved for implemented specific exceptions
506#define EXCP_RES9             0x18          // Reserved for implemented specific exceptions
507#define EXCP_CUST0            0x19          // Reserved for custom exceptions
508#define EXCP_CUST1            0x1a          // Reserved for custom exceptions
509#define EXCP_CUST2            0x1b          // Reserved for custom exceptions
510#define EXCP_CUST3            0x1c          // Reserved for custom exceptions
511#define EXCP_CUST4            0x1d          // Reserved for custom exceptions
512#define EXCP_CUST5            0x1e          // Reserved for custom exceptions
513#define EXCP_CUST6            0x1f          // Reserved for custom exceptions
514
515//----------------------------------------------------
516// Flags
517//----------------------------------------------------
518
519#define M_CPU_NB_FLAG         3
520
521// Integer flags
522#define FLAG_F                0x1           // Conditionnal branch flag
523#define FLAG_CY               0x2           // Carry was produced by last arithmétic operation
524#define FLAG_OV               0x4           // Overflow occured during last arithmetic operation
525
526// Floating flags
527#define FLAG_OVF              0x004         // Overflow occured during last arithmetic operation
528#define FLAG_UNF              0x008         // Underflow flags
529#define FLAG_SNF              0x010         // Result SNAN
530#define FLAG_QNF              0x020         // Result QNAN
531#define FLAG_ZF               0x040         // Result is nul
532#define FLAG_IXF              0x080         // Result is inexact
533#define FLAG_IVF              0x100         // Result is invalid
534#define FLAG_INF              0x200         // Result is infinite
535#define FLAG_DZF              0x400         // Division by zero
536
537// Position of flag in "rename register SR" (NOT IN "SR")
538#define FLAG_POS_F            0x0           // Conditionnal branch flag
539#define FLAG_POS_CY           0x1           // Carry was produced by last arithmétic operation
540#define FLAG_POS_OV           0x0           // Overflow occured during last arithmetic operation
541
542//----------------------------------------------------
543// Instruction type
544//----------------------------------------------------
545
546#define M_CPU_LOG2_NB_TYPE    4
547
548#define TYPE_NOP              0x0
549#define TYPE_ALU_F            0x1           // Instruction ALU with    flag using (ADD, SUB, ADDC ...)
550#define TYPE_ALU_NF           0x2           // Instruction ALU without flag using (AND, OR ...)
551#define TYPE_MAC              0x3           // Instruction ALU with    utilisation of register HI/LO
552#define TYPE_J                0x4           // Branch instruction
553#define TYPE_SPR_READ         0x5           // Instruction special : l.mfspr
554#define TYPE_SPR_WRITE        0x6           // Instruction special : l.mtspr
555#define TYPE_SPECIAL          0x7           // Instruction execute in decode stage
556#define TYPE_CUSTOM           0x8           // Instruction Custom
557
558#define TYPE_LOAD_Z           0x9           // Load  access (extended by zero)
559#define TYPE_LOAD_S           0xa           // Load  access (sign extended)
560#define TYPE_STORE            0xc           // Store access
561
562//----------------------------------------------------
563// Condition to branch
564//----------------------------------------------------
565
566#define M_CPU_LOG2_NB_COND    4
567
568#define COND_NONE             0x0           // None condition (jump)
569#define COND_F                0x2           // Branch if Flag is set
570#define COND_NF               0x3           // Branch if Flag is clear
571#define COND_REG              0x4           // Branch if a register is read
572#define COND_STACK            0x8           // Branch with pop  in stack pointer
573
574//----------------------------------------------------
575// Event : State and Type
576//----------------------------------------------------
577
578#define EVENT_STATE_NO_EVENT  0             // no event : current case
579#define EVENT_STATE_EVENT     1             // Have a event : make necessary to manage the event
580#define EVENT_STATE_WAITEND   2             // Wait end of manage event (restaure a good context)
581#define EVENT_STATE_END       3             // CPU can continue
582
583#define EVENT_TYPE_MISS       0             // miss of speculation
584#define EVENT_TYPE_EXCP       1             // exception or interruption occure
585
586// SPEC? TAKE?
587#define BRANCH_STATE_NONE         0  // 0     0
588#define BRANCH_STATE_NSPEC_TAKE   1  // 0     1  -> incondionnal
589#define BRANCH_STATE_SPEC_NTAKE   2  // 1     0
590#define BRANCH_STATE_SPEC_TAKE    3  // 1     1
591
592//----------------------------------------------------
593// Name to particular register
594//----------------------------------------------------
595
596//~~~~~~~~~~~~~~~~~~~~~~~~~~
597// GENERAL PURPOSE REGISTER
598//~~~~~~~~~~~~~~~~~~~~~~~~~~
599#define M_CPU_LOG2_NB_GPR_LOG 5
600#define M_CPU_NB_GPR_LOG      (1<<M_CPU_LOG2_NB_GPR_LOG)
601
602#define GPR_LOG_LR            0x09          // Link register
603#define REG_PHY_SR            0x00          // Status register
604
605//~~~~~~~~~~~~~~~~~~~~~~~~~~
606// SPECIAL PURPOSE REGISTER
607//~~~~~~~~~~~~~~~~~~~~~~~~~~
608#define M_CPU_LOG2_NB_SPR_LOG 1
609#define M_CPU_NB_SPR_LOG      (1<<M_CPU_LOG2_NB_SPR_LOG)
610#define M_CPU_SPR_SIZE_DATA   2             // Size of the most great register
611
612#define SPR_LOG_SR_F          0x00          // Status register bit F                   (size = 1)
613#define SPR_LOG_SR_CY_OV      0x01          // Status register bit overflow and carry  (size = 2)
614//#define SPR_LOG_SR_LO         0x02          // MAC LSB                                 (size = 32)
615//#define SPR_LOG_SR_HI         0x03          // MAC MSB                                 (size = 32)
616  */
617
618  /*
619//----------------------------------------------------
620// Code Operation (before decode)
621//----------------------------------------------------
622
623// Codop                        - [31:26]      Instructions with immediat
624#define OPCOD_L_J             0x00          // 000_000
625#define OPCOD_L_JAL           0x01          // 000_001
626#define OPCOD_L_BNF           0x03          // 000_011
627#define OPCOD_L_BF            0x04          // 000_100
628#define OPCOD_L_RFE           0x09          // 001_001
629#define OPCOD_L_JR            0x11          // 010_001
630#define OPCOD_L_JALR          0x12          // 010_010
631#define OPCOD_L_MACI          0x13          // 010_011
632#define OPCOD_L_CUST1         0x1c          // 011_100
633#define OPCOD_L_CUST2         0x1d          // 011_101
634#define OPCOD_L_CUST3         0x1e          // 011_110
635#define OPCOD_L_CUST4         0x1f          // 011_111
636#define OPCOD_L_CUST5         0x3c          // 111_100
637#define OPCOD_L_CUST6         0x3d          // 111_101
638#define OPCOD_L_CUST7         0x3e          // 111_110
639#define OPCOD_L_CUST8         0x3f          // 111_111
640#define OPCOD_L_LD            0x20          // 100_000
641#define OPCOD_L_LWZ           0x21          // 100_001
642#define OPCOD_L_LWS           0x22          // 100_010
643#define OPCOD_L_LBZ           0x23          // 100_011
644#define OPCOD_L_LBS           0x24          // 100_100
645#define OPCOD_L_LHZ           0x25          // 100_101
646#define OPCOD_L_LHS           0x26          // 100_110
647#define OPCOD_L_ADDI          0x27          // 100_111
648#define OPCOD_L_ADDIC         0x28          // 101_000
649#define OPCOD_L_ANDI          0x29          // 101_001
650#define OPCOD_L_ORI           0x2a          // 101_010
651#define OPCOD_L_XORI          0x2b          // 101_011
652#define OPCOD_L_MULI          0x2c          // 101_100
653#define OPCOD_L_MFSPR         0x2d          // 101_101
654#define OPCOD_L_MTSPR         0x30          // 110_000
655#define OPCOD_L_SD            0x32          // 110_010
656#define OPCOD_L_SW            0x35          // 110_101
657#define OPCOD_L_SB            0x36          // 110_110
658#define OPCOD_L_SH            0x37          // 110_111
659
660#define OPCOD_INST_LV         0x0a          // 001_010         // Instruction ORVDX64
661#define OPCOD_INST_LF         0x33          // 110_011         // Instruction ORFPX32/64
662
663#define OPCOD_SPECIAL         0x38          // 111_000         // Instructions Register-Register
664#define OPCOD_SPECIAL_1       0x39          // 111_001         // Instructions "set flag" with register
665#define OPCOD_SPECIAL_2       0x2f          // 101_111         // Instructions "set flag" with immediat
666#define OPCOD_SPECIAL_6       0x2e          // 101_110         // Instruction Shift/Rotate with immediat
667#define OPCOD_SPECIAL_7       0x31          // 110_001         // Instructions multiply with HI-LO
668#define OPCOD_SPECIAL_8       0x06          // 000_110         // Instructions acces at HI-LO
669
670// OPCOD_SPECIAL   instructions - [9:8] [3:0]  Instructions Register-Register
671#define OPCOD_L_ADD           0x00          // 00_0000
672#define OPCOD_L_ADDC          0x01          // 00_0001
673#define OPCOD_L_SUB           0x02          // 00_0010
674#define OPCOD_L_AND           0x03          // 00_0011
675#define OPCOD_L_OR            0x04          // 00_0100
676#define OPCOD_L_XOR           0x05          // 00_0101
677#define OPCOD_L_CMOV          0x0e          // 00_1110
678#define OPCOD_L_FF1           0x0f          // 00_1111
679#define OPCOD_L_FL1           0x1f          // 01_1111
680#define OPCOD_L_MUL           0x36          // 11_0110
681#define OPCOD_L_DIV           0x39          // 11_1001
682#define OPCOD_L_DIVU          0x3a          // 11_1010
683#define OPCOD_L_MULU          0x3b          // 11_1011
684
685#define OPCOD_SPECIAL_3       0xc           // 1100          // Instructions extend
686#define OPCOD_SPECIAL_4       0xd           // 1101          // Instructions extend (64b)
687#define OPCOD_SPECIAL_5       0x8           // 1000          // Instruction Shift/Rotate with register
688
689// OPCOD_SPECIAL_1 instructions - [25:21]      Instructions "set flag" with register
690#define OPCOD_L_SFEQ          0x00          // 00000
691#define OPCOD_L_SFNE          0x01          // 00001
692#define OPCOD_L_SFGTU         0x02          // 00010
693#define OPCOD_L_SFGEU         0x03          // 00011
694#define OPCOD_L_SFLTU         0x04          // 00100
695#define OPCOD_L_SFLEU         0x05          // 00101
696#define OPCOD_L_SFGTS         0x0a          // 01010
697#define OPCOD_L_SFGES         0x0b          // 01011
698#define OPCOD_L_SFLTS         0x0c          // 01100
699#define OPCOD_L_SFLES         0x0d          // 01101
700
701// OPCOD_SPECIAL_2 instructions - [25:21]      Instructions "set flag" with immediat
702#define OPCOD_L_SFEQI         0x00          // 00000
703#define OPCOD_L_SFNEI         0x01          // 00001
704#define OPCOD_L_SFGTUI        0x02          // 00010
705#define OPCOD_L_SFGEUI        0x03          // 00011
706#define OPCOD_L_SFLTUI        0x04          // 00100
707#define OPCOD_L_SFLEUI        0x05          // 00101
708#define OPCOD_L_SFGTSI        0x0a          // 01010
709#define OPCOD_L_SFGESI        0x0b          // 01011
710#define OPCOD_L_SFLTSI        0x0c          // 01100
711#define OPCOD_L_SFLESI        0x0d          // 01101
712
713// OPCOD_SPECIAL_3 instructions - [9:6]          Instructions extend
714#define OPCOD_L_EXTHS         0x0           // 0000
715#define OPCOD_L_EXTHZ         0x2           // 0010
716#define OPCOD_L_EXTBS         0x1           // 0001
717#define OPCOD_L_EXTBZ         0x3           // 0011
718
719// OPCOD_SPECIAL_4 instructions - [9:6]        Instructions extend (64b)
720#define OPCOD_L_EXTWS         0x0           // 0000
721#define OPCOD_L_EXTWZ         0x1           // 0001
722
723// OPCOD_SPECIAL_5 instructions - [7:6]        Instruction Shift/Rotate with register
724#define OPCOD_L_SLL           0x0           // 00
725#define OPCOD_L_SRL           0x1           // 01
726#define OPCOD_L_SRA           0x2           // 10
727#define OPCOD_L_ROR           0x3           // 11
728
729// OPCOD_SPECIAL_6 instructions - [7:6]        Instruction Shift/Rotate with immediat
730#define OPCOD_L_SLLI          0x0           // 00
731#define OPCOD_L_SRLI          0x1           // 01
732#define OPCOD_L_SRAI          0x2           // 10
733#define OPCOD_L_RORI          0x3           // 11
734
735// OPCOD_SPECIAL_7 instructions - [3:0]        Instructions multiply with HI-LO
736#define OPCOD_L_MAC           0x1           // 0001
737#define OPCOD_L_MSB           0x2           // 0010
738
739// OPCOD_SPECIAL_8 instructions - [17]         Instructions acces at HI-LO
740#define OPCOD_L_MOVHI         0x0           // 0
741#define OPCOD_L_MACRC         0x1           // 1
742
743// Particular case                             Instructions systems
744#define OPCOD_L_MSYNC         0x22000000
745#define OPCOD_L_CSYNC         0x23000000
746#define OPCOD_L_PSYNC         0x22800000
747#define OPCOD_L_NOP           0x1500
748#define OPCOD_L_SYS           0x2000
749#define OPCOD_L_TRAP          0x2100
750
751//----------------------------------------------------
752// Code Operation (after decode)
753//----------------------------------------------------
754
755typedef enum
756  {
757    // ##### WARNING : This opcode must be the first#####
758    INST_L_NO_IMPLEMENTED ,         // Operation is not implemented
759
760    INST_L_ADD            ,         // L.ADD    , L.ADDI   , L.ADDC   , L.ADDIC
761    INST_L_AND            ,         // L.AND    , L.ANDI
762    INST_L_OR             ,         // L.OR     , L.ORI
763    INST_L_XOR            ,         // L.XOR    , L.XORI
764    INST_L_CMOV           ,         // L.CMOV
765    INST_L_SUB            ,         // L.SUB
766    INST_L_FF1            ,         // L.FF1
767    INST_L_EXTBS          ,         // L.EXTBS
768    INST_L_EXTBZ          ,         // L.EXTBZ
769    INST_L_EXTHS          ,         // L.EXTHS
770    INST_L_EXTHZ          ,         // L.EXTHZ
771    INST_L_EXTWS          ,         // L.EXTWS
772    INST_L_EXTWZ          ,         // L.EXTWZ
773    INST_L_e              ,         //
774    INST_L_f              ,         //
775    INST_L_MUL            ,         // L.MUL    , L.MULI
776    INST_L_MULU           ,         // L.MULU
777    INST_L_DIV            ,         // L.DIV
778    INST_L_DIVU           ,         // L.DIVU
779    INST_L_SLL            ,         // L.SLL    , L.SLLI
780    INST_L_SRL            ,         // L.SRL    , L.SRLI
781    INST_L_SRA            ,         // L.SRA    , L.SRAI
782    INST_L_ROR            ,         // L.ROR    , L.RORI
783    INST_L_SFGES          ,         // L.SFGES  , L.SFGESI
784    INST_L_SFGEU          ,         // L.SFGEU  , L.SFGEUI
785    INST_L_SFGTS          ,         // L.SFGTS  , L.SFGTSI
786    INST_L_SFGTU          ,         // L.SFGTU  , L.SFGTUI
787    INST_L_SFLES          ,         // L.SFLES  , L.SFLESI
788    INST_L_SFLEU          ,         // L.SFLEU  , L.SFLEUI
789    INST_L_SFLTS          ,         // L.SFLTS  , L.SFLTSI
790    INST_L_SFLTU          ,         // L.SFLTU  , L.SFLTUI
791    INST_L_SFEQ           ,         // L.SFEQ   , L.SFEQI
792    INST_L_SFNE           ,         // L.SFNE   , L.SFNEI
793    INST_L_READ           ,         // L.BNF    , L.BF     , L.JR
794    INST_L_MOVHI          ,         // L.MOVI
795    INST_L_CSYNC          ,         // L.CSYNC
796    INST_L_MSYNC          ,         // L.MSYNC
797    INST_L_PSYNC          ,         // L.PSYNC
798    INST_L_RFE            ,         // L.RFE
799    INST_L_MAC            ,         // L.MAC    , L.MACI
800    INST_L_MSB            ,         // L.MSB
801    INST_L_MACRC          ,         // L.MACRC
802    INST_L_2b             ,         //
803    INST_L_MEMB           ,         // L.LBS    , L.LBZ    , L.SB 
804    INST_L_MEMH           ,         // L.LHS    , L.LHZ    , L.SH
805    INST_L_MEMW           ,         // L.LWS    , L.LWZ    , L.SW 
806    INST_L_MEMD           ,         // L.LD                , L.SD 
807    INST_L_CUST1          ,         // L.CUST1
808    INST_L_CUST2          ,         // L.CUST2
809    INST_L_CUST3          ,         // L.CUST3
810    INST_L_CUST4          ,         // L.CUST4
811    INST_L_CUST5          ,         // L.CUST5
812    INST_L_CUST6          ,         // L.CUST6
813    INST_L_CUST7          ,         // L.CUST7
814    INST_L_CUST8          ,         // L.CUST8
815    INST_L_38             ,         //
816    INST_L_39             ,         //
817    INST_L_3a             ,         //
818    INST_L_3b             ,         //
819    INST_L_3c             ,         // 
820    INST_L_3d             ,         // 
821    INST_L_3e             ,         // 
822    INST_NOP                        // L.NOP
823  } opcod_t;
824
825#define LOG2_NB_INST_L        6
826#define      NB_INST_L        64 // +1 -> INST_L_NO_IMPLEMENTED
827//#define      NB_INST_L        (INST_L_NO_IMPLEMENTED+1)
828  */
829
830}; // end namespace behavioural
831}; // end namespace morpheo             
832
833#endif
Note: See TracBrowser for help on using the repository browser.