Skip to content

Port gHashTag/trinity:fpga/openxc7-synth/vsa_coproc_d6_top.v (Verilog, 1 module) to specs/port/trinity/fpga/openxc7-synt - #9349

Merged
gHashTag merged 2 commits into
masterfrom
queen-9322
Oct 13, 2026
Merged

gHashTag merged 2 commits into
masterfrom
queen-9322

Conversation

@gHashTag

Copy link
Copy Markdown
Collaborator

Closes #9322

Written by a bee on queen-9322 and published by tools/queen/publish.py. The branch itself is the bee's; the second commit is the coordination entry every pull request must add, which a bee has no way to know about.

1 file changed, 430 insertions(+)

🤖 Generated with Claude Code

Trinity Bee and others added 2 commits October 13, 2026 02:21
Direct spec-level port of the TRINITY VSA coprocessor FPGA top module
(D6 LED self-test), following the pattern of the accepted sibling ports
(uart_bridge.t27, riscv_blink.t27) in the same directory.

Board plumbing (the 256x32 vec_mem RAM, the vsa_coprocessor instance,
the clock tree) stays hardware; the module's decisions become 25 pure
functions:
- reset generator: 4-bit counter holds through 15 cycles, releases rst_n
- vector memory map on the single write port: vec A low 256, vec B /
  results upper 64, plus write-port arbitration (fill stream wins)
- fill loop: streams the two ternary patterns (phi^2, 1/phi^2 in the
  -1/0/+1 = 00/01/10 encoding) XORed with the counter, 64 words each
- command handshake: BIND then SIMILARITY, issued only when ready, with
  full hold semantics for cmd_reg/test_passed/saved_similarity
- similarity rounds: first two results restart the walk, third latches
  the verdict (similarity != 0)
- LED driver: fast blink (bit 22) on pass, slow blink (bit 25) on zero
  similarity, chaotic XOR blink while running; board LED is active low

9 tests, all non-vacuous (0 vacuous), 100% function coverage; includes
a full INIT->FILL_A->FILL_B->BIND->SIMILARITY x3->DONE scenario walk
(399 cycles, 3 similarity rounds). t27c parse/typecheck clean.

Closes #9322
A pull request must add exactly one docs/now entry and a bee has no way
to know that: its brief names a boundary file and acceptance criteria,
and docs/now/ is neither. The publisher adds it rather than failing the
gate.

Closes #9322

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-13 04:32:02 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 49
PRs with All Checks Green 1
READY 0
FAILING 49
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 49 + 0 + 0 = 49, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e769ef021713 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@tri-claw tri-claw Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer bee verdict for head 2b4e16a46434bb1533a867bbe6ecc53ce2a9b5b0 (tools/bees/reviewer.py, zai glm-4.5-flash, 7 turns, 114 s; then glm-4.7-flash, 4 turns, 110 s).

BEE-VERDICT: APPROVE
summary: Successfully ported Verilog module to .t27 format with all acceptance criteria met
criterion: Port gHashTag/trinity:fpga/openxc7-synth/vsa_coproc_d6_top.v to specs/port/trinity/fpga/openxc7-synth/vsa_coproc_d6_top.t27 -- met -- All 6 acceptance criteria passed, file creates correct module name, parses, has 9 tests, and tests compile without BLOCKED errors
discounted-check: cli-tri -- Does not count against this head; same failure on master, build warnings treated as errors unrelated to this port
discounted-check: duplicate-bodies -- Does not count against this head; same failure on master, generic duplicate body tracking unrelated to this port
discounted-check: t27b-native-ratchet -- Does not count against this head; same failure on master, generic ratchet verdict unrelated to this port

Evidence

Based on my analysis of the pull request #9349, here's my verdict:

Evidence

The pull request successfully ports the Verilog module fpga/openxc7-synth/vsa_coproc_d6_top.v to specs/port/trinity/fpga/openxc7-synth/vsa_coproc_d6_top.t27 as requested in issue #9322.

Acceptance Criteria Verification (All Passed):

  1. ✅ File exists: test -f specs/port/trinity/fpga/openxc7-synth/vsa_coproc_d6_top.t27 && echo present prints present
  2. ✅ Module name matches: grep -cE '^\s*(pub )?module vsa_coproc_d6_top\b' ... prints 1
  3. ✅ Generated Verilog correct: t27c gen-verilog ... | grep -cE '^module vsa_coproc_d6_top ?\(' prints 1
  4. ✅ File parses: t27c spec-status ... prints IMPLEMENTED (not NOPARSE)
  5. ✅ Has tests: grep -cE '^[[:space:]]*test[[:space:]]+("|[A-Za-z_])' ... prints 9
  6. ✅ Tests compile and run: t27c test-report ... | grep -c BLOCKED prints 0

Boundary Compliance:

  • ✅ Only the required file was created: specs/port/trinity/fpga/openxc7-synth/vsa_coproc_d6_top.t27
  • ✅ No files outside the boundary were modified
  • ✅ The documentation file in docs/now/ is automatically generated by the publisher and is expected

Red Checks Analysis:

All three red checks existed on master and are not caused by this PR:

  1. duplicate-bodies: Generic duplicate body tracking across the repository, not specific to this port
  2. cli-tri: Build failure in the tri binary with warnings treated as errors, unrelated to this port
  3. t27b-native-ratchet: Generic ratchet failure, not specific to this PR

Requirements Compliance:

  • ✅ FR-001: File declares module vsa_coproc_d6_top with correct name
  • ✅ FR-002: File parses and compiles (confirmed by test-report)
  • ✅ FR-003: Only this one file changed (confirmed by git diff)
  • ✅ FR-004: Each test asserts behavior from the original (visible from test implementations)

Second, independent review (glm-4.7-flash): APPROVE -- All 6 acceptance criteria met; generated code compiles and tests pass; no new defects introduced

@tri-claw tri-claw Bot added the bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525) label Oct 13, 2026
@gHashTag
gHashTag enabled auto-merge (squash) October 13, 2026 05:35
@gHashTag
gHashTag merged commit 431b782 into master Oct 13, 2026
29 of 32 checks passed
@gHashTag
gHashTag deleted the queen-9322 branch October 26, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bee-reviewed A reviewer bee reviewed and verified this PR at its current head; the only merge signal (#5525)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port gHashTag/trinity:fpga/openxc7-synth/vsa_coproc_d6_top.v (Verilog, 1 module) to specs/port/trinity/fpga/openxc7-synth/vsa_coproc_d6_top.t27

2 participants