From 2d7c7794f51cc6a18ccda1c14ba62c58d2f50074 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 10 Mar 2019 21:06:37 +0800 Subject: [PATCH] hw: foboot-bitstream: remove debug pins, use epfifo Remove the debug pins to let timing close. Signed-off-by: Sean Cross --- hw/foboot-bitstream.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/foboot-bitstream.py b/hw/foboot-bitstream.py index 0182ee8..c68a07f 100755 --- a/hw/foboot-bitstream.py +++ b/hw/foboot-bitstream.py @@ -280,23 +280,23 @@ class BaseSoC(SoCCore): else: raise ValueError("unrecognized boot_source: {}".format(boot_source)) - pmoda = platform.request("pmoda") - pmodb = platform.request("pmodb") + # pmoda = platform.request("pmoda") + # pmodb = platform.request("pmodb") # Add USB pads usb_pads = platform.request("usb") - usb_iobuf = usbio.IoBuf(pmoda.p4, pmodb.p4, usb_pads.pullup) - # self.submodules.usb = epfifo.PerEndpointFifoInterface(usb_iobuf, endpoints=[EndpointType.BIDIR]) + usb_iobuf = usbio.IoBuf(usb_pads.d_p, usb_pads.d_n, usb_pads.pullup) + self.submodules.usb = epfifo.PerEndpointFifoInterface(usb_iobuf, endpoints=[EndpointType.BIDIR]) # self.submodules.usb = epmem.MemInterface(usb_iobuf) - self.submodules.usb = unififo.UsbUniFifo(usb_iobuf) + # self.submodules.usb = unififo.UsbUniFifo(usb_iobuf) - self.comb += [ - pmoda.p1.eq(self.crg.cd_usb_48.clk), - pmodb.p1.eq(self.crg.cd_usb_12.clk), - pmodb.p2.eq(self.usb.tx.i_bit_strobe), - pmoda.p2.eq(self.usb.tx.fit_dat), - pmodb.p3.eq(self.usb.tx.fit_oe), - ] + # self.comb += [ + # pmoda.p1.eq(self.crg.cd_usb_48.clk), + # pmodb.p1.eq(self.crg.cd_usb_12.clk), + # pmodb.p2.eq(self.usb.tx.i_bit_strobe), + # pmoda.p2.eq(self.usb.tx.fit_dat), + # pmodb.p3.eq(self.usb.tx.fit_oe), + # ] # Disable final deep-sleep power down so firmware words are loaded # onto softcore's address bus.