Skip to content

Add small conv YAML validation#314

Open
guosran wants to merge 2 commits into
tancheng:masterfrom
guosran:fix/conv-small-validation
Open

Add small conv YAML validation#314
guosran wants to merge 2 commits into
tancheng:masterfrom
guosran:fix/conv-small-validation

Conversation

@guosran

@guosran guosran commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Addresses #292 by adding a small conv validation case. This PR adds the focused small YAML test and generator support needed to reproduce the conv control/dataflow issue without running the large 4200-iteration test.

Changes

  • Add validation/test/conv/conv_small.yaml.
  • Add cgra/test/CgraRTL_conv4x4_test_from_yaml.py.
  • Extend validation/script_generator.py for the small conv YAML flow.
  • Add shared const opcode definitions used by the generated control stream.

Validation

CGRA_CONV_NI=2 CGRA_CONV_NJ=2 CGRA_CONV_YAML=validation/test/conv/conv_small.yaml \
python3 -m pytest cgra/test/CgraRTL_conv4x4_test_from_yaml.py::test_homogeneous_4x4_conv_combinational_mem_access -q --tb=short

@guosran guosran force-pushed the fix/conv-small-validation branch from 2b98ad9 to ab5d341 Compare June 25, 2026 19:46
@guosran guosran marked this pull request as draft June 25, 2026 20:05
@guosran guosran marked this pull request as ready for review June 26, 2026 00:42
@guosran

guosran commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

This adds a small conv YAML/test path so we can validate the split RTL fixes without running the very large 4200-case test.

CGRA_CONV_NI=2
CGRA_CONV_NJ=2
CGRA_CONV_YAML=validation/test/conv/conv_small.yaml

Validation command:
python3 -m pytest cgra/test/CgraRTL_conv4x4_test_from_yaml.py::test_homogeneous_4x4_conv_combinational_mem_access -q --tb=short

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