|
|
1 `timescale 1ns/100ps
2 module string_literals ();
3
4 string a;
5
6 initial begin
7 $display ("@ %gns a = %s", $time, a);
8 a = "Hello Deepak";
9 $display ("@ %gns a = %s", $time, a);
10 #1 a = "Over writing old string";
11 $display ("@ %gns a = %s", $time, a);
12 #1 a = "This is multi line comment \
" 13 and this is second line";
" 14 $display ("@ %gns a = %s", $time, a);
15 #1 $finish;
16 end
17
18 endmodule
You could download file string_literals.sv here
|