Skip to content

[BUG] default property assignment must appear before child components #329

Description

@nachumg

Describe the bug
Specification Reference: Section 5.1.3.2 ("Assigning default values") allows a default property assignment to appear anywhere in a scope, and it should apply down-hierarchy to all component instances in that scope.

Tests show that systemrdl requires the default assignment to appear before any child components in the scope.

  1. Add at bottom of https://github.com/SystemRDL/systemrdl-compiler/blob/main/test/test_intr_prop.py
        self.assertEqual(top.find_by_path("block_a_int.crc_error").get_property("hw"),                                                                                                                                                  
                         rdlt.AccessType.w)
  1. Test passes.
  2. Modify https://github.com/SystemRDL/systemrdl-compiler/blob/main/test/rdl_src/intr_prop.rdl
    • Move line 9 to after line 16
  3. Test fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions