mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
- adds support for using macros and macro arguments within the argument list to other macros - fixes an issue where macros with arguments would have extraneous whitespace - fixes handling of multiline string literals
44 lines
993 B
Verilog
44 lines
993 B
Verilog
module top;
|
|
initial begin
|
|
$display("FOO");
|
|
$display("`FOO");
|
|
|
|
$display("BAR");
|
|
$display("`FOO");
|
|
$display("\\BAR");
|
|
$display("\\`FOO");
|
|
|
|
$display("\"FOO");
|
|
$display("\"BAR");
|
|
$display("\"FOO\"");
|
|
$display("\"BAR\"");
|
|
|
|
$display("FOO");
|
|
$display("FOOBAR");
|
|
|
|
$display("prefixLOL");
|
|
$display("`BAR(LOL)");
|
|
$display("\\prefixLOL");
|
|
$display("\\`BAR(LOL)");
|
|
|
|
$display("prefixBAR");
|
|
$display("`BAR(BAR)");
|
|
$display("\\prefixBAR");
|
|
$display("\\`BAR(BAR)");
|
|
|
|
$display("prefixsBAR");
|
|
$display("`BAR(sBAR)");
|
|
$display("\\prefixsBAR");
|
|
$display("\\`BAR(sBAR)");
|
|
|
|
$display("FOO\"BAR");
|
|
|
|
$display("TEST END");
|
|
$display("TEST END");
|
|
$display("TEST END");
|
|
$display("TEST`FOO END");
|
|
$display("TEST\"BAR END");
|
|
$display("TEST\"BAR ENDBAR");
|
|
end
|
|
endmodule
|