By design, why does SystemVerilog logic type has 4-states possible but VHDL std_logic type has 9-states possible?...

O

okhajut

Guest
The SystemVerilog logic type can take one of these possible values per bit: \'0\', \'1\', \'X\' and \'Z\'.

The VHDL std_logic type can take one of these values per bit: \'0\', \'1\', \'X\', \'Z\', along with \'U\', \'W\', \'L\', \'H\' and \'-\'.

I am a user of VHDL and am trying to learn SystemVerilog. I am totally confused that SystemVerilog logic type and the VHDL std_logic types are different in this way. This raises a few questions for me:

1. Why were Verilog and SystemVerilog logic type not made as versatile as VHDL? I am sure this will have some type of drawbacks in certain use cases.
2. In VHDL simulation it is common to have values \'U\' and sometimes (only for top level ports) \'L\' and \'H\'. How are these supposed to be handled in a SystemVerilog design by the simulator?
 
okhajut schrieb am Sonntag, 20. Februar 2022 um 14:49:19 UTC-7:
The SystemVerilog logic type can take one of these possible values per bit: \'0\', \'1\', \'X\' and \'Z\'.

The VHDL std_logic type can take one of these values per bit: \'0\', \'1\', \'X\', \'Z\', along with \'U\', \'W\', \'L\', \'H\' and \'-\'.

I am a user of VHDL and am trying to learn SystemVerilog. I am totally confused that SystemVerilog logic type and the VHDL std_logic types are different in this way. This raises a few questions for me:

1. Why were Verilog and SystemVerilog logic type not made as versatile as VHDL? I am sure this will have some type of drawbacks in certain use cases.
2. In VHDL simulation it is common to have values \'U\' and sometimes (only for top level ports) \'L\' and \'H\'. How are these supposed to be handled in a SystemVerilog design by the simulator?

Verilog has five different drive strengths for wires, so you can model things such as pullup resistors. These just aren\'t necessary much anymore, except for very low-level modeling. Most chips don\'t have tristates anymore.

In fact, SystemVerilog has types such as \"bit\" and \"byte\" which can\'t even take on X and Z. This makes simulation faster.
 

Welcome to EDABoard.com

Sponsor

Back
Top