#!/usr/bin/env bash # Load some platform-specific options by setting bash variables. # This file will be sourced by the main build script. PROJECT_NAME="bladerf" # Board / product name BOARD_NAME="bladeRF-micro" # Minimum Quartus version for this platform declare -A PLATFORM_QUARTUS_VER # associative array PLATFORM_QUARTUS_VER[major]=16 PLATFORM_QUARTUS_VER[minor]=0 # Project revisions available for this platform PLATFORM_REVISIONS=("hosted" "adsb" "foxhunt" "wlan") # Valid FPGA sizes for this platform PLATFORM_FPGA_SIZES=("A2" "A4" "A5" "A9") # Parameters: # $1 FPGA size # Prints string containing full device part number function get_device() { echo -n "5CEB${1}F23C8" } # Parameters: # $1 FPGA size # Prints string containing the device family function get_device_family() { echo -n "Cyclone V" } # Parameters: # $1 FPGA size # Prints string containing the amount of RAM to allocate to the common_system # RAM during Qsys generation function get_qsys_ram() { if [ "${1}" == "A4" ] || [ "${1}" == "A5" ] || [ "${1}" == "A9" ]; then rams=131072 else rams=32768 fi echo -n "${rams}" }