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

Subversion Repositories hive

[/] [hive/] [trunk/] [v04.05/] [boot_code_defs.h] - Blame information for rev 10

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

Line No. Rev Author Line
1 4 ericw
`include "reg_set_addr.h"
2
`include "op_encode.h"
3
 
4
localparam IM_W = 6;
5
 
6
// defines that make programming code more human readable
7
`define __                      4'h0
8
`define s0                      4'h0
9
`define s1                      4'h1
10
`define s2                      4'h2
11
`define s3                      4'h3
12
`define s4                      4'h4
13
`define s5                      4'h5
14
`define s6                      4'h6
15
`define s7                      4'h7
16
`define P0                      4'h8
17
`define P1                      4'h9
18
`define P2                      4'ha
19
`define P3                      4'hb
20
`define P4                      4'hc
21
`define P5                      4'hd
22
`define P6                      4'he
23
`define P7                      4'hf
24
//
25
`define nop                     op_nop[DATA_W-1:8]
26
`define pop                     op_pop[DATA_W-1:8]
27
`define pgc                     op_pgc[DATA_W-1:8]
28
`define lit_s           op_lit_s[DATA_W-1:8]
29
`define lit_h           op_lit_h[DATA_W-1:8]
30
`define lit_u           op_lit_u[DATA_W-1:8]
31
`define reg_rs          op_reg_rs[DATA_W-1:8]
32
`define reg_rh          op_reg_rh[DATA_W-1:8]
33
`define reg_w           op_reg_w[DATA_W-1:8]
34
`define reg_wh          op_reg_wh[DATA_W-1:8]
35
//
36
`define cpy                     op_cpy[DATA_W-1:8]
37
`define nsg                     op_nsg[DATA_W-1:8]
38
`define not                     op_not[DATA_W-1:8]
39
`define flp                     op_flp[DATA_W-1:8]
40
`define lzc                     op_lzc[DATA_W-1:8]
41
`define bra                     op_bra[DATA_W-1:8]
42
`define bro                     op_bro[DATA_W-1:8]
43
`define brx                     op_brx[DATA_W-1:8]
44
`define and                     op_and[DATA_W-1:8]
45
`define orr                     op_orr[DATA_W-1:8]
46
`define xor                     op_xor[DATA_W-1:8]
47
//
48
`define add                     op_add[DATA_W-1:8]
49
`define add_xs          op_add_xs[DATA_W-1:8]
50
`define add_xu          op_add_xu[DATA_W-1:8]
51
`define sub                     op_sub[DATA_W-1:8]
52
`define sub_xs          op_sub_xs[DATA_W-1:8]
53
`define sub_xu          op_sub_xu[DATA_W-1:8]
54
`define mul                     op_mul[DATA_W-1:8]
55
`define mul_xs          op_mul_xs[DATA_W-1:8]
56
`define mul_xu          op_mul_xu[DATA_W-1:8]
57
`define shl_s           op_shl_s[DATA_W-1:8]
58
`define shl_u           op_shl_u[DATA_W-1:8]
59
`define pow                     op_pow[DATA_W-1:8]
60
//
61
`define jmp_z           op_jmp_z[DATA_W-1:8]
62
`define jmp_nz          op_jmp_nz[DATA_W-1:8]
63
`define jmp_lz          op_jmp_lz[DATA_W-1:8]
64
`define jmp_nlz op_jmp_nlz[DATA_W-1:8]
65
`define jmp                     op_jmp[DATA_W-1:8]
66
`define gto                     op_gto[DATA_W-1:8]
67
`define gsb                     op_gsb[DATA_W-1:8]
68
//
69
`define mem_irs op_mem_irs[DATA_W-1:12]
70
`define mem_irh op_mem_irh[DATA_W-1:12]
71
`define mem_iw          op_mem_iw[DATA_W-1:12]
72
`define mem_iwh op_mem_iwh[DATA_W-1:12]
73
//
74
`define jmp_ie          op_jmp_ie[DATA_W-1:12]
75
`define jmp_ine op_jmp_ine[DATA_W-1:12]
76
`define jmp_ils op_jmp_ils[DATA_W-1:12]
77
`define jmp_inls        op_jmp_inls[DATA_W-1:12]
78
`define jmp_ilu op_jmp_ilu[DATA_W-1:12]
79
`define jmp_inlu        op_jmp_inlu[DATA_W-1:12]
80
//
81
`define jmp_iz          op_jmp_iz[DATA_W-1:10]
82
`define jmp_inz op_jmp_inz[DATA_W-1:10]
83
`define jmp_ilz op_jmp_ilz[DATA_W-1:10]
84
`define jmp_inlz        op_jmp_inlz[DATA_W-1:10]
85
//
86
`define dat_is          op_dat_is[DATA_W-1:10]
87
`define add_is          op_add_is[DATA_W-1:10]
88
`define shl_is          op_shl_is[DATA_W-1:10]
89
`define psu_i           op_psu_i[DATA_W-1:10]
90
//
91
`define VER                     VER_ADDR[IM_W-1:0]
92
`define THRD_ID THRD_ID_ADDR[IM_W-1:0]
93
`define CLR                     CLR_ADDR[IM_W-1:0]
94
`define INTR_EN INTR_EN_ADDR[IM_W-1:0]
95
`define OP_ER           OP_ER_ADDR[IM_W-1:0]
96
`define STK_ER          STK_ER_ADDR[IM_W-1:0]
97
`define IO_LO           IO_LO_ADDR[IM_W-1:0]
98
`define IO_HI           IO_HI_ADDR[IM_W-1:0]
99
`define UART_RX UART_RX_ADDR[IM_W-1:0]
100
`define UART_TX UART_TX_ADDR[IM_W-1:0]

powered by: WebSVN 2.1.0

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