What is logic data type? Where can we use it?

The logic data type is an improved version of reg data types where continuous assignments, gates and modules can drive it. However, it can use to store variables. But it cannot be driven by multiple drivers while modelling a bidirectional bus. Test bench writers mostly use these data types without worrying about reg/wire. Syntax: logic … Read more