YosysHQ / yosys

Yosys Open SYnthesis Suite
https://yosyshq.net/yosys/
ISC License
3.42k stars 874 forks source link

[Show command] Preserve the order of module inputs and outputs in the generated diagram. #4241

Open zapta opened 7 months ago

zapta commented 7 months ago

Feature Description

When generating a module diagram with the show command, the inputs and the outputs seem to be sorted alphabetically which result in counter intuitive order. Below is an example.

This request is to preserve the order of the inputs and the order of the outputs as they appear in the original source code.

Test module

module b (
    input clk,
    input reset,
    input red,
    input green,
    input blue
);

endmodule

Representation in the diagram:

hardware