There seems to be no good consensus on strictness vs ergonomics when it comes to trailing commas in parameter lists.
For example, this test case:
module foo #(
parameter THING = 0,
)();
endmodule
This is rejected by iverilog and sv2v, but happily accepted by yosys.
For those using sv2v as a frontend to (for example) yosys, it would be great if sv2v could accept trailing commas like this, and just not output them. That would make a good workflow for humans, and be fully compatible with the next step in the pipeline.
There seems to be no good consensus on strictness vs ergonomics when it comes to trailing commas in parameter lists.
For example, this test case:
This is rejected by iverilog and sv2v, but happily accepted by yosys.
For those using sv2v as a frontend to (for example) yosys, it would be great if sv2v could accept trailing commas like this, and just not output them. That would make a good workflow for humans, and be fully compatible with the next step in the pipeline.