'''
+class sdmmc(PBase):
+
+ def slowimport(self):
+ return " import sdcard_dummy :: *;"
+
+ def slowifdecl(self):
+ return " interface QSPI_out sd{0}_out;\n" + \
+ " method Bit#(1) sd{0}_isint;"
+
+ def num_axi_regs32(self):
+ return 13
+
+ def mkslow_peripheral(self):
+ return " Ifc_sdcard_dummy sd{0} <- mksdcard_dummy();"
+
+ def _mk_connection(self, name=None, count=0):
+ return "sd{0}.slave"
+
+ def pinname_in(self, pname):
+ return "out.%s_in" % pname
+
+ def pinname_out(self, pname):
+ return "out.%s_out" % pname
+
+ def pinname_outen(self, pname):
+ if pname.startswith('d'):
+ return "out.%s_outen" % pname
+
+
class spi(PBase):
def slowimport(self):
'spi': spi,
'pwm': pwm,
'eint': eint,
+ 'sd': sdmmc,
'gpio': gpio
}.items():
if name.startswith(k):
'plic.bsv', 'Cur_Cycle.bsv',
'ClockDiv.bsv', 'axi_addr_generator.bsv',
'jtagdtm_new.bsv', 'jtagdefines.bsv',
+ 'sdcard_dummy.bsv',
'pwm.bsv', 'qspi.bsv', 'qspi.defs',
]:
shutil.copyfile(os.path.join(cwd, fname),