-
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 'cabal_tsu_async' into 'devel'
refactor(net-mod): use component TSU_ASYNC instead of removed TS_SYNC See merge request ndk/ndk-fpga!132
- Loading branch information
Showing
14 changed files
with
144 additions
and
637 deletions.
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 |
---|---|---|
@@ -1,49 +1,16 @@ | ||
# Modules.tcl: Local include Modules tcl script | ||
# Copyright (C) 2009 CESNET | ||
# Author: Jan Stourac <xstour03 at stud.fit.vutbr.cz> | ||
# Jiri Matousek <[email protected]> | ||
# Modules.tcl: Components include script | ||
# Copyright (C) 2025 CESNET z.s.p.o. | ||
# Author(s): Jakub Cabal <[email protected]> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
|
||
|
||
# Auxiliary paths | ||
set BASE_BASE "$COMP_BASE/base" | ||
|
||
# Component paths | ||
set ASFIFO_BASE "$OFM_PATH/comp/base/fifo/asfifo" | ||
|
||
# Paths to subcomponents with scoped constraints | ||
set ASYNC_OPEN_LOOP_SMD_BASE "$OFM_PATH/comp/base/async/open_loop_smd" | ||
|
||
# Use source files of the module | ||
if { $ARCHGRP == "SRC" } { | ||
# Components | ||
set COMPONENTS [list \ | ||
[list "ASFIFO" $ASFIFO_BASE "FULL"] \ | ||
] | ||
|
||
# Modules | ||
set MOD "$MOD $ENTITY_BASE/tsu_async.vhd" | ||
} | ||
|
||
# Use .dcp file of the module | ||
# (Add also all subcomponents with scoped constraints. This hack is necessary | ||
# for correct constraint's application in full design.) | ||
if { $ARCHGRP == "DCP" } { | ||
# Components | ||
set COMPONENTS [ list \ | ||
[list "ASYNC_OPEN_LOOP_SMD" $ASYNC_OPEN_LOOP_SMD_BASE "FULL"] \ | ||
[list "ASFIFO" $ASFIFO_BASE "FULL"] \ | ||
] | ||
# Paths | ||
set ASFIFOX_BASE "$OFM_PATH/comp/base/fifo/asfifox" | ||
|
||
# Modules | ||
set MOD "$MOD $ENTITY_BASE/synth/tsu_async.dcp" | ||
# Packages | ||
|
||
# All device tree scripts used by module | ||
if { [file exists "$ENTITY_BASE/synth/DevTree_paths.txt"] } { | ||
set MOD "$MOD [read [open "$ENTITY_BASE/synth/DevTree_paths.txt" "r"]]" | ||
} | ||
} | ||
# Components | ||
lappend COMPONENTS [list "ASFIFOX" $ASFIFOX_BASE "FULL"] | ||
|
||
lappend SRCS(CONSTR_VIVADO) [list $ENTITY_BASE/tsu_async_ooc.xdc USED_IN {synthesis out_of_context}] | ||
# Files | ||
lappend MOD "$ENTITY_BASE/tsu_async.vhd" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,47 +1,11 @@ | ||
# Makefile: Makefile to synthesize a single component in Vivado | ||
# Copyright (C) 2016 CESNET | ||
# Author: Jiri Matousek <matousek@cesnet.cz> | ||
# Makefile: Makefile to compile module | ||
# Copyright (C) 2025 CESNET z.s.p.o. | ||
# Author(s): Jakub Cabal <cabal@cesnet.cz> | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# | ||
# $Id$ | ||
# | ||
|
||
|
||
# ##### Definition of variables ############################################### | ||
|
||
# Basic paths | ||
OFM_PATH = ../../../../.. | ||
|
||
# Tcl file with NetCOPE values for generic parameters | ||
# (if defined, uses the value from top level Makefile) | ||
NETCOPE_CONST ?= | ||
|
||
# Tcl file with user-defined values for generic parameters | ||
# (if defined, uses the value from top level Makefile) | ||
USER_CONST ?= | ||
|
||
# Definition of export command for selected variables used by build system | ||
# (variable used in $(OFM_PATH)/build/Makefile.Vivado.inc) | ||
USER_ENV = OFM_PATH=$(OFM_PATH) \ | ||
NETCOPE_CONST=$(NETCOPE_CONST) \ | ||
USER_CONST=$(USER_CONST) | ||
|
||
# Module name | ||
# (variable used also in $(OFM_PATH)/build/Makefile.Vivado.inc) | ||
MODULE = tsu_async | ||
|
||
|
||
# ##### Definition of targets ################################################# | ||
|
||
.PHONY: build_module | ||
|
||
build_module : $(MODULE).dcp | ||
|
||
|
||
# ##### Including another Makefiles ########################################### | ||
TOP_LEVEL_ENT=TSU_ASYNC | ||
|
||
# General Makefile for builds using Vivado | ||
# * defines target for building *.dcp file | ||
# * defines 'clean' target depending also on CLEAN_DEPENDS variable | ||
include $(OFM_PATH)/build/Makefile.Vivado.inc | ||
all: comp | ||
include ../../../../build/Makefile | ||
.PHONY: all |
Oops, something went wrong.