add spi interface
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 21 Jul 2018 08:48:39 +0000 (09:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 21 Jul 2018 08:48:39 +0000 (09:48 +0100)
src/bsv/peripheral_gen.py

index 124f1c37a3742c5fe98e23a70e54384ab7a81bcf..5010333050b0467041e74d7839e32f3987c1e5a7 100644 (file)
@@ -309,7 +309,7 @@ class spi(PBase):
             sname = self.peripheral.pname(pname).format(count)
             ps = "pinmux.peripheral_side.%s_in" % sname
             ret.append("            {0},".format(ps))
-        ret.append("            0,0")
+        ret.append("            1'b0,1'b0")
         ret.append("        });")
         ret.append("    endrule")
         return '\n'.join(ret)