-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'valek-feat-new_cards_alvu200_vcu118' into 'devel'
[FEATURE]: add build files for new card See merge request ndk/ndk-app-minimal!53
- Loading branch information
Showing
9 changed files
with
197 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Makefile: Makefile for build the whole card design | ||
# Copyright (C) 2023 CESNET z.s.p.o. | ||
# Author(s): Vadislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: Usage of the configuration parameters in this file is described | ||
# in the Parametrization section of the NDK-CORE documentation. | ||
|
||
COMBO_BASE = ../.. | ||
CARD_BASE = $(COMBO_BASE)/ndk/cards/amd/alveo-u200 | ||
APP_CONF = app_conf.tcl | ||
OUTPUT_NAME = alveo-u200-minimal | ||
|
||
ETH_PORT_SPEED=100 | ||
ETH_PORT_CHAN=1 | ||
|
||
.PHONY: all 100g2 100g0 | ||
|
||
all: 100g2 | ||
|
||
100g2: ETH_PORTS=2 | ||
100g2: OUTPUT_NAME:=alveo-u200-minimal-100g2 | ||
100g2: build | ||
|
||
100g0: ETH_PORTS=0 | ||
100g0: OUTPUT_NAME:=alveo-u200-minimal-100g0 | ||
100g0: build | ||
|
||
include $(CARD_BASE)/src/card.mk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Vivado.tcl: Vivado tcl script to compile whole FPGA design | ||
# Copyright (C) 2023 CESNET z. s. p. o. | ||
# Author(s): Vladislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: The purpose of this file is described in the Parametrization section of | ||
# the NDK-CORE documentation. | ||
|
||
# ----- Setting basic synthesis options --------------------------------------- | ||
# NDK & user constants | ||
source $env(CARD_BASE)/src/Vivado.inc.tcl | ||
|
||
# Create only a Quartus project for further design flow driven from Quartus GUI | ||
# "0" ... full design flow in command line | ||
# "1" ... project composition only for further dedesign flow in GUI | ||
set SYNTH_FLAGS(PROJ_ONLY) "0" | ||
|
||
# Associative array which is propagated to APPLICATION_CORE, add other | ||
# parameters if necessary. | ||
set APP_ARCHGRP(APP_CORE_ENABLE) $APP_CORE_ENABLE | ||
|
||
# Convert associative array to list | ||
set APP_ARCHGRP_L [array get APP_ARCHGRP] | ||
|
||
# ----- Add application core to main component list --------------------------- | ||
lappend HIERARCHY(COMPONENTS) \ | ||
[list "APPLICATION_CORE" "../../app/top" $APP_ARCHGRP_L] | ||
|
||
# Call main function which handle targets | ||
nb_main |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# app_conf.tcl: User parameters for AMD Alveo U200 Card | ||
# Copyright (C) 2023 CESNET z.s.p.o. | ||
# Author(s): Vladislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: The detailed description of the usage of this file can be viewed in the | ||
# Parametrizing section of the NDK-CORE documentation. | ||
|
||
# ------------------------------------------------------------------------------ | ||
# DMA parameters: | ||
# ------------------------------------------------------------------------------ | ||
# The minimum number of RX/TX DMA channels for this card is 16. | ||
set DMA_RX_CHANNELS 4 | ||
set DMA_TX_CHANNELS 4 | ||
# In blocking mode, packets are dropped only when the RX DMA channel is off. | ||
# In non-blocking mode, packets are dropped whenever they cannot be sent. | ||
set DMA_RX_BLOCKING_MODE true | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Other parameters: | ||
# ------------------------------------------------------------------------------ | ||
set PROJECT_NAME "NDK_MINIMAL" | ||
set PROJECT_VARIANT "$ETH_PORT_SPEED(0)G$ETH_PORTS" | ||
set PROJECT_VERSION [exec cat ../../VERSION] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library 'liberouter' | ||
|
||
stagesFirmware( | ||
dir: 'build/alveo-u200', | ||
target: '100g2', | ||
project: 'alveo-u200-minimal-100g2', | ||
pollscm: 'H H(0-11) * * 6', | ||
rpms: false, | ||
rename: false, | ||
artifacts: 'alveo-u200-minimal-100g2', | ||
lastBuilds: 2, | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Makefile: Makefile for VCU118 | ||
# Copyright (C) 2023 CESNET z.s.p.o. | ||
# Author(s): Vadislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: Usage of the configuration parameters in this file is described | ||
# in the Parametrization section of the NDK-CORE documentation. | ||
|
||
COMBO_BASE = ../.. | ||
CARD_BASE = $(COMBO_BASE)/ndk/cards/amd/vcu118 | ||
APP_CONF = app_conf.tcl | ||
OUTPUT_NAME = vcu118-minimal | ||
|
||
ETH_PORT_SPEED=100 | ||
ETH_PORT_CHAN=1 | ||
|
||
.PHONY: all 100g2 100g0 | ||
|
||
all: 100g2 | ||
|
||
100g2: ETH_PORTS=2 | ||
100g2: OUTPUT_NAME:=vcu118-minimal-100g2 | ||
100g2: build | ||
|
||
100g0: ETH_PORTS=0 | ||
100g0: OUTPUT_NAME:=vcu118-minimal-100g0 | ||
100g0: build | ||
|
||
include $(CARD_BASE)/src/card.mk |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Vivado.tcl: Vivado tcl script to compile whole FPGA design | ||
# Copyright (C) 2023 CESNET z. s. p. o. | ||
# Author(s): Vladislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: The purpose of this file is described in the Parametrization section of | ||
# the NDK-CORE documentation. | ||
|
||
# ----- Setting basic synthesis options --------------------------------------- | ||
# NDK & user constants | ||
source $env(CARD_BASE)/src/Vivado.inc.tcl | ||
|
||
# Create only a Quartus project for further design flow driven from Quartus GUI | ||
# "0" ... full design flow in command line | ||
# "1" ... project composition only for further dedesign flow in GUI | ||
set SYNTH_FLAGS(PROJ_ONLY) "0" | ||
|
||
# Associative array which is propagated to APPLICATION_CORE, add other | ||
# parameters if necessary. | ||
set APP_ARCHGRP(APP_CORE_ENABLE) $APP_CORE_ENABLE | ||
|
||
# Convert associative array to list | ||
set APP_ARCHGRP_L [array get APP_ARCHGRP] | ||
|
||
# ----- Add application core to main component list --------------------------- | ||
lappend HIERARCHY(COMPONENTS) \ | ||
[list "APPLICATION_CORE" "../../app/top" $APP_ARCHGRP_L] | ||
|
||
# Call main function which handle targets | ||
nb_main |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# app_conf.tcl: User parameters for fb4cgg3/fb2cgg3 card | ||
# Copyright (C) 2023 CESNET z.s.p.o. | ||
# Author(s): Vladislav Valek <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
# NOTE: The detailed description of the usage of this file can be viewed in the | ||
# Parametrizing section of the NDK-CORE documentation. | ||
|
||
# ------------------------------------------------------------------------------ | ||
# DMA parameters: | ||
# ------------------------------------------------------------------------------ | ||
# The minimum number of RX/TX DMA channels for this card is 16. | ||
set DMA_RX_CHANNELS 4 | ||
set DMA_TX_CHANNELS 4 | ||
# In blocking mode, packets are dropped only when the RX DMA channel is off. | ||
# In non-blocking mode, packets are dropped whenever they cannot be sent. | ||
set DMA_RX_BLOCKING_MODE true | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Other parameters: | ||
# ------------------------------------------------------------------------------ | ||
set PROJECT_NAME "NDK_MINIMAL" | ||
set PROJECT_VARIANT "$ETH_PORT_SPEED(0)G$ETH_PORTS" | ||
set PROJECT_VERSION [exec cat ../../VERSION] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library 'liberouter' | ||
|
||
stagesFirmware( | ||
dir: 'build/vcu118', | ||
target: '100g2', | ||
project: 'vcu118-minimal-100g2', | ||
pollscm: 'H H(0-11) * * 6', | ||
rpms: false, | ||
rename: false, | ||
artifacts: 'vcu118-minimal-100g2', | ||
lastBuilds: 2, | ||
) |
Submodule cards
updated
48 files