Skip to content

Add global PnR candidate smoke#42

Merged
rollrat merged 16 commits into
masterfrom
codex/global-pnr-sequential-candidates
Jun 3, 2026
Merged

Add global PnR candidate smoke#42
rollrat merged 16 commits into
masterfrom
codex/global-pnr-sequential-candidates

Conversation

@rollrat

@rollrat rollrat commented May 25, 2026

Copy link
Copy Markdown
Member

Summary

  • add a minimal global PnR skeleton with layout candidates, shelf placement, and world assembly
  • add input placement constraints so global placement can narrow local placer input search
  • add an ignored D flip-flop smoke that assembles two D latch child candidates and saves an NBT fixture

Verification

  • cargo test --release generate_inputs_uses_explicit_position_region -- --nocapture
  • cargo test --release local_placer_limits_input_search_to_named_constraints -- --nocapture
  • cargo test --release local_placer::unit_tests -- --nocapture
  • cargo test --release graph_backed_module_generates_world_with_global_pnr_api -- --nocapture
  • cargo test --release d_flip_flop_module_generates_world_from_child_layout_candidates -- --ignored --nocapture

@rollrat rollrat force-pushed the codex/global-pnr-sequential-candidates branch from 57b3106 to b0f66cb Compare May 31, 2026 00:20
rollrat added 12 commits June 3, 2026 15:26
# Conflicts:
#	src/transform/place_and_route/local_placer/mod.rs
Problem: D flip-flop NBT could start flickering after the sequence #1 on, #2 on, #2 off, #2 on. The latch feedback torches burned out during initialization, but the simulator cleared or aged out that burnout state, so the same feedback loop recovered later and oscillated again.

Fix: keep torch burnout as a simulator-session stabilization state, schedule torch reevaluations through the queue, and re-read the support cobble power when the delayed torch event is applied. This prevents stale support observations and prevents burned-out feedback torches from recovering mid-session.

Verification: cargo test --release world::simulator::test -- --nocapture; cargo run --release --bin repro_toggle -- test/d-flip-flop-global-smoke.nbt; npm.cmd run build:wasm.
@rollrat rollrat force-pushed the codex/global-pnr-sequential-candidates branch from b0f66cb to b830774 Compare June 3, 2026 07:40
@rollrat rollrat marked this pull request as ready for review June 3, 2026 11:53
@rollrat rollrat merged commit 886e57c into master Jun 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant