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

From: Prakash Barnwal <pbarnwal_at_.....>
Date: Fri Jan 23 2009 - 08:06:13 PST
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, and is
believed to be clean.
Received on Fri Jan 23 08:06:47 2009

This archive was generated by hypermail 2.1.8 : Fri Jan 23 2009 - 08:07:24 PST