From 6e84e9c689cf60f93220f68d2d089de7b29a3adc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 7 Sep 2024 12:10:22 -0700 Subject: [PATCH] adjust 'inv genclk' to allow per-hardware PLLs --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 5e2fb62..e532d6f 100644 --- a/tasks.py +++ b/tasks.py @@ -235,8 +235,8 @@ def clean(c): shutil.rmtree("out") @task -def genclk(c, in_mhz=25, main_mhz=100, cpu_mhz=10, vga_mhz=25): - out = Path("sentinel65x/PLL.v") +def genclk(c, hardware_name, in_mhz=25, main_mhz=100, cpu_mhz=8, vga_mhz=25): + out = Path(f"hardware/{hardware_name}/PLL.v") c.run(f"ecppll -f {out} --module PLL --clkin_name CLK_REF --clkin {in_mhz} --clkout0_name CLK_MAIN --clkout0 {main_mhz} --clkout1_name CLK_CPU --clkout1 {cpu_mhz} --clkout2_name CLK_VGA --clkout2 {vga_mhz}") bsv_out = out.with_suffix(".bsv") with open(bsv_out) as f: