Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L0 mdt cm mpi fist test #19

Open
wants to merge 5 commits into
base: L0MDT_CM_MPI_fist_test
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ bd/*/*
#################################################################################
bit
os
kernel

#################################################################################
## Temp build files
Expand All @@ -30,4 +31,4 @@ src/fw_version.vhd
## documentation
#################################################################################
doc/*/
doc/*.pdf
doc/*.pdf
39 changes: 32 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SHELL:=/bin/bash
#################################################################################
# make stuff
#################################################################################
Expand All @@ -8,10 +7,13 @@ OUTPUT_MARKUP= 2>&1 | tee ../make_log.txt | ccze -A
#################################################################################
# VIVADO stuff
#################################################################################
VIVADO_VERSION=2018.2
#VIVADO_VERSION=2018.2
VIVADO_VERSION=2018.3
#VIVADO_VERSION=2020.1
VIVADO_FLAGS=-notrace -mode batch
VIVADO_SHELL="/opt/Xilinx/Vivado/"$(VIVADO_VERSION)"/settings64.sh"
VIVADO_SETUP=source $(VIVADO_SHELL) && mkdir -p proj && mkdir -p os/hw && cd proj
VIVADO_SETUP=source $(VIVADO_SHELL) && mkdir -p proj && mkdir -p kernel/hw && cd proj


#################################################################################
# TCL scripts
Expand Down Expand Up @@ -45,6 +47,29 @@ BIT=./bit/top.bit
all: bit


#################################################################################
# Git submodules.
#################################################################################

submodules: bd/IP

bd/IP:
@git submodule update --init --recursive


#################################################################################
# preBuild
#################################################################################
SLAVE_DEF_FILE=src/slaves.yaml
ADDSLAVE_TCL_PATH=src/c2cSlave/
ADDRESS_TABLE_CREATION_PATH=os/
SLAVE_DTSI_PATH=kernel/

ifneq ("$(wildcard mk/preBuild.mk)","")
include mk/preBuild.mk
endif


#################################################################################
# Clean
#################################################################################
Expand All @@ -60,7 +85,7 @@ clean_bit:
@rm -rf ./bit/*
clean_os:
@echo "Clean OS hw files"
@rm -f os/hw/*
@rm -f kernel/hw/*
clean: clean_bd clean_ip clean_bit clean_os
@rm -rf ./proj/*
@echo "Cleaning up"
Expand Down Expand Up @@ -89,14 +114,14 @@ open_hw :
#################################################################################
bit : $(BIT)

interactive :
interactive : submodules
@$(VIVADO_SETUP) &&\
vivado -mode tcl
$(BIT) :
$(BIT) : submodules
@mkdir -p bit
@$(VIVADO_SETUP) &&\
vivado $(VIVADO_FLAGS) -source ../$(SETUP_BUILD_TCL) $(OUTPUT_MARKUP)
SVF :
SVF : submodules
@$(VIVADO_SETUP) &&\
vivado $(VIVADO_FLAGS) -source ../scripts/Generate_svf.tcl $(OUTPUT_MARKUP)

Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# CM_Kintex_FW
APOLLO Command Module Kintex FPGA FW
# MPI Command Module Demonstrator V1/V2 Kintex (KU15P) FPGA Firmware

This firmware is made for the MPI Command Module Demonstrator V1/V2 KU15P FPGA.

Requirements:
Vivado 2018.2 installed in /opt/Xilinx/Vivado/2018.2/
make
Vivado 2018.3 installed in /opt/Xilinx/Vivado/2018.3/

Build instructions:
>make clean;make

> make clean; make

9 changes: 9 additions & 0 deletions scripts/Build.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ source ../scripts/settings.tcl

#open_project $outputDir/../proj/$top.xpr

#################################################################################
# Optionally, upgrade the IPs before starting the build.
#################################################################################

upgrade_ip [get_ips] -log ip_upgrade.log



#################################################################################
# STEP#2: run synthesis, report utilization and timing estimates, write checkpoint design
#################################################################################
Expand Down Expand Up @@ -68,3 +76,4 @@ write_checkpoint -force $outputDir/post_route
#################################################################################
source ../scripts/Generate_hwInfo.tcl
source ../scripts/Generate_svf.tcl