Single line comment starts with // and ends at the end of line.
...........
#4 ;
$display("%d",out) ; //prints value
//$finish ;
end
............
In the above code the parts in green color italics are commented. As you can see
its possible to comment single line here#4 ;
$display("%d",out) ; //prints value
//$finish ;
end
............
............
initial begin
/*clock = 0 ;
reset = 1 ;*/
in1=1 ; in2=2 ;
............
Now, this is block comment which enables to comment a block of data.initial begin
/*clock = 0 ;
reset = 1 ;*/
in1=1 ; in2=2 ;
............
No comments:
Post a Comment