Skip to content

Commit

Permalink
branch predictor: break out as module
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Nov 21, 2024
1 parent 3a3b396 commit 8f0f0e8
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,16 @@ SWEEP = {
"macros": ["ComposedBranchPredictorBank_generate_abstract"],
"stage_sources": {"floorplan": ["pdn.tcl"]},
},
"2": {
"description": "Hierarchical, branch predictors as macros",
"variables": {
"HOLD_SLACK_MARGIN": "-900",
"PDN_TCL": "$(location :pdn.tcl)",
"MAX_ROUTING_LAYER": "M9",
},
"macros": ["BranchPredictor_generate_abstract"],
"stage_sources": {"floorplan": ["pdn.tcl"]},
},
}

BOOMTILE_VARIABLES = SKIP_REPORT_METRICS | FAST_BUILD_SETTINGS | {
Expand Down Expand Up @@ -456,8 +466,8 @@ BRANCH_PREDICTOR_VARIABLES = SKIP_REPORT_METRICS | FAST_BUILD_SETTINGS | {
"HOLD_SLACK_MARGIN": "-200",
}

orfs_flow(
name = "ComposedBranchPredictorBank",
[orfs_flow(
name = module,
abstract_stage = "cts",
arguments = BRANCH_PREDICTOR_VARIABLES,
macros = [
Expand All @@ -466,7 +476,10 @@ orfs_flow(
],
stage_sources = BOOMTILE_SOURCES,
verilog_files = all_source_files,
)
) for module in [
"ComposedBranchPredictorBank",
"BranchPredictor",
]]

[orfs_flow(
name = "BoomTile",
Expand Down

0 comments on commit 8f0f0e8

Please sign in to comment.