OpenCores
URL https://opencores.org/ocsvn/lwrisc/lwrisc/trunk

Subversion Repositories lwrisc

[/] [lwrisc/] [trunk/] [RTL/] [clairisc_def.h] - Blame information for rev 11

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 mcupro
/******************************************************************
2
 *                                                                *
3
 *    Author: Liwei                                               *
4
 *                                                                *
5
 *    This file is part of the "ClaiRISC" project,                *
6
 *    The folder in CVS is named as "lwrisc"                      *
7
 *    Downloaded from:                                            *
8
 *    http://www.opencores.org/pdownloads.cgi/list/lwrisc         *
9
 *                                                                *
10
 *    If you encountered any problem, please contact me via       *
11
 *    Email:mcupro@opencores.org  or mcupro@163.com               *
12
 *                                                                *
13
 ******************************************************************/
14
 
15 7 mcupro
//`define SIM
16
 
17
 
18
 
19
 
20
`define MUXA_W     0
21
`define MUXA_BD    1
22
 
23
`define MUXB_EK    0
24
`define MUXB_REG   1
25
 
26
`define BRC_NOP    0
27
`define BRC_ZERO   1
28
`define BRC_NZERO  2
29
 
30
`define BG_ZERO    1
31
`define BG_NZERO   2
32
`define BG_IGN     0
33
`define BG_NOP     0
34
 
35
`define PC_NOP     0
36
`define PC_BRC     1
37
`define PC_GOTO    2
38
`define PC_CALL    2
39
`define PC_INS     2
40
`define PC_RET     3
41
`define PC_NEXT    4
42
 
43
`define MUXB_IGN     1'BX
44
`define MUXA_IGN     1'BX
45
 
46
`define R1_LEN      1
47
`define R2_LEN                  2
48
`define R3_LEN                  3
49
`define R4_LEN      4
50
`define R5_LEN      5
51
`define R8_LEN                  8
52
`define R9_LEN                  9
53
`define R11_LEN                 11
54
`define R12_LEN                 12
55
 
56
`define ALU_NOP    0
57
`define ALU_ADD    1
58
`define ALU_SUB    2
59
`define ALU_AND    3
60
`define ALU_OR     4
61
`define ALU_XOR    5
62
`define ALU_COM    6
63
`define ALU_ROR    7
64
`define ALU_ROL    8
65
`define ALU_SWAP   9
66
`define ALU_BSF    10
67
`define ALU_BCF    11
68
`define ALU_ZERO   12
69
`define ALU_DEC    13
70
`define ALU_INC    14
71
`define ALU_PB     15
72
`define ALU_PA     16
73
`define ALU_BTFSC  17
74
`define ALU_BTFSS  18
75
 
76
`define STK_PSH        1
77
`define STK_POP        2
78
`define STK_NOP        0
79
 
80
`define EN             1
81
`define DIS            0
82
 
83
//`define    TTE_MTHD1

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.