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

Array literals flow into Verilog unchanged #260

Open
YikeZhou opened this issue Nov 2, 2023 · 0 comments
Open

Array literals flow into Verilog unchanged #260

YikeZhou opened this issue Nov 2, 2023 · 0 comments

Comments

@YikeZhou
Copy link

YikeZhou commented Nov 2, 2023

Edit: Could it be because the feature is not synthesizable (all the time)? Apologize if this is a "won't fix".

Input:

module top(output logic[7:0] o);
   assign o = '{0:1, 3:1, 7:1, default:0};
endmodule

Output:

module top (o);
        output wire [7:0] o;
        assign o = '{
                0: 1,
                3: 1,
                7: 1,
                default: 0
        };
endmodule
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

No branches or pull requests

1 participant