SystemVerilog logic vs wire vs reg (and bit): When to Use Each
In short: Use logic for almost every signal in SystemVerilog. It holds 4 states (0, 1, X, Z) and takes either one assign or procedural writes. reg is just the old name for the same thing. Use wire only when a signal has more than one driver, like a shared bus or an inout port….
