plat.request("ddram", obj=soc.ddrphy, name_map=lambda s: "sd_" + s)
plat.request("eth", obj=soc.minimac, name_map=lambda s: "phy_" + s)
plat.request("vga", obj=soc.fb, name_map=lambda s: "vga_" + s)
+ plat.request("dvi_in", 0, obj=soc.dvisampler0)
+ plat.request("dvi_in", 1, obj=soc.dvisampler1)
# set extra constraints
plat.add_platform_command("""
#ifndef __CSRBASE_H
#define __CSRBASE_H
-#define UART_BASE 0xe0000000
-#define DFII_BASE 0xe0000800
-#define IDENTIFIER_BASE 0xe0001000
-#define TIMER0_BASE 0xe0001800
-#define MINIMAC_BASE 0xe0002000
-#define FB_BASE 0xe0002800
-#define ASMIPROBE_BASE 0xe0003000
+#define UART_BASE 0xe0000000
+#define DFII_BASE 0xe0000800
+#define IDENTIFIER_BASE 0xe0001000
+#define TIMER0_BASE 0xe0001800
+#define MINIMAC_BASE 0xe0002000
+#define FB_BASE 0xe0002800
+#define ASMIPROBE_BASE 0xe0003000
+#define DVISAMPLER0_BASE 0xe0003800
+#define DVISAMPLER0_EDID_MEM_BASE 0xe0004000
+#define DVISAMPLER1_BASE 0xe0004800
+#define DVISAMPLER1_EDID_MEM_BASE 0xe0005000
#endif /* __CSRBASE_H */
from migen.bank import csrgen
from milkymist import m1crg, lm32, norflash, uart, s6ddrphy, dfii, asmicon, \
- identifier, timer, minimac3, framebuffer, asmiprobe
+ identifier, timer, minimac3, framebuffer, asmiprobe, dvisampler
from cmacros import get_macros
MHz = 1000000
self.submodules.timer0 = timer.Timer()
self.submodules.fb = framebuffer.Framebuffer(asmiport_fb)
self.submodules.asmiprobe = asmiprobe.ASMIprobe(self.asmicon.hub)
+ self.submodules.dvisampler0 = dvisampler.DVISampler("02")
+ self.submodules.dvisampler1 = dvisampler.DVISampler("02")
self.submodules.csrbankarray = csrgen.BankArray(self, csr_address_map)
self.submodules.csrcon = csr.Interconnect(self.wishbone2csr.csr, self.csrbankarray.get_buses())