pep8 cleanup
[pinmux.git] / src / bsv / peripheral_gen / sdmmc.py
1 from bsv.peripheral_gen.base import PBase
2
3
4 class sdmmc(PBase):
5
6 def slowimport(self):
7 return " import sdcard_dummy :: *;"
8
9 def num_axi_regs32(self):
10 return 13
11
12 def mkslow_peripheral(self):
13 return " Ifc_sdcard_dummy sd{0} <- mksdcard_dummy();"
14
15 def _mk_connection(self, name=None, count=0):
16 return "sd{0}.slave"
17
18 def pinname_in(self, pname):
19 return "%s_in" % pname
20
21 def pinname_out(self, pname):
22 if pname.startswith('d'):
23 return "%s_out" % pname
24 return pname
25
26 def pinname_outen(self, pname):
27 if pname.startswith('d'):
28 return "%s_outen" % pname