CDL Modules
timer.h
Go to the documentation of this file.
1 
22 /*a Includes */
23 
24 /*a Types */
25 /*t t_timer_control
26  */
27 typedef struct {
28  bit reset_counter "Assert to reset the timer counter to 0; this takes precedence over enable_counter";
29  bit enable_counter "Assert to enable the timer counter; otherwise it holds its value";
30  bit block_writes "Assert to block writes to the timer counter";
31  bit[8] bonus_subfraction_numer "(n-1) in fractional n/16d increment per cycle";
32  bit[8] bonus_subfraction_denom "(d-1) in fractional n/16d increment per cycle; If zero then no subfractional add";
33  bit[4] fractional_adder "f in fraction f/16 to add per cycle";
34  bit[8] integer_adder "integer amount to add to timer counter per cycle";
36 
37 /*t t_timer_value
38  */
39 typedef struct {
40  bit irq "Asserted if comparator >= timer value";
41  bit[64] value "64-bit timer value, reflecting the value in the timer counter";
Definition: timer.h:39
Definition: timer.h:27