[sv-ec] RE: [system-verilog] synthesis query for default value of bit type

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sat Jan 24 2009 - 22:24:31 PST
By the way, some synthesis tools connect undriven signals or at least undriven inputs, by default, to 0.

Shalom

________________________________
From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Prakash Barnwal
Sent: Friday, January 23, 2009 6:06 PM
To: sv-ec@server.eda.org
Subject: [sv-ec] [system-verilog] synthesis query for default value of bit type

Hi,

What is default value of bit for synthesis in below example?
module test (input  in1, in2,
             output reg   out2);
   bit  a, b;
   logic  c = a + b;   // c is immune to change of values of a and b as it is an initialization.
Ques1. What is the default value of a or b considered during synthesis in this example?
   always@(in1<mailto:always@(in1> or in2)
    begin
        a = in1 ;
        b = in2 ;
       out2 = c;   // c = 0 + 0 [== 0]
    end
endmodule

Regards,
Prakash


--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Jan 24 22:25:48 2009

This archive was generated by hypermail 2.1.8 : Sat Jan 24 2009 - 22:27:57 PST