You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most languages support collapsing blocks of code by wrapping that block of code in a comment like:
// C example// region boring variable assignmentsinta=1;
floatb=2;
charsomestr="some string value";
// endregion <optionally repeat the name of the region>
This doesn't appear to be supported in this verilog plugin yet. It's supported in C, Python, Java, C#, etc., so I'd call it pretty standard.
In Verilog, it's reasonably common to generate long code using a scripting language, so it would be helpful to be able to collapse it.
Here is an example test case, in Verilog:
modulesample_coefficients(
input [7:0] index_to_request,
output [4:0] requested_coefficient
);
// 255 coefficients, each 5 bits widereg [255:0] coeffs_const [4:0];
// region assign coeffs_const valuesassign coeffs_const[0] =5'd0;
assign coeffs_const[1] =5'd2;
assign coeffs_const[2] =5'd4;
assign coeffs_const[3] =5'd0;
assign coeffs_const[4] =5'd13;
assign coeffs_const[5] =5'd22;
assign coeffs_const[6] =5'd0;
// .. many more assigns, up to 255 index// endregion assign coeffs_const valuesassign requested_coefficient = coeffs_const[index_to_request];
endmodule
The text was updated successfully, but these errors were encountered:
Most languages support collapsing blocks of code by wrapping that block of code in a comment like:
This doesn't appear to be supported in this verilog plugin yet. It's supported in C, Python, Java, C#, etc., so I'd call it pretty standard.
In Verilog, it's reasonably common to generate long code using a scripting language, so it would be helpful to be able to collapse it.
Here is an example test case, in Verilog:
The text was updated successfully, but these errors were encountered: