Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miss-formatted SV when omiting port connections #1229

Open
taichi-ishitani opened this issue Feb 6, 2025 · 0 comments · May be fixed by #1237
Open

Miss-formatted SV when omiting port connections #1229

taichi-ishitani opened this issue Feb 6, 2025 · 0 comments · May be fixed by #1237
Labels
bug Something isn't working

Comments

@taichi-ishitani
Copy link
Contributor

Format of generated SV is incorrect when port connections are omitted.

Veryl code

      inst u_bit_field: rggen::rggen_bit_field #(
        WIDTH:          4,
        INITIAL_VALUE:  INITIAL_VALUE,
        SW_WRITE_ONCE:  0,
        TRIGGER:        0
      )(
        i_clk:            i_clk,
        i_rst:            i_rst,
        bit_field_if:     bit_field_sub_if,
        o_write_trigger:  _,
        o_read_trigger:   _,
        o_value:          o_register_0_bit_field_0
      );

Generated SV

            rggen_rggen_bit_field #(
                .WIDTH         (4            ),
                .INITIAL_VALUE (INITIAL_VALUE),
                .SW_WRITE_ONCE (0            ),
                .TRIGGER       (0            )
            ) u_bit_field (
                .i_clk           (i_clk                   ),
                .i_rst_n         (i_rst_n                 ),
                .bit_field_if    (bit_field_sub_if        ),
                .o_write_trigger (                        ),
                .o_read_trigger  (                        ),
                .o_value         (o_register_0_bit_field_0),
                .i_sw_write_enable ('1),
                .i_hw_write_enable ('0),
                .i_hw_write_data   ('0),
                .i_hw_set          ('0),
                .i_hw_clear        ('0),
                .i_value           ('0),
                .i_mask            ('0),
                .
                o_value_unmasked ()

            );
@dalance dalance added the bug Something isn't working label Feb 6, 2025
taichi-ishitani added a commit to taichi-ishitani/veryl that referenced this issue Feb 10, 2025
@taichi-ishitani taichi-ishitani linked a pull request Feb 10, 2025 that will close this issue
taichi-ishitani added a commit to taichi-ishitani/veryl that referenced this issue Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants