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
# 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 |