Rename the power-adjacent category to "power management"
"Adjacent" read as jargon; "power management" is the standard EE umbrella for enable/power-good/sense/fault/seq signals (cf. PMIC). Renamed across the board: NameVerdict::PowerMgmt, stats/LoadResult field `mgmt`, analyze tag [Power mgmt] + header "Pwr-mgmt" + glossary, load lines now say "power-management (control/measure — kept as Other)" (TUI / script / wx kept in sync). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -235,7 +235,7 @@ TEST_CASE("infer_signal_types: Power requires name+structural agreement") {
|
||||
|
||||
Signal *p_3v3 = m->signals->merge("PWR_3V3"); fan_out(p_3v3, 3); // voltage + ≥ floor → Power
|
||||
Signal *vcc = m->signals->merge("VCC"); fan_out(vcc, 5); // fan-out ≥ 4 → Power
|
||||
Signal *pwr_ok = m->signals->merge("PWR_OK"); fan_out(pwr_ok, 1); // control token → adjacent
|
||||
Signal *pwr_ok = m->signals->merge("PWR_OK"); fan_out(pwr_ok, 1); // control token → pwr-mgmt
|
||||
Signal *pwr_2 = m->signals->merge("PWR_2"); fan_out(pwr_2, 2); // < 3 → hard floor → Other
|
||||
Signal *gnd = m->signals->merge("GND"); fan_out(gnd, 1); // gnd: name alone
|
||||
Signal *clk = m->signals->merge("CLK_50MHZ"); fan_out(clk, 3); // not power-ish → Other
|
||||
@@ -244,7 +244,7 @@ TEST_CASE("infer_signal_types: Power requires name+structural agreement") {
|
||||
CHECK(st.power == 2); // PWR_3V3, VCC
|
||||
CHECK(st.gnd == 1); // GND (name alone)
|
||||
CHECK(st.kept_other == 1); // PWR_2 below the hard floor
|
||||
CHECK(st.adjacent == 1); // PWR_OK: power-good control, not suspect
|
||||
CHECK(st.mgmt == 1); // PWR_OK: power-good control, not suspect
|
||||
|
||||
CHECK(p_3v3->type == SignalType::Power);
|
||||
CHECK(vcc->type == SignalType::Power);
|
||||
@@ -254,14 +254,14 @@ TEST_CASE("infer_signal_types: Power requires name+structural agreement") {
|
||||
CHECK(clk->type == SignalType::Other);
|
||||
}
|
||||
|
||||
TEST_CASE("infer_signal_types: power-adjacent beats fan-out — a big sense net is still Other") {
|
||||
TEST_CASE("infer_signal_types: power-management beats fan-out — a big sense net is still Other") {
|
||||
auto sys = std::make_unique<System>();
|
||||
Module *m = sys->modules()->merge("M");
|
||||
Part *p = new Part("U1"); m->add(p);
|
||||
|
||||
// VDD_CORE_SENSE with fan-out 5: structure alone would confirm Power,
|
||||
// but the control token settles it as a measurement net → Other,
|
||||
// counted adjacent (not suspect, not power).
|
||||
// counted mgmt (not suspect, not power).
|
||||
Signal *s = m->signals->merge("VDD_CORE_SENSE");
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
Pin *pin = new Pin("p" + std::to_string(i));
|
||||
@@ -271,7 +271,7 @@ TEST_CASE("infer_signal_types: power-adjacent beats fan-out — a big sense net
|
||||
auto st = infer_signal_types(sys.get());
|
||||
CHECK(st.power == 0);
|
||||
CHECK(st.kept_other == 0);
|
||||
CHECK(st.adjacent == 1);
|
||||
CHECK(st.mgmt == 1);
|
||||
CHECK(s->type == SignalType::Other);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user