Skip to content

Commit

Permalink
Reuse marble_features.yaml from test_marble_family
Browse files Browse the repository at this point in the history
  • Loading branch information
sdmurthy committed Feb 1, 2025
1 parent 994d4f2 commit 76ae987
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 44 deletions.
2 changes: 1 addition & 1 deletion projects/cmoc_top/marblemini/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $(APP_NAME)_regmap.json: $(AUTOGEN_DIR)/regmap_cryomodule.json $(OSCOPE_COMMON_D
$(PYTHON) $(OSCOPE_COMMON_DIR)/shorten_names.py -o $@ -i $(APP_NAME)_regmap_long.json

# actual file output is marble_features_(defs/params).vh
marble_features_defs.vh marble_features_params.vh: $(BUILD_DIR)/gen_features.py marble_features.yaml
marble_features_defs.vh marble_features_params.vh: $(BUILD_DIR)/gen_features.py $(TEST_MARBLE_FAMILY)/marble_features.yaml
$(PYTHON) $< -i $(filter %.yaml, $^) -c $(HARDWARE) --split

include $(BUILD_DIR)/bottom_rules.mk
Expand Down
39 changes: 0 additions & 39 deletions projects/cmoc_top/marblemini/marble_features.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions projects/test_marble_family/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ config_romx.v: marble_regmap.json $(filter-out config_romx.v, $(MARBLE_SYNTH_SOU
# gen_features.py rules (note the use of PHONY targets)
# actual file outputs are marble_features_params.vh and marble_features_defs.vh
marble1_features: $(BUILD_DIR)/gen_features.py marble_features.yaml
$(PYTHON) $< -i $(filter %.yaml, $^) -c marble_mini --split
$(PYTHON) $< -i $(filter %.yaml, $^) -c marblemini --split

marble2_features: $(BUILD_DIR)/gen_features.py marble_features.yaml
$(PYTHON) $< -i $(filter %.yaml, $^) -c marble_v2 --split
$(PYTHON) $< -i $(filter %.yaml, $^) -c marble --split
.PHONY: marble1_features marble2_features

# ====
Expand Down
4 changes: 2 additions & 2 deletions projects/test_marble_family/marble_features.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Defs are made available as Verilog defines
# Params are made available as Verilog localparams and included in ROM metadata

marble_mini:
marblemini:
defs:
MARBLE_MINI: 1
USE_SI570: 0
Expand All @@ -18,7 +18,7 @@ marble_mini:
# sys_clk is only usable if use_rgmii_idelay: 0
sysclk_src: "gtp_ref_clk"

marble_v2:
marble:
defs:
MARBLE_V2: 1
USE_SI570: 1
Expand Down

0 comments on commit 76ae987

Please sign in to comment.