sv-parser-pp 0.3.6

Helper crate of sv-parser
Documentation
1
2
3
4
5
6
7
8
9
10
`define connect(NAME, INDEX = 0) \
  assign NAME``_``INDEX``__x = NAME[INDEX].x; \
  assign NAME``_``INDEX``__y = NAME[INDEX].y;

module a ();

  `connect(a)
  `connect(a, 1)

endmodule