add SPBlock_512W64B8W.v to sources
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Apr 2021 16:51:19 +0000 (17:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Apr 2021 16:53:16 +0000 (17:53 +0100)
Makefile
SPBlock_512W64B8W.v [deleted file]
libresoc/SPBlock_512W64B8W.v [new file with mode: 0644]
libresoc/core.py

index a235508aeb5a02eda4150aa004b9b15e2c932afd..1bfeeb3e7747128f2886a762cad0a3d11ac29109 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ ls1804k:
        cp build/ls180sram4k/gateware/mem.init .
        cp build/ls180sram4k/gateware/mem_1.init .
        cp libresoc/libresoc.v .
+       cp libresoc/SPBlock_512W64B8W.v .
        yosys -p 'read_verilog libresoc.v' \
           -p 'write_ilang libresoc_cvt.il'
        yosys -p 'read_verilog ls180.v' \
@@ -19,6 +20,7 @@ ls180:
        cp build/ls180/gateware/mem.init .
        cp build/ls180/gateware/mem_1.init .
        cp libresoc/libresoc.v .
+       cp libresoc/SPBlock_512W64B8W.v .
        yosys -p 'read_verilog libresoc.v' \
              -p 'read_verilog ls180.v' \
              -p 'proc' \
diff --git a/SPBlock_512W64B8W.v b/SPBlock_512W64B8W.v
deleted file mode 100644 (file)
index ddab968..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-(* blackbox = 1 *)
-module SPBlock_512W64B8W(input [8:0] a,
-                        input [63:0] d,
-                        output [63:0] q,
-                        input [7:0] we,
-                        input clk);
-endmodule // SPBlock_512W64B8W
diff --git a/libresoc/SPBlock_512W64B8W.v b/libresoc/SPBlock_512W64B8W.v
new file mode 100644 (file)
index 0000000..ddab968
--- /dev/null
@@ -0,0 +1,7 @@
+(* blackbox = 1 *)
+module SPBlock_512W64B8W(input [8:0] a,
+                        input [63:0] d,
+                        output [63:0] q,
+                        input [7:0] we,
+                        input clk);
+endmodule // SPBlock_512W64B8W
index 66f3eb246a24393ee105771dc357ddd230977888..01465117a03ae80f69d5e6fa7487a6193bdbbd0a 100644 (file)
@@ -368,6 +368,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, "SPBlock_512W64B8W.v"))
 
     def do_finalize(self):
         self.specials += Instance("test_issuer", **self.cpu_params)