We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
localparam
Test case
module aman; localparam int unsigned DigitCountLg2 = 2, DigitCount = 2 ** DigitCountLg2, AVeryLongLineAndInformationAndIdontKnowWhatToWrite = 4; endmodule
version: 3624 d256d77
Actual output
Same. If the long line is removed, the line is formatted to a single line though.
$ verible-verilog-format --show_token_partition_tree ... Full token partition tree: { ([<auto>], policy: always-expand) @{} { ([<auto>], policy: always-expand) @{0}, (origin: "module aman...; endmodule") { ([module aman ;], policy: fit-else-expand, (origin: "module aman;")) } { (>>[localparam int unsigned DigitCountLg2 = 2 , DigitCount = 2 ** DigitCountLg2 , AVeryLongLineAndInformationAndIdontKnowWhatToWrite = 4 ;], policy: fit-else-expand, (origin: "localparam ...oWrite = 4;")) } { ([endmodule], policy: always-expand, (origin: "endmodule")) } } }
Expected or suggested output
I could not find any reference to the formatting of this style of many parameters in a single localparam statement in the style guides I searched for.
I can create a PR if a fix is needed.
The text was updated successfully, but these errors were encountered:
Probably related:
module test; localparam int unsigned DigitCount = 2 ** DigitCountLg2, SegmentCount = 7, MaxReprNumber = 10 ** DigitCount - 1, BcdCount = $clog2(10); endmodule
module test; localparam int unsigned DigitCount = 2 ** DigitCountLg2, SegmentCount = 7, MaxReprNumber = 10 ** DigitCount - 1, BcdCount = $clog2( 10 ); endmodule
Sorry, something went wrong.
No branches or pull requests
Test case
version: 3624 d256d77
Actual output
Same. If the long line is removed, the line is formatted to a single line though.
Expected or suggested output
I could not find any reference to the formatting of this style of many parameters in a single
localparam
statement in the style guides I searched for.I can create a PR if a fix is needed.
The text was updated successfully, but these errors were encountered: