URL
https://opencores.org/ocsvn/ha1588/ha1588/trunk
Subversion Repositories ha1588
Compare Revisions
- This comparison shows the changes necessary to convert path
/ha1588/trunk/rtl
- from Rev 21 to Rev 22
- ↔ Reverse comparison
Rev 21 → Rev 22
/rtc/rtc.v
26,9 → 26,9
// frequency and small time difference adjustment registers |
always @(posedge rst or posedge clk) begin |
if (rst) begin |
period_fix <= 40'd0; |
period_fix <= period_fix; //40'd0; |
adj_cnt <= 32'hffffffff; |
time_adj <= 40'd0; |
time_adj <= time_adj; //40'd0; |
end |
else begin |
if (period_ld) // load period adjustment |
90,6 → 90,8
|
if (time_acc_48s_inc) |
time_acc_48s_inc <= 1'b0; |
else if (time_acc_modulo == 38'd0) |
time_acc_48s_inc <= 1'b0; |
else if (time_acc_30n_08f + {22'd0, time_adj_08n_08f} + {22'd0, time_adj_08n_08f} >= time_acc_modulo) |
time_acc_48s_inc <= 1'b1; |
else |