Debian Codegraph @

hdl/fpga/platforms/bladerf-micro/build/platform.conf

raw symbols SCIP
1 #!/usr/bin/env bash
2 # Load some platform-specific options by setting bash variables.
3 # This file will be sourced by the main build script.
4
5 PROJECT_NAME="bladerf"
6
7 # Board / product name
8 BOARD_NAME="bladeRF-micro"
9
10 # Minimum Quartus version for this platform
11 declare -A PLATFORM_QUARTUS_VER # associative array
12 PLATFORM_QUARTUS_VER[major]=16
13 PLATFORM_QUARTUS_VER[minor]=0
14
15 # Project revisions available for this platform
16 PLATFORM_REVISIONS=("hosted" "adsb" "foxhunt" "wlan")
17
18 # Valid FPGA sizes for this platform
19 PLATFORM_FPGA_SIZES=("A2" "A4" "A5" "A9")
20
21 # Parameters:
22 # $1 FPGA size
23 # Prints string containing full device part number
24 function get_device() {
25 echo -n "5CEB${1}F23C8"
26 }
27
28 # Parameters:
29 # $1 FPGA size
30 # Prints string containing the device family
31 function get_device_family() {
32 echo -n "Cyclone V"
33 }
34
35 # Parameters:
36 # $1 FPGA size
37 # Prints string containing the amount of RAM to allocate to the common_system
38 # RAM during Qsys generation
39 function get_qsys_ram() {
40 if [ "${1}" == "A4" ] || [ "${1}" == "A5" ] || [ "${1}" == "A9" ]; then
41 rams=131072
42 else
43 rams=32768
44 fi
45
46 echo -n "${rams}"
47 }