-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Description
I've just been setting up a flow to run all our code through verilog-batch-auto-diff and have found some syntax that verilog-mode doesn't like. The following testcase shows the code:
module submod (/*AUTOARG*/);
parameter TEST = 0;
input logic clk;
endmodule
module test(/*AUTOARG*/);
input logic clk;
submod
`ifdef PARAMS
#( .TEST (1) )
`endif
u_submod (/*AUTOINST*/);
endmoduleAnd the output from running
Processing test.sv
%Error: test.sv:20: Can’t locate ‘`endif’ module definition (Expanded macro to endif)
Check the verilog-library-directories variable.
I looked in (if not listed, doesn’t exist):
test.sv
The code in question is pretty horrific so we will likely rewrite it anyway but wanted to report it.
Metadata
Metadata
Assignees
Labels
No labels