mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-20 23:26:29 -04:00
(fpga) Add note about allowed values and fixed default values.
Added note that prescaler and timer shoild be set to nonzero values. Added note that prescaler and timer can't be changed when the timer is running. Changed reset values for timer and prescalet to one. Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
6d8c0aff64
commit
dc72d9907d
@ -37,3 +37,6 @@ The following addresses define the API for the timer:
|
||||
FREE_RUNNING_BIT 0
|
||||
|
||||
```
|
||||
|
||||
ADDR_PRESCALER and ADDR_TIMER should be set to a non-negative value (default are one.)
|
||||
Note that these values can't be changed when the timer is running.
|
||||
|
@ -106,8 +106,8 @@ module timer(
|
||||
start_reg <= 1'h0;
|
||||
stop_reg <= 1'h0;
|
||||
free_running_reg <= 1'h0;
|
||||
prescaler_reg <= 32'h0;
|
||||
timer_reg <= 32'h0;
|
||||
prescaler_reg <= 32'h1;
|
||||
timer_reg <= 32'h1;
|
||||
end
|
||||
else begin
|
||||
start_reg <= start_new;
|
||||
|
Loading…
x
Reference in New Issue
Block a user