mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-29 17:36:26 -05:00
Count from init values to one, not zero
This commit is contained in:
parent
f6046d55a9
commit
ddd969870e
@ -178,7 +178,7 @@ module timer_core(
|
|||||||
end
|
end
|
||||||
|
|
||||||
else begin
|
else begin
|
||||||
if (prescaler_reg == 0) begin
|
if (prescaler_reg == 1) begin
|
||||||
core_ctrl_new = CTRL_TIMER;
|
core_ctrl_new = CTRL_TIMER;
|
||||||
core_ctrl_we = 1'h1;
|
core_ctrl_we = 1'h1;
|
||||||
end else begin
|
end else begin
|
||||||
@ -197,7 +197,7 @@ module timer_core(
|
|||||||
end
|
end
|
||||||
|
|
||||||
else begin
|
else begin
|
||||||
if (timer_reg == 0) begin
|
if (timer_reg == 1) begin
|
||||||
ready_new = 1'h1;
|
ready_new = 1'h1;
|
||||||
ready_we = 1'h1;
|
ready_we = 1'h1;
|
||||||
core_ctrl_new = CTRL_IDLE;
|
core_ctrl_new = CTRL_IDLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user