Use num/denom for PTP clock drift

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2023-11-07 00:41:02 -08:00
parent 6131079494
commit 357dd26aae
3 changed files with 19 additions and 26 deletions

View File

@@ -252,9 +252,8 @@ async def run_drift_adjustment(dut):
await tb.reset()
tb.ptp_clock.drift_ns = 0
tb.ptp_clock.drift_fns = 20
tb.ptp_clock.drift_rate = 5
tb.ptp_clock.drift_num = 20
tb.ptp_clock.drift_denom = 5
await RisingEdge(dut.clk)
start_time = get_sim_time('sec')