Skip to content
Merged
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
15 changes: 15 additions & 0 deletions ci/test_change_impact.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,21 @@ def test_simx_stage_model_change_is_r3(scratch):
assert "pipeline-stage" in detectors(r)


def test_simx_stage_assert_rename_is_not_r3(scratch):
repo, _ = scratch
before = SIMX.replace(" delay_ = 2;\n", " __assert(delay_ < 8, \"delay\");\n delay_ = 2;\n")
after = SIMX.replace(" delay_ = 2;\n", " VX_ASSERT(delay_ < 8, \"delay\");\n delay_ = 2;\n")
base = repo.commit({"sim/simx/scheduler.cpp": before}, "assert with the old macro")
head = repo.commit({"sim/simx/scheduler.cpp": after}, "rename the assert macro")
r = ci.Repo(repo.path)
try:
result = ci.classify(r, POLICY, base, head, "pull_request")
finally:
r.close()
assert "pipeline-stage" not in detectors(result)
assert "simx-rtl-lockstep" not in checks(result)


def test_new_shared_stage_file_is_r3(scratch):
r = run(scratch, {"hw/rtl/core/VX_ibuffer.sv": UNIT.replace("VX_unit", "VX_ibuffer")})
assert "shared pipeline stage added" in contract(r, "pipeline-stage")
Expand Down
4 changes: 2 additions & 2 deletions docs/review/change-impact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ detectors:
class: R3
paths: ["hw/rtl/core/VX_scheduler.sv", "hw/rtl/core/VX_warp_sched.sv", "hw/rtl/core/VX_warp_sched_ctx.sv", "hw/rtl/core/VX_split_join.sv", "hw/rtl/core/VX_ipdom_stack.sv", "hw/rtl/core/VX_cta_dispatch.sv", "hw/rtl/core/VX_fetch.sv", "hw/rtl/core/VX_decompressor.sv", "hw/rtl/core/VX_ibuffer.sv", "hw/rtl/core/VX_issue.sv", "hw/rtl/core/VX_issue_slice.sv", "hw/rtl/core/VX_scoreboard.sv", "hw/rtl/core/VX_scoreboard_table.sv", "hw/rtl/core/VX_operands.sv", "hw/rtl/core/VX_opc_unit.sv", "hw/rtl/core/VX_opc_gpr_bank.sv", "hw/rtl/core/VX_dispatcher.sv", "hw/rtl/core/VX_lane_dispatch.sv", "hw/rtl/core/VX_lane_gather.sv", "hw/rtl/core/VX_commit.sv", "hw/rtl/core/VX_commit_slice.sv", "hw/rtl/core/VX_frontend_slice.sv", "hw/rtl/core/VX_frontend_xbar.sv", "hw/rtl/core/VX_compute_slice.sv", "hw/rtl/core/VX_backend_slice.sv", "sim/simx/scheduler.*", "sim/simx/cta_dispatcher.*", "sim/simx/decompressor.*", "sim/simx/scoreboard.*", "sim/simx/operands.*", "sim/simx/opc_unit.*", "sim/simx/dispatcher.*", "sim/simx/core.*"]
sv_ignore_macros: ["TRACE", "RUNTIME_ASSERT", "STATIC_ASSERT", "ASSERT", "UNUSED_VAR", "UNUSED_PARAM", "UNUSED_SPARAM", "UNUSED_PIN", "TRACE_ARRAY1D", "TRACE_ARRAY2D"]
c_ignore_macros: ["DT", "DTN", "DTH", "DP", "DPN", "DPH", "assert", "__unused"]
c_ignore_macros: ["DT", "DTN", "DTH", "DP", "DPN", "DPH", "assert", "VX_ASSERT", "__assert", "__unused"]
why: "Every configuration builds the shared pipeline stages (docs/guidelines/verilog/pipeline_isolation.md), so a logic change there is paid by all of them in depth, area and verification. It lands only with the V-ISO-6 justification and the maintainer's approval; a fix of the stage's own bug is the usual exception."

- id: clocking
Expand All @@ -197,7 +197,7 @@ evidence:
simx: ["sim/simx/**"]
simx_exclude: ["sim/simx/gem5/**", "sim/simx/sst/**", "sim/simx/main.cpp", "sim/simx/debug.h", "sim/simx/instr_trace.h", "sim/simx/Makefile"]
rtl_ignore_macros: ["TRACE", "RUNTIME_ASSERT", "STATIC_ASSERT", "ASSERT", "UNUSED_VAR", "UNUSED_PARAM", "UNUSED_SPARAM", "UNUSED_PIN", "TRACE_ARRAY1D", "TRACE_ARRAY2D"]
simx_ignore_macros: ["DT", "DTN", "DTH", "DP", "DPN", "DPH", "assert", "__unused"]
simx_ignore_macros: ["DT", "DTN", "DTH", "DP", "DPN", "DPH", "assert", "VX_ASSERT", "__assert", "__unused"]
why: "SimX is the RTL's timing model. A cycle-moving change on one side without the other is caught only by model_parity, and only for the cases it runs."

- id: golden-provenance
Expand Down
Loading