Re: Query related to escaped character in verilog

From: Shalom Bresticker (Shalom.Bresticker@freescale.com)
Date: Wed Feb 09 2005 - 07:36:01 PST

  • Next message: Neil Korpusik: "Re: Query related to escaped character in verilog"

    The three simulators I have access to all print " s a", with leading space
    before the "s".

    Shalom

    Kausik Datta wrote:

    > 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
    >
    >

    --
    Shalom Bresticker                        Shalom.Bresticker @freescale.com
    Design & Verification Methodology                    Tel: +972 9  9522268
    Freescale Semiconductor Israel, Ltd.                 Fax: +972 9  9522890
    POB 2208, Herzlia 46120, ISRAEL                     Cell: +972 50 5441478
    

    [ ]Freescale Internal Use Only [ ]Freescale Confidential Proprietary



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