URL
https://opencores.org/ocsvn/versatile_counter/versatile_counter/trunk
Subversion Repositories versatile_counter
Compare Revisions
- This comparison shows the changes necessary to convert path
/versatile_counter/trunk/rtl/verilog
- from Rev 2 to Rev 4
- ↔ Reverse comparison
Rev 2 → Rev 4
/versatile_counter.v
6,6 → 6,9
( |
`ifdef CNT_TYPE_GRAY |
output reg [`CNT_LENGTH:1] q, |
`ifdef CNT_Q_BIN |
output [`CNT_LENGTH:1] q_bin, |
`endif |
`else |
`ifdef CNT_Q |
output [`CNT_LENGTH:1] q, |
115,6 → 118,9
if (cke) |
`endif |
q <= (q_next>>1) ^ q_next; |
`ifdef CNT_Q_BIN |
assign q_bin = qi; |
`endif |
`else |
assign q = q_next; |
`endif |
/versatile_counter_defines.v
8,6 → 8,8
|
// q as output |
`define CNT_Q |
// for gray type counter optional binary output |
`define CNT_Q_BIN |
|
// number of CNT bins |
`define CNT_LENGTH 4 |