Skip to content

Commit d44894f

Browse files
committed
Merge branch 'leep_con' into 'master'
Update to use released leep python package and clean up related scripts See merge request hdl-libraries/bedrock!242
2 parents be630b7 + 4bac83a commit d44894f

40 files changed

+17
-3455
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ include:
3737
- local: .gitlab/ci/cdc_check.gitlab-ci.yml
3838
- local: .gitlab/ci/localbus.gitlab-ci.yml
3939
- local: .gitlab/ci/ctrace.gitlab-ci.yml
40-
- local: .gitlab/ci/leep.gitlab-ci.yml
41-
42-
leep_test:
43-
script:
44-
- cd projects/common && PYTHONPATH=../../build-tools python3 -m unittest -v
4540

4641
flake8:
4742
stage: test

.gitlab/ci/leep.gitlab-ci.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ RUN mkdir ${LITEX_INSTALL_PATH} && \
133133
cd ${LITEX_INSTALL_PATH} && \
134134
sh /litex_meta.sh
135135

136+
# Install leep from public repo until we have
137+
# a PyPi home for it
138+
RUN pip3 install \
139+
git+https://github.com/BerkeleyLab/leep.git
140+
136141
# Install sv2v
137142
RUN apt-get update && \
138143
apt-get install -y \

badger/tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ $(LB_DEMO_JSON): $(LB_STATIC_JSON) $(LB_SCALAR_JSON)
337337
$(PYTHON) $(BEDROCK_BUILD_TOOLS)/merge_json.py -o $@ -i $^
338338

339339
fake_config_romx.v: $(LB_DEMO_JSON)
340-
$(PYTHON) $(BEDROCK_BUILD_TOOLS)/build_rom.py --mod_prefix fake_ -j $^ -v $@
340+
$(PYTHON) -m leep.build_rom --mod_prefix fake_ -j $^ -v $@
341341

342342
CLEAN += $(LB_DEMO_JSON)
343343
CLEAN += $(LB_SCALAR_JSON)

badger/tests/cluster_run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ sleep 1
1616

1717
# Note that unlike speed_check.sh teststand_ac701.sh tftp_test.sh
1818
# this script uses leep commands from outside the badger directory
19-
export PYTHONPATH=$(dirname $0):$(dirname $0)/../../projects/common
2019
(
2120
$PYTHON -m leep.cli leep://localhost:3010 gitid
2221
$PYTHON -m leep.cli leep://localhost:3011 gitid

board_support/zest/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Full information about the Zest hardware is at: https://github.com/BerkeleyLab/Z
55
### Using zest_setup.py
66

77
```
8-
export PYTHONPATH=../../dsp/:../../projects/common/leep
98
# -r resets the board, -f sets the local bus clock frequency
109
python zest_setup.py -a $IP -r -f 125.
1110
```

board_support/zest/zest_setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import struct
22
import sys
33
import time
4-
import os
5-
6-
sys.path.append(os.path.join(os.path.dirname(__file__), "../../projects/common"))
7-
84
from llspi_lmk01801 import c_llspi_lmk01801
95
from llspi_ad9653 import c_llspi_ad9653
106
from llspi_ad9781 import c_llspi_ad9781

build-tools/build_rom.py

Lines changed: 0 additions & 273 deletions
This file was deleted.

build-tools/vivado_tcl/swap_gitid.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Functions related to Vivado and git
22

33
# Revise config_romx git ID in-place using BRAM INIT_xx values
4-
# Absolutely depends on ROM contents that come out of bedrock/build-tools/build_rom.py
4+
# Absolutely depends on ROM contents that come out of build_rom.py
55
# Two distinct cases:
66
# rowwidth = 8 for the case where the ROM is built with 2 x 8Kx8 BRAM (e.g., prc)
77
# rowwidth = 16 for the case where the ROM is built with 1 x 4Kx16 BRAM (e.g., marble1)

projects/cmoc_top/marblemini/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ cmoc_top.v: marble_features_defs.vh marble_features_params.vh $(AUTOGEN_DIR)/con
4242
download: cmoc_top.bit
4343
openocd -f $(BOARD_SUPPORT_DIR)/$(HARDWARE)/marble.cfg -c "transport select jtag; init; xc7_program xc7.tap; pld load 0 $^; exit"
4444

45-
$(AUTOGEN_DIR)/config_romx.v: $(BUILD_DIR)/build_rom.py $(APP_NAME)_regmap.json
46-
$(PYTHON) $< -v $@ -j $(APP_NAME)_regmap.json
45+
$(AUTOGEN_DIR)/config_romx.v: $(APP_NAME)_regmap.json
46+
$(PYTHON) -m leep.build_rom -v $@ -j $(APP_NAME)_regmap.json
4747

4848
$(DEPDIR)/$(TARGET).d: $(AUTOGEN_DIR)/config_romx.v
4949

0 commit comments

Comments
 (0)