| // top.v |
| `define N 32 |
| |
| `define TOP(a,b) a + b |
| `TOP( `TOP( b,1), `TOP( 42, `TOP(100, c) ) ) |
| |
| `include "my_incl.vh" |
| |
| `include "bar.vh" |
| |
| `INCLUSION_FILES |
| |
| `define single 11 |
| `define multiple 20 |
| |
| `defaut_nettype wire |
| |
| `undef multipl tt |
| |
| $display("Internal error: null handle at %s, line %d.",`__FILE__, `__LINE__); |
| |
| module top(input clk, input [`N-1:0] in1, output [`M-1:0] q); |
| m1 u1(.clk(clk), .in1(in1), .q(q)); |
| wire a[`single:`multiple]; |
| `BLOB |
| |
| `xyz(1,a) |
| |
| `xyz(1) |
| |
| `MACRO1 ( 1 , , ) |
| |
| `MACRO1 ( , , 1 ) |
| |
| `MACRO1 ( 1 , , 3 , 4 ) |
| |
| `MACRO1 ( , ) |
| |
| `MACRO1 ( ) |
| |
| `MACRO1 |
| |
| $display(`msg(left side,right side)); |
| |
| `macro_with_args( out, in, toomany) |
| |
| `WB_DUT_U_ASSIGN(12,34) |
| |
| /* |
| comment |
| */ |
| endmodule // top |