add PLL clock loop-back into CPU
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 13:42:41 +0000 (14:42 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 13:42:41 +0000 (14:42 +0100)
libresoc/core.py

index 178ebe8bfb0f38af2b9342b85a9bb8c3b303014c..7ebbbddad282793ccf22d13964c90dd88b4fc418 100644 (file)
@@ -186,6 +186,7 @@ class LibreSoC(CPU):
         self.platform     = platform
         self.variant      = variant
         self.reset        = Signal()
+        self.clk          = ClockSignal()
 
         irq_en = "noirq" not in variant
 
@@ -236,7 +237,7 @@ class LibreSoC(CPU):
 
         self.cpu_params = dict(
             # Clock / Reset
-            i_clk              = ClockSignal(),
+            i_clk              = self.clk,
             i_rst              = ResetSignal() | self.reset,
 
             # Monitoring / Debugging