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

Subversion Repositories versatile_counter

[/] [versatile_counter/] [trunk/] [rtl/] [verilog/] [versatile_counter_defines.v] - Blame information for rev 20

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 unneback
// module name
2
`define CNT_MODULE_NAME vcnt
3
 
4
// counter type = [BINARY, GRAY, LFSR]
5
//`define CNT_TYPE_BINARY
6
`define CNT_TYPE_GRAY
7
//`define CNT_TYPE_LFSR
8
 
9
// q as output
10
`define CNT_Q
11 4 unneback
// for gray type counter optional binary output
12
`define CNT_Q_BIN
13 2 unneback
 
14 7 unneback
// up/down, forward/rewind
15
`define CNT_REW
16
 
17 2 unneback
// number of CNT bins
18
`define CNT_LENGTH 4
19
 
20 12 unneback
// async reset value
21 20 unneback
`define CNT_RESET_VALUE 0
22 12 unneback
 
23 2 unneback
// clear
24
`define CNT_CLEAR
25
 
26
// set
27
`define CNT_SET
28 20 unneback
`define CNT_SET_VALUE 9
29 2 unneback
 
30
// wrap around creates shorter cycle than maximum length
31
//`define CNT_WRAP
32 20 unneback
`define CNT_WRAP_VALUE 9
33 2 unneback
 
34
// clock enable
35
`define CNT_CE
36
 
37
// q_next as an output
38
//`define CNT_QNEXT
39
 
40
// q=0 as an output
41
//`define CNT_Z
42
 
43
// q_next=0 as a registered output
44
//`define CNT_ZQ
45
 
46 20 unneback
// level indicator 1
47
`define CNT_LEVEL1
48
`define CNT_LEVEL1_VALUE 1
49
 
50
// level indicator 2
51
`define CNT_LEVEL2
52
`define CNT_LEVEL2_VALUE 2

powered by: WebSVN 2.1.0

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