Skip to content

Patches for simple_video_out/svo PLLs for latest IDE compatibility #19

@kevpatt

Description

@kevpatt

These patches fix the PLL parameters to enable compatilbity between the simple_video_out/svo project and the latest GoWin IDE

diff --git a/simple_video_out/svo/src/gowin_pll/gowin_pll.v b/simple_video_out/svo/src/gowin_pll/gowin_pll.v
index d115039..2b8a14d 100644
--- a/simple_video_out/svo/src/gowin_pll/gowin_pll.v
+++ b/simple_video_out/svo/src/gowin_pll/gowin_pll.v
@@ -94,7 +94,7 @@ defparam PLL_inst.DYN_DT3_SEL = "FALSE";
 defparam PLL_inst.DYN_ICP_SEL = "FALSE";
 defparam PLL_inst.DYN_LPF_SEL = "FALSE";
 defparam PLL_inst.FCLKIN = "50";
-defparam PLL_inst.IDIV_SEL = 3;
+defparam PLL_inst.IDIV_SEL = 2;
 defparam PLL_inst.FBDIV_SEL = 1;
 defparam PLL_inst.CLKFB_SEL = "INTERNAL";
 defparam PLL_inst.ODIV0_SEL = 9;
@@ -105,7 +105,7 @@ defparam PLL_inst.ODIV3_SEL = 8;
 defparam PLL_inst.ODIV4_SEL = 8;
 defparam PLL_inst.ODIV5_SEL = 8;
 defparam PLL_inst.ODIV6_SEL = 8;
-defparam PLL_inst.MDIV_SEL = 68;
+defparam PLL_inst.MDIV_SEL = 45;
 defparam PLL_inst.MDIV_FRAC_SEL = 0;
 defparam PLL_inst.CLKOUT0_EN = "TRUE";
 defparam PLL_inst.CLKOUT1_EN = "FALSE";
diff --git a/simple_video_out/svo/src/gowin_pll/gowin_clkdiv.v b/simple_video_out/svo/src/gowin_pll/gowin_clkdiv.v
index c640304..762e880 100644
--- a/simple_video_out/svo/src/gowin_pll/gowin_clkdiv.v
+++ b/simple_video_out/svo/src/gowin_pll/gowin_clkdiv.v
@@ -95,7 +95,7 @@ defparam PLL_inst.DYN_DT3_SEL = "FALSE";
 defparam PLL_inst.DYN_ICP_SEL = "FALSE";
 defparam PLL_inst.DYN_LPF_SEL = "FALSE";
 defparam PLL_inst.FCLKIN = "125.875";
-defparam PLL_inst.IDIV_SEL = 1;
+defparam PLL_inst.IDIV_SEL = 2;
 defparam PLL_inst.FBDIV_SEL = 1;
 defparam PLL_inst.CLKFB_SEL = "INTERNAL";
 defparam PLL_inst.ODIV0_SEL = 3;
@@ -106,7 +106,7 @@ defparam PLL_inst.ODIV3_SEL = 8;
 defparam PLL_inst.ODIV4_SEL = 8;
 defparam PLL_inst.ODIV5_SEL = 8;
 defparam PLL_inst.ODIV6_SEL = 8;
-defparam PLL_inst.MDIV_SEL = 10;
+defparam PLL_inst.MDIV_SEL = 20;
 defparam PLL_inst.MDIV_FRAC_SEL = 0;
 defparam PLL_inst.CLKOUT0_EN = "TRUE";
 defparam PLL_inst.CLKOUT1_EN = "TRUE";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions