This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import shutil | |
import argparse | |
from migen import * | |
from litex.build import tools | |
from litex.build.generic_platform import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# LiteEth UDP Inter-board stream demo. | |
# | |
# Copyright (c) 2022 Florent Kermarrec <[email protected]> | |
# SPDX-License-Identifier: BSD-2-Clause | |
# ./arty.py --build --load | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import reduce | |
from operator import and_ | |
from migen import * | |
from migen.genlib.resetsync import AsyncResetSynchronizer | |
from litex.build.io import DifferentialInput | |
from litex.soc.cores.clock import S7MMCM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import time | |
from litex import RemoteClient | |
bus = RemoteClient() | |
bus.open() | |
# # # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file is part of LiteX. | |
# | |
# Copyright (c) 2021 Florent Kermarrec <[email protected]> | |
# SPDX-License-Identifier: BSD-2-Clause | |
# Ultraembedded's USB CDC Device LiteX wrapper: | |
# USB CDC Core: https://github.com/ultraembedded/core_usb_cdc | |
# UMTI <> ULPI Core: https://github.com/ultraembedded/core_ulpi_wrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from migen import * | |
from litex.soc.interconnect import wishbone | |
# I2C----------------------------------------------------------------------------------------------- | |
class I2CClockGen(Module): | |
def __init__(self, width): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
from litex import RemoteClient | |
from litex.soc.cores.icap import * | |
# Add the ICAP module to your 7-Series LiteX SoC: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from migen import * | |
from wb_master import * | |
from wb_master import _WRITE_CMD, _WAIT_CMD, _DONE_CMD | |
dfii_control_sel = 0x01 | |
dfii_control_cke = 0x02 | |
dfii_control_odt = 0x04 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# This file is part of LiteX-Boards. | |
# | |
# Copyright (c) 2015-2019 Florent Kermarrec <[email protected]>, | |
# Copyright (c) 2020 Staf Verhaegen <[email protected]> | |
# SPDX-License-Identifier: BSD-2-Clause | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Raspberry Pi Pico <> LiteX SoC (on GoWin FPGA) proof of concept. | |
# | |
# Copyright (c) 2021 Florent Kermarrec <[email protected]> | |
# SPDX-License-Identifier: BSD-2-Clause | |
import os | |
import argparse |
NewerOlder