-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobal_config.h
More file actions
41 lines (31 loc) · 775 Bytes
/
global_config.h
File metadata and controls
41 lines (31 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
`ifndef __GLOBAL_CONFIG_HEADER__
`define __GLOBAL_CONFIG_HEADER__
/*******define RESET polarity ********/
// `define POSITIVE_RESET
`define NEGATIVE_RESET
/*******define MEMORY polarity *******/
`define POSITIVE_MEMORY
// `define NEGATIVE_MEMORY
/*******define IO *******/
`define IMPLEMENT_TIMER
`define IMPLEMENT_UART
`define IMPLEMENT_GPIO
`ifdef POSITIVE_RESET
`define RESET_EDGE posedge
`define RESET_ENABLE 1'b1
`define RESET_DISABLE 1'b0
`endif
`ifdef NEGATIVE_RESET
`define RESET_EDGE negedge
`define RESET_ENABLE 1'b0
`define RESET_DISABLE 1'b1
`endif
`ifdef POSITIVE_MEMORY
`define MEM_ENABLE 1'b1
`define MEM_DISABLE 1'b0
`endif
`ifdef NEGATIVE_MEMORY
`define MEM_ENABLE 1'b0
`define MEM_DISABLE 1'b1
`endif
`endif