There is issue beautifying Verilog module instantiation when you are using a define, as demonstrated bellow:
Before beautify:
`define WIDTH 32
module_a instance_a(
.a_port(17),
.another_port (32'b0),
.yet_another_port (a_wire)
);
module_a instance_b(
.a_port (17),
.another_port (`WIDTH'b0),
.yet_another_port(a_wire)
);
After Beautify:
`define WIDTH 32
module_a instance_a(
.a_port (17),
.another_port (32'b0),
.yet_another_port (a_wire)
);
module_a instance_b(
.a_port (17),
.another_port (`WIDTH'b0),
.yet_another_port(a_wire)
);
You see, the second instance does not align the parameters. This is because the beautifier get confused by the `WIDTH'b0
This is with SlickEdit v21.0.0.12
Also, a second issue, the 'after beautifier' above was obtained by beautifying the whole buffer. If you select a block instead, and beautify just that block (that is, the example above is part of a larger file, and you select just the instances shown above, and beautify this block), you get:
Selection beautify:
`define WIDTH 32
module_a instance_a(
.a_port(17),
.another_port (32'h0),
.yet_another_port (a_wire)
);
module_a instance_b(
.a_port (17),
.another_port (`WIDTH'h0),
.yet_another_port(a_wire)
);
So, the parameters are not aligned.
Regards,
Eric