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

Subversion Repositories versatile_fifo

[/] [versatile_fifo/] [trunk/] [rtl/] [verilog/] [gray_counter_defines.v] - Blame information for rev 17

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

Line No. Rev Author Line
1 15 unneback
// module name
2
`define CNT_MODULE_NAME gray_counter
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
 
12
// number of CNT bins
13
`define CNT_LENGTH 6
14
 
15
// clear
16
//`define CNT_CLEAR
17
 
18
// set
19
//`define CNT_SET
20
`define CNT_SET_VALUE `CNT_LENGTH'h9
21
 
22
// wrap around creates shorter cycle than maximum length
23
//`define CNT_WRAP
24
`define CNT_WRAP_VALUE `CNT_LENGTH'h9
25
 
26
// clock enable
27
`define CNT_CE
28
 
29
// q_next as an output
30
//`define CNT_QNEXT
31
 
32
// q=0 as an output
33
//`define CNT_Z
34
 
35
// q_next=0 as a registered output
36
//`define CNT_ZQ
37
 

powered by: WebSVN 2.1.0

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