sv-parser/sv-parser-pp/testcases/macro_parameters_multiline.sv
2022-07-21 12:33:57 +02:00

17 lines
248 B
Systemverilog

`define disp(clk, exp, msg) \
always @(posedge clk) begin \
if (!(exp)) begin \
$display msg; \
end \
end \
module a ();
`disp(
clk,
!(a[i].b && c[i]),
("xxx(()[]]{}}}", a[i].b, c[i])
);
endmodule