sv-parser-pp 0.13.5

Helper crate of sv-parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// IEEE 1800-2017 Clause 22.5 `define, `undef, and `undefineall
// The directive `define allows formal arguments to have default values.
// The default value may be an empty token sequence.
// This test verifies that `define M(a=)` and `define M(a=, b=)` are accepted
// and expand as expected without errors.
`define LOGIC(name, prefix=) logic prefix``name;
`define REAL(name, prefix=, suffix=) real prefix``name``suffix;
module test;
  logic signal;
  logic my_signal;
  real analog;
  real my_analog$real;
endmodule