correct sdmmc dummy names
authorNeel <neelgala@gmail.com>
Sat, 21 Jul 2018 11:48:25 +0000 (17:18 +0530)
committerNeel <neelgala@gmail.com>
Sat, 21 Jul 2018 11:48:25 +0000 (17:18 +0530)
src/bsv/peripheral_gen.py

index 09392933f7e390873daf36c2b3f05d234e0046a5..eee4cf7eac90a0d2269c7fb8c96bb657f3ed10ae 100644 (file)
@@ -350,14 +350,16 @@ class sdmmc(PBase):
         return "sd{0}.slave"
 
     def pinname_in(self, pname):
-        return "out.%s_in" % pname
+        return "%s_in" % pname
 
     def pinname_out(self, pname):
-        return "out.%s_out" % pname
+        if pname.startswith('d'):
+            return "%s_out" % pname
+        return pname
 
     def pinname_outen(self, pname):
         if pname.startswith('d'):
-            return "out.%s_outen" % pname
+            return "%s_outen" % pname
 
 
 class spi(PBase):