Skip to content

Instantly share code, notes, and snippets.

@ECP5-PCIe
ECP5-PCIe / fabrictdc.py
Created January 16, 2022 04:40
Time to digital test
# Based on https://gist.github.com/newhouseb/784cc0c24f8681c3224c15758be5d1b8
# Connect serial monitor with 115200 baud over the FTDI (might require fixing the FTDI with https://github.com/trabucayre/fixFT2232_ecp5evn)
# WARNING: Maybe this might damage your FPGA (this one seems fine, even after running at 1+ GHz for extended time periods)
# Code for ECP5 EVN board
from amaranth import *
from amaranth.build import *
from amaranth.lib.coding import Decoder
from amaranth_boards import ecp5_5g_evn as FPGA
from amaranth_stdio.serial import AsyncSerial