attr.sv 405 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module Example(
    input a, b,
    (* who=1 *) output c,
    (* what=2 *) output d, e,
    input f,
    (* when=3 *) (* where=4 *) output g, h, i
);
endmodule

10
(* a=1 *) module top;
11
    (* foo="bar" *) reg x;
12
    initial begin
13
        (* bar = "baz" *) x = 1;
14 15
        $display(x);
    end
16 17 18 19 20 21 22

    reg a, b;
    wire c;
    wire d, e;
    reg f;
    wire g, h, i;
    Example m(a,b,c,d,e,f,g,h,i);
23
endmodule