增加8b10b打开关闭的开关

This commit is contained in:
2025-09-08 17:17:12 +08:00
parent 561f394b16
commit 31b362b291
4 changed files with 37 additions and 4 deletions

View File

@@ -366,7 +366,7 @@ def set_dev_clk(cfg):
code_for_clk = ""
for k in global_setting_dev_clk:
v = global_setting_dev_clk[k]
ph = int(8 * 1000000 * v[0] / 360.0)
ph = int(8 * 1000000 * (int(abs(v[0]))%360) / 360.0)
period = int(1000000 + v[1])
code_for_clk = code_for_clk + __gen_slv_clk(k, ph, period)