Skip to content

Support embed component path - #1754

Closed
taichi-ishitani wants to merge 1 commit into
veryl-lang:masterfrom
taichi-ishitani:embed_component_path_to_embed_block
Closed

Support embed component path#1754
taichi-ishitani wants to merge 1 commit into
veryl-lang:masterfrom
taichi-ishitani:embed_component_path_to_embed_block

Conversation

@taichi-ishitani

Copy link
Copy Markdown
Contributor

close #1751

Scoped identifiers wrapped with \((( and ))) in embed blocks are resolved and the results are emitted into the code blocks.

Example:

Veryl

module Module47C {
    inst u_a: Module47A;

    embed (inline) sv{{{
        bind u_a
        \(((Module47B))) u_b ();

        initial begin
            $display("hello");
        end
    }}}
}

Generated SV

module veryl_testcase_Module47C;
    veryl_testcase_Module47A u_a ();

    `ifndef SYNTHESIS
        bind u_a
        veryl_testcase_Module47B u_b ();

        initial begin
            $display("hello");
        end
    `endif
endmodule

@taichi-ishitani
taichi-ishitani force-pushed the embed_component_path_to_embed_block branch from 3915813 to d13a74d Compare July 4, 2025 16:43
@codspeed-hq

codspeed-hq Bot commented Jul 4, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #1754 will not alter performance

Comparing taichi-ishitani:embed_component_path_to_embed_block (ed33b10) with master (2b90cb0)

Summary

✅ 3 untouched benchmarks

@taichi-ishitani
taichi-ishitani force-pushed the embed_component_path_to_embed_block branch 2 times, most recently from 90746bf to e18f9ce Compare July 5, 2025 11:38
@taichi-ishitani
taichi-ishitani force-pushed the embed_component_path_to_embed_block branch from e18f9ce to ed33b10 Compare July 7, 2025 00:25
taichi-ishitani added a commit to taichi-ishitani/veryl-doc that referenced this pull request Jul 7, 2025
@dalance dalance mentioned this pull request Jul 7, 2025
25 tasks
taichi-ishitani added a commit to taichi-ishitani/veryl-doc that referenced this pull request Jul 7, 2025
@taichi-ishitani
taichi-ishitani marked this pull request as draft July 10, 2025 02:49
@taichi-ishitani

Copy link
Copy Markdown
Contributor Author

Updating parol v4 is required to implement this feature.
I will open a new PR after merging #1827 .

@taichi-ishitani
taichi-ishitani deleted the embed_component_path_to_embed_block branch September 4, 2025 10:28
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.

Embed mangled path to embed code block

1 participant