1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/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}"
}
|