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: