Skip to content

do we support macro definition in port list  #1688

@zjuxieyi

Description

@zjuxieyi

Hi,

I'm doing a third-party IP integration and using EMACS-verilog-mode.

This third-party IP using this bad coding-style in its top file, like this:
`ifdef A_EN

input[31:0] a_addr;
input a_valid;
output a_ready;

`elsif

...

`endif

But in any one of my macro-definition header files, I have not defined this macro "A_EN" at all.
Via EMACS-verilog-mode, if I create a wrapper file to include this third-party IP's RTL-top,and other my own RTL modules.
I still see that these ports on the port list in my wrapper. However these ports are not expected to present (if specifying correct macro):

Is there a way to fix this, let EMACS to correctly present the right port pins according to my macro-definitions.

Thanks,
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions