Ashish Agrawal
Member level 3
Hi All,
I need some help in understanding the "logic" in system verilog.
I am familiar to code RTL in verilog but now requirement is for system verilog.
I am confused between "logic" and "wire".
1. In verilog all the input ports must be of "wire" types, which is implicit if you don't define any types. Is this requirement same for system verilog? or input can be of "logic" types as well? what will be the advantage of defining input as "logic"? What will be the default type if nothing is defined? can an input be defined for both the types "wire" and "logic"?
2. What is the difference in following statements
wire a;
logic a;
wire logic a;
logic wire a;
Thanks in advance.
-Ashish
I need some help in understanding the "logic" in system verilog.
I am familiar to code RTL in verilog but now requirement is for system verilog.
I am confused between "logic" and "wire".
1. In verilog all the input ports must be of "wire" types, which is implicit if you don't define any types. Is this requirement same for system verilog? or input can be of "logic" types as well? what will be the advantage of defining input as "logic"? What will be the default type if nothing is defined? can an input be defined for both the types "wire" and "logic"?
2. What is the difference in following statements
wire a;
logic a;
wire logic a;
logic wire a;
Thanks in advance.
-Ashish