Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Aug 20, 2021
2 parents 21fab0b + acf6b4e commit f1a1779
Showing 150 changed files with 6,402 additions and 150,365 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -7,3 +7,12 @@
[submodule "hdl/ip_cores/infra-cores"]
path = hdl/ip_cores/infra-cores
url = https://github.com/lnls-dig/infra-cores
[submodule "hdl/ip_cores/afc-gw"]
path = hdl/ip_cores/afc-gw
url = https://github.com/lnls-dig/afc-gw
[submodule "hdl/ip_cores/CommsCtrlFPGA"]
path = hdl/ip_cores/CommsCtrlFPGA
url = https://github.com/lnls-dig/CommsCtrlFPGA
[submodule "hdl/ip_cores/fofb-ctrl-gw"]
path = hdl/ip_cores/fofb-ctrl-gw
url = https://github.com/lnls-dig/fofb-ctrl-gw
3 changes: 3 additions & 0 deletions hdl/Manifest.py
Original file line number Diff line number Diff line change
@@ -5,5 +5,8 @@
"ip_cores/general-cores",
"ip_cores/dsp-cores",
"ip_cores/infra-cores",
"ip_cores/afc-gw",
"ip_cores/CommsCtrlFPGA",
"ip_cores/fofb-ctrl-gw",
]
};
1 change: 1 addition & 0 deletions hdl/ip_cores/CommsCtrlFPGA
Submodule CommsCtrlFPGA added at 66f314
1 change: 1 addition & 0 deletions hdl/ip_cores/afc-gw
Submodule afc-gw added at 59924a
2 changes: 1 addition & 1 deletion hdl/ip_cores/dsp-cores
Submodule dsp-cores updated 0 files
1 change: 1 addition & 0 deletions hdl/ip_cores/fofb-ctrl-gw
Submodule fofb-ctrl-gw added at b2b9e5
2 changes: 1 addition & 1 deletion hdl/ip_cores/infra-cores
Submodule infra-cores updated 267 files
2 changes: 2 additions & 0 deletions hdl/modules/wb_orbit_intlk/orbit_intlk_ang.vhd
Original file line number Diff line number Diff line change
@@ -502,6 +502,7 @@ begin

ang_intlk_bigger <= ang_intlk_bigger_or(c_INTLK_GEN_UPTO_CHANNEL+1);
intlk_ang_bigger_o <= ang_intlk_bigger;
intlk_ang_bigger_any_o <= ang_intlk_bigger;

ang_intlk_bigger_ltc_or(0) <= '0';
-- ORing all ang_bigger_ltc
@@ -523,6 +524,7 @@ begin

ang_intlk_smaller <= ang_intlk_smaller_or(c_INTLK_GEN_UPTO_CHANNEL+1);
intlk_ang_smaller_o <= ang_intlk_smaller;
intlk_ang_smaller_any_o <= ang_intlk_smaller;

ang_intlk_smaller_ltc_or(0) <= '0';
-- ORing all ang_smaller_ltc
2 changes: 2 additions & 0 deletions hdl/modules/wb_orbit_intlk/orbit_intlk_trans.vhd
Original file line number Diff line number Diff line change
@@ -499,6 +499,7 @@ begin

trans_intlk_bigger <= trans_intlk_bigger_or(c_INTLK_GEN_UPTO_CHANNEL+1);
intlk_trans_bigger_o <= trans_intlk_bigger;
intlk_trans_bigger_any_o <= trans_intlk_bigger;

trans_intlk_bigger_ltc_or(0) <= '0';
-- ORing all trans_bigger_ltc
@@ -520,6 +521,7 @@ begin

trans_intlk_smaller <= trans_intlk_smaller_or(c_INTLK_GEN_UPTO_CHANNEL+1);
intlk_trans_smaller_o <= trans_intlk_smaller;
intlk_trans_smaller_any_o <= trans_intlk_smaller;

trans_intlk_smaller_ltc_or(0) <= '0';
-- ORing all trans_smaller_ltc
1 change: 1 addition & 0 deletions hdl/syn/.gitignore
Original file line number Diff line number Diff line change
@@ -90,4 +90,5 @@ planAhead_run_*/
*synthesize.tcl
*translate.tcl
*project.tcl
*synthesis_descriptor_pkg.vhd
*files.tcl
12 changes: 0 additions & 12 deletions hdl/syn/afc_v1/dbe_bpm/Manifest.py

This file was deleted.

6 changes: 0 additions & 6 deletions hdl/syn/afc_v1/dbe_bpm/build_bitstream_local.sh

This file was deleted.

1,759 changes: 0 additions & 1,759 deletions hdl/syn/afc_v1/dbe_bpm/dbe_bpm.xise

This file was deleted.

Original file line number Diff line number Diff line change
@@ -3,6 +3,11 @@

language = "vhdl"

# Allow the user to override fetchto using:
# hdlmake -p "fetchto='xxx'"
if locals().get('fetchto', None) is None:
fetchto = "../../ip_cores"

syn_device = "xc7a200t"
syn_grade = "-2"
syn_package = "ffg1156"
@@ -23,6 +28,11 @@
["steps.post_route_phys_opt_design.is_enabled", "1"],
["steps.write_bitstream.args.verbose", "1"]]

board = "afc"

# For appending the afc_ref_design.xdc to synthesis
afc_base_xdc = ['acq']

import os
import sys
if os.path.isfile("synthesis_descriptor_pkg.vhd"):
@@ -32,4 +42,19 @@

machine_pkg = "sirius_bo_250M";

modules = { "local" : [ "../../../../top/afc_v3/vivado/dbe_bpm2" ] };
# Pass more XDC to afc-gw so it will merge it last with
# other .xdc. We need this as we depend on variables defined
# on afc_base xdc files.
xdc_files = [
"../dbe_common/dbe_bpm2.xdc",
]

additional_xdc = []
for f in xdc_files:
additional_xdc.append(os.path.abspath(f))

modules = {
"local" : [
"../../../top/afc_v3/dbe_bpm2"
]
}
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ SYNTH_INFO_PROJECT="bpm-gw-bo-sirius"
SYNTH_INFO_TOOL="VIVADO"
SYNTH_INFO_VER=$(vivado -version | head -n 1 | cut -d' ' -f2 | cut -d 'v' -f2)

SYNTH_INFO_COMMAND="../../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"
SYNTH_INFO_COMMAND="../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"

# Generate synthesis file
echo $SYNTH_INFO_COMMAND
61 changes: 61 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_bo_sirius_with_dcc/Manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
target = "xilinx"
action = "synthesis"

language = "vhdl"

# Allow the user to override fetchto using:
# hdlmake -p "fetchto='xxx'"
if locals().get('fetchto', None) is None:
fetchto = "../../ip_cores"

syn_device = "xc7a200t"
syn_grade = "-2"
syn_package = "ffg1156"
syn_top = "dbe_bpm2_with_dcc"
syn_project = "dbe_bpm2_with_dcc"
syn_tool = "vivado"
syn_properties = [
["steps.synth_design.args.more options", "-verbose"],
["steps.synth_design.args.retiming", "1"],
["steps.synth_design.args.assert", "1"],
["steps.opt_design.args.verbose", "1"],
["steps.opt_design.is_enabled", "1"],
["steps.phys_opt_design.args.directive", "Explore"],
["steps.phys_opt_design.args.more options", "-verbose"],
["steps.phys_opt_design.is_enabled", "1"],
["steps.post_route_phys_opt_design.args.directive", "Explore"],
["steps.post_route_phys_opt_design.args.more options", "-verbose"],
["steps.post_route_phys_opt_design.is_enabled", "1"],
["steps.write_bitstream.args.verbose", "1"]]

board = "afc"

# For appending the afc_ref_design.xdc to synthesis
afc_base_xdc = ['acq']

import os
import sys
if os.path.isfile("synthesis_descriptor_pkg.vhd"):
files = ["synthesis_descriptor_pkg.vhd"];
else:
sys.exit("Generate the SDB descriptor before using HDLMake (./build_synthesis_sdb.sh)")

machine_pkg = "sirius_bo_250M";

# Pass more XDC to afc-gw so it will merge it last with
# other .xdc. We need this as we depend on variables defined
# on afc_base xdc files.
xdc_files = [
"../dbe_common/dbe_bpm2.xdc",
"../dbe_common/afc_p2p_gts.xdc",
]

additional_xdc = []
for f in xdc_files:
additional_xdc.append(os.path.abspath(f))

modules = {
"local" : [
"../../../top/afc_v3/dbe_bpm2_with_dcc"
]
}
17 changes: 17 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_bo_sirius_with_dcc/build_synthesis_sdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Exit on error
set -e
# Check for uninitialized variables
set -u

# Maximum of 16 chars
SYNTH_INFO_PROJECT="bpm-gw-bo-sirius"
SYNTH_INFO_TOOL="VIVADO"
SYNTH_INFO_VER=$(vivado -version | head -n 1 | cut -d' ' -f2 | cut -d 'v' -f2)

SYNTH_INFO_COMMAND="../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"

# Generate synthesis file
echo $SYNTH_INFO_COMMAND
eval $SYNTH_INFO_COMMAND
Original file line number Diff line number Diff line change
@@ -3,6 +3,11 @@

language = "vhdl"

# Allow the user to override fetchto using:
# hdlmake -p "fetchto='xxx'"
if locals().get('fetchto', None) is None:
fetchto = "../../ip_cores"

syn_device = "xc7a200t"
syn_grade = "-2"
syn_package = "ffg1156"
@@ -23,6 +28,11 @@
["steps.post_route_phys_opt_design.is_enabled", "1"],
["steps.write_bitstream.args.verbose", "1"]]

board = "afc"

# For appending the afc_ref_design.xdc to synthesis
afc_base_xdc = ['acq']

import os
import sys
if os.path.isfile("synthesis_descriptor_pkg.vhd"):
@@ -32,4 +42,19 @@

machine_pkg = "sirius_sr_250M";

modules = { "local" : [ "../../../../top/afc_v3/vivado/dbe_bpm2" ] };
# Pass more XDC to afc-gw so it will merge it last with
# other .xdc. We need this as we depend on variables defined
# on afc_base xdc files.
xdc_files = [
"../dbe_common/dbe_bpm2.xdc",
]

additional_xdc = []
for f in xdc_files:
additional_xdc.append(os.path.abspath(f))

modules = {
"local" : [
"../../../top/afc_v3/dbe_bpm2"
]
}
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ SYNTH_INFO_PROJECT="bpm-gw-sr-sirius"
SYNTH_INFO_TOOL="VIVADO"
SYNTH_INFO_VER=$(vivado -version | head -n 1 | cut -d' ' -f2 | cut -d 'v' -f2)

SYNTH_INFO_COMMAND="../../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"
SYNTH_INFO_COMMAND="../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"

# Generate synthesis file
echo $SYNTH_INFO_COMMAND
61 changes: 61 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_sr_sirius_with_dcc/Manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
target = "xilinx"
action = "synthesis"

language = "vhdl"

# Allow the user to override fetchto using:
# hdlmake -p "fetchto='xxx'"
if locals().get('fetchto', None) is None:
fetchto = "../../ip_cores"

syn_device = "xc7a200t"
syn_grade = "-2"
syn_package = "ffg1156"
syn_top = "dbe_bpm2_with_dcc"
syn_project = "dbe_bpm2_with_dcc"
syn_tool = "vivado"
syn_properties = [
["steps.synth_design.args.more options", "-verbose"],
["steps.synth_design.args.retiming", "1"],
["steps.synth_design.args.assert", "1"],
["steps.opt_design.args.verbose", "1"],
["steps.opt_design.is_enabled", "1"],
["steps.phys_opt_design.args.directive", "Explore"],
["steps.phys_opt_design.args.more options", "-verbose"],
["steps.phys_opt_design.is_enabled", "1"],
["steps.post_route_phys_opt_design.args.directive", "Explore"],
["steps.post_route_phys_opt_design.args.more options", "-verbose"],
["steps.post_route_phys_opt_design.is_enabled", "1"],
["steps.write_bitstream.args.verbose", "1"]]

board = "afc"

# For appending the afc_ref_design.xdc to synthesis
afc_base_xdc = ['acq']

import os
import sys
if os.path.isfile("synthesis_descriptor_pkg.vhd"):
files = ["synthesis_descriptor_pkg.vhd"];
else:
sys.exit("Generate the SDB descriptor before using HDLMake (./build_synthesis_sdb.sh)")

machine_pkg = "sirius_sr_250M";

# Pass more XDC to afc-gw so it will merge it last with
# other .xdc. We need this as we depend on variables defined
# on afc_base xdc files.
xdc_files = [
"../dbe_common/dbe_bpm2.xdc",
"../dbe_common/afc_p2p_gts.xdc",
]

additional_xdc = []
for f in xdc_files:
additional_xdc.append(os.path.abspath(f))

modules = {
"local" : [
"../../../top/afc_v3/dbe_bpm2_with_dcc"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Exit on error
set -e
# Check for uninitialized variables
set -u

COMMAND="(./build_synthesis_sdb.sh; hdlmake -a makefile; time make; date) 2>&1 | tee make_output"

echo $COMMAND
eval $COMMAND
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

# Exit on error
set -e
# Check for uninitialized variables
set -u

COMMAND="(hdlmake; make cleanremote; time make remote; make sync; date) 2>&1 | tee make_output &"

echo $COMMAND
17 changes: 17 additions & 0 deletions hdl/syn/afc_v3/dbe_bpm2_sr_sirius_with_dcc/build_synthesis_sdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Exit on error
set -e
# Check for uninitialized variables
set -u

# Maximum of 16 chars
SYNTH_INFO_PROJECT="bpm-gw-sr-sirius"
SYNTH_INFO_TOOL="VIVADO"
SYNTH_INFO_VER=$(vivado -version | head -n 1 | cut -d' ' -f2 | cut -d 'v' -f2)

SYNTH_INFO_COMMAND="../../gen_sdbsyn.py --project ${SYNTH_INFO_PROJECT} --tool ${SYNTH_INFO_TOOL} --ver ${SYNTH_INFO_VER}"

# Generate synthesis file
echo $SYNTH_INFO_COMMAND
eval $SYNTH_INFO_COMMAND
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- This file will be overwritten prior to synthesis,
-- by hdlmake "syn_pre_cmd" specified on top Manifest.py.
--
-- However, hdlmake requires all files to be present
-- on parsing-time. So, fool the tool with this dummy
-- file so we can bypass this requirement.
Loading

0 comments on commit f1a1779

Please sign in to comment.