Skip to content

add support to max_ii#153

Merged
tancheng merged 8 commits intomainfrom
architecture_spec
Oct 17, 2025
Merged

add support to max_ii#153
tancheng merged 8 commits intomainfrom
architecture_spec

Conversation

@n0thingNoob
Copy link
Copy Markdown
Collaborator

Add max_allowed_ii_by_hw to arch spec. The default max II is 20.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for configurable maximum allowed initiation interval (II) in the architecture specification. This allows users to specify the maximum II value via the max_allowed_ii_by_hw field in YAML configuration files.

  • Added max_allowed_ii_by_hw field to architecture YAML specification with default value of 20
  • Updated YAML parsing to handle the new configuration parameter
  • Modified code generation to support string attributes in constant literals

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/arch_spec/architecture.yaml Added max_allowed_ii_by_hw field and updated num_registers
test/arch_spec/arch_spec_example.yaml Added max_allowed_ii_by_hw field and adjusted grid dimensions
lib/NeuraDialect/Transforms/MapToAcceleratorPass.cpp Updated YAML parsing to read max_ii configuration and use it instead of hardcoded value
lib/NeuraDialect/Transforms/GenerateCodePass.cpp Added support for string attributes in constant literal generation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@n0thingNoob n0thingNoob marked this pull request as ready for review October 14, 2025 02:38
@n0thingNoob
Copy link
Copy Markdown
Collaborator Author

Here is the link #154 for the function %arg issue

- Convert camelCase variable names to snake_case for consistency
- Update variable names in YAML parsing section
- Improve code readability and maintainability
@tancheng tancheng merged commit d536de3 into main Oct 17, 2025
1 check 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.

3 participants