dummy PLL added with bypass, rename ref to ref_v due to ref being keyword
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 3 Jun 2021 14:43:21 +0000 (15:43 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 3 Jun 2021 14:44:05 +0000 (15:44 +0100)
libresoc/core.py
libresoc/pll.v [new file with mode: 0644]

index 853191f3554583d6725590daf014326f3f3a61f3..6c39cd91716b13507116205b1f3c50f8924fca1a 100644 (file)
@@ -375,6 +375,7 @@ class LibreSoC(CPU):
     def add_sources(platform):
         cdir = os.path.dirname(__file__)
         platform.add_source(os.path.join(cdir, "libresoc.v"))
+        platform.add_source(os.path.join(cdir, "pll.v"))
         platform.add_source(os.path.join(cdir, "SPBlock_512W64B8W.v"))
 
     def do_finalize(self):
diff --git a/libresoc/pll.v b/libresoc/pll.v
new file mode 100644 (file)
index 0000000..9dc8428
--- /dev/null
@@ -0,0 +1,10 @@
+module pll(input [0:0] ref_v,
+           output [0:0] div_out_test,
+           input [0:0] a0, 
+           input [0:0] a1,
+           output [0:0] vco_test_ana, 
+           output [0:0] out_v);
+  /* fake PLL */
+  assign out_v = ref;
+endmodule
+