Digital-IDE icon indicating copy to clipboard operation
Digital-IDE copied to clipboard

"show netlist" option cannot show correctly when other module instantiation in top module

Open Collect-diamond opened this issue 1 year ago • 2 comments

I defined 2 verilog modules, one for DFF and one for EXAMP, I instantiated the DFF module twice in the EXAMP module, but when I use the "show netlist" option to view the schematic, it shows the schematic of the DFF module, while when I change the name of the EXAMP module to A (the initials of the module are sorted before D), the schematic is correct. is it a bug?

  • netlist show with module name EXAMP(it didnt show correctly) module EXAMP
  • netlist show with module name A module A

Collect-diamond avatar Apr 08 '23 01:04 Collect-diamond

The issue has been logged, can you please provide sample code for testing?

Nitcloud avatar Apr 10 '23 14:04 Nitcloud

D_FF.v

module D_FF(clk,d,q);
    output reg q;
    input clk,d;
    always @ (posedge clk)
        q<=d;
endmodule

TEST.v (module A or E)

module E (clk,d,a,q);
    output  q;
    input clk,d,a;

    wire d1;
    wire q1;

    D_FF dff1(.clk(clk),.d(d1),.q(q1));
    D_FF dff2(.clk(q1),.d(d),.q(q));

    or (d1,a,q);

endmodule

Collect-diamond avatar Apr 11 '23 02:04 Collect-diamond