Query related to escaped character in verilog

From: Kausik Datta (kausikd@cal.interrasystems.com)
Date: Wed Feb 09 2005 - 06:43:35 PST

  • Next message: Shalom Bresticker: "Re: Query related to escaped character in verilog"

    Hi,
    I have one query related to use of escaped character in verilog.

    Let's take the following example:

    reg [31:0] a;

    initil
    begin
        a = "s\0a";
        #5 $diaplay("%s\n", a);
    end

    Some tool print this one as "s a".
    and some tool print as "s"

    Which one is the correct output? LRM doesn't say anything about this.

    Thanks
    Kausik Datta

     




    This archive was generated by hypermail 2.1.4 : Wed Feb 09 2005 - 06:25:53 PST and
    sponsored by Boyd Technology, Inc.