- LedChaser.
- use of soc.build_name in load/flash bitstream.
),
]
+_sdcard_pmod_io = [ # https://store.digilentinc.com/pmod-microsd-microsd-card-slot/
+ ("sdcard", 0,
+ Subsignal("data", Pins("D15 J17 J18 E15")),
+ Subsignal("cmd", Pins("E16")),
+ Subsignal("clk", Pins("C15")),
+ Subsignal("cd", Pins("K15")),
+ IOStandard("LVCMOS33"), Misc("SLEW=FAST")
+ ),
+]
+
# Connectors ---------------------------------------------------------------------------------------
_connectors = [
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT41K128M16
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_etherbone(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(4)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import IS42S16160
from litedram.phy import GENSDRPHY
l2_cache_reverse = True
)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.sof"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".sof"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT41J256M16
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_etherbone(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bin"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bin"))
if args.flash:
flash(args.bios_flash_offset)
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT8JTF12864
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import EDY4016A
from litedram.phy import usddrphy
self.platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks REQP-1753]")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import AS4C16M16
from litedram.phy import GENSDRPHY
l2_cache_reverse = True
)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
-from litex.soc.integration.soc import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import K4B2G1646F
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(6)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT47H64M16
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(16)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
def add_sdcard(self):
sdcard_pads = self.platform.request("sdcard")
if hasattr(sdcard_pads, "rst"):
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT41K256M16
from litedram.phy import s7ddrphy
self.add_csr("ethphy")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.bit"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".bit"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram import modules as litedram_modules
from litedram.phy import GENSDRPHY
l2_cache_reverse = True
)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.svf"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".svf"))
if __name__ == "__main__":
main()
from litex.soc.integration.soc_core import *
from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import *
+from litex.soc.cores.led import LedChaser
from litedram.modules import MT41K64M16
from litedram.phy import ECP5DDRPHY
self.add_csr("ethphy")
self.add_ethernet(phy=self.ethphy)
+ # Leds -------------------------------------------------------------------------------------
+ self.submodules.leds = LedChaser(
+ pads = Cat(*[platform.request("user_led", i) for i in range(8)]),
+ sys_clk_freq = sys_clk_freq)
+ self.add_csr("leds")
+
# Build --------------------------------------------------------------------------------------------
def main():
if args.load:
prog = soc.platform.create_programmer()
- prog.load_bitstream(os.path.join(builder.gateware_dir, "top.svf"))
+ prog.load_bitstream(os.path.join(builder.gateware_dir, soc.build_name + ".svf"))
if __name__ == "__main__":
main()