try setting domain to "CPU"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 13:50:19 +0000 (14:50 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 9 Jun 2021 13:50:19 +0000 (14:50 +0100)
libresoc/core.py
ls180soc.py

index 7ebbbddad282793ccf22d13964c90dd88b4fc418..6706a214406bdbdbec74dd6fd35b0841cd06b44a 100644 (file)
@@ -186,7 +186,7 @@ class LibreSoC(CPU):
         self.platform     = platform
         self.variant      = variant
         self.reset        = Signal()
-        self.clk          = ClockSignal()
+        self.clk          = ClockSignal("cpu")
 
         irq_en = "noirq" not in variant
 
index 5f91d69ecd78b2426077476436c48d7c8b786191..7836adde0d383310785a372ef38616f9d23987dc 100755 (executable)
@@ -433,8 +433,8 @@ class LibreSoCSim(SoCCore):
             self.comb += self.cpu.clk_sel.eq(clksel_i) # allow clock src select
             self.comb += pll_test_o.eq(self.cpu.pll_test_o) # "test" from PLL
             self.comb += pll_vco_o.eq(self.cpu.pll_vco_o) # PLL lock flag
-            clk = ClockSignal()
-            self.comb += clk.eq(self.cpu.pllclk_o) # PLL out into cpu
+            cpu_clk = ClockDomain("cpu")
+            self.comb += cpu_clk.eq(self.cpu.pllclk_o) # PLL out into cpu
 
         #ram_init = []