2023-11-07 14:37:22 +00:00
|
|
|
|
|
|
|
#### ECP5 specific ####
|
|
|
|
ECP5_DEVICE=25F
|
|
|
|
# ECP5_DEVICE: 25F: Create bitstream for the LFE5U-25F
|
|
|
|
# 85F: Create bitstream for the LFE5U-85F
|
|
|
|
ECP5_PACKAGE=CSFBGA285
|
|
|
|
# ECP5_PACKAGE: CSFBGA285: The one used in OrangeCrab
|
2023-12-05 21:46:46 +00:00
|
|
|
|
|
|
|
FPGA_FILE_EXT=dfu
|
|
|
|
|
|
|
|
#This is on the 8th postiion in the chip id, for example
|
|
|
|
# LFE5U-25-7BG381I
|
|
|
|
# ^---------- this would be a 7 speed grade
|
|
|
|
#
|
|
|
|
# 6 is the slowest and 8 is the fastest
|
|
|
|
ECP5_SPEED_GRADE=8
|
|
|
|
|
2024-02-09 23:28:21 +00:00
|
|
|
ROM_PART_ID=24lc512
|
2023-12-05 21:46:46 +00:00
|
|
|
|
2023-12-06 18:12:57 +00:00
|
|
|
######## End of user configuration ########
|
2023-12-05 21:46:46 +00:00
|
|
|
|
2023-12-07 16:39:04 +00:00
|
|
|
#NOT USED OUTSIDE OF HERE
|
2024-02-09 23:28:21 +00:00
|
|
|
FPGA_SOC_COMMON_SOURCES=peripherals/I2C_driver.v peripherals/ascii_to_HD44780_driver.v peripherals/pcf8574_for_HD44780.v peripherals/Wishbone_IO_driver.v peripherals/Wishbone_memory_driver.v peripherals/I2C_driver_multiplexer.v peripherals/CPU_to_I2C_driver_bridge.v
|
2023-12-07 16:39:04 +00:00
|
|
|
|
|
|
|
FPGA_SOC_SOURCES=${FPGA_SOC_COMMON_SOURCES} external_ip/litedram_core_ecp5_phy.v
|
|
|
|
FPGA_SOC_SIM_SOURCES=${FPGA_SOC_COMMON_SOURCES} fpga_config/OrangeCrab_r0.2.1/verilator_config.vlt external_ip/litedram_core_ecp5_phy_sim.v
|
2023-12-05 21:46:46 +00:00
|
|
|
|
2024-02-09 23:28:21 +00:00
|
|
|
FPGA_BOOTCODE=../boot_code/i2c_bootloader.stxt
|
|
|
|
|
|
|
|
ROM_FILE=../boot_code/brainfuck_mandelbrot.bin
|
2023-12-05 21:46:46 +00:00
|
|
|
|
2024-01-22 20:19:14 +00:00
|
|
|
upload_bitstream: dfu_upload
|
2024-02-09 23:28:21 +00:00
|
|
|
upload_bootrom: minipro_upload
|
2023-12-05 21:46:46 +00:00
|
|
|
|
2023-12-06 18:12:57 +00:00
|
|
|
${BUILD_FILES_PREFIX}bitstream_${BUILD_NAME}.bit:${BUILD_FILES_PREFIX}nextpnr-ecp5_${BUILD_NAME}.bit
|
2023-12-05 21:46:46 +00:00
|
|
|
${Q}cp "$^" "$@"
|
|
|
|
|
|
|
|
${BUILD_FILES_PREFIX}synth_${FPGA_BOARD}.json:${BUILD_FILES_PREFIX}synth_ecp5_${FPGA_BOARD}.json
|
|
|
|
${Q}cp "$^" "$@"
|