Count from init values to one, not zero

This commit is contained in:
Joachim Strömbergson 2022-10-18 11:06:40 +02:00
parent f6046d55a9
commit ddd969870e
No known key found for this signature in database
GPG Key ID: 865B8A548EA61679

View File

@ -178,7 +178,7 @@ module timer_core(
end
else begin
if (prescaler_reg == 0) begin
if (prescaler_reg == 1) begin
core_ctrl_new = CTRL_TIMER;
core_ctrl_we = 1'h1;
end else begin
@ -197,7 +197,7 @@ module timer_core(
end
else begin
if (timer_reg == 0) begin
if (timer_reg == 1) begin
ready_new = 1'h1;
ready_we = 1'h1;
core_ctrl_new = CTRL_IDLE;