Advantages and Disadvantages of ANSI style and Non-ANSI style port declarations

K&R (non-ANSI) declarations

  • Advantages: none
  • Disadvantages: Unneeded and excess typing that can lead to mistakes. Violates the DRY principle.

ANSI declarations

  • Advantages: Don’t need to type as much. All the port information is in one location.
  • Disadvantages: None.

Fortunately for C, K&R style didn’t make it into the standard. Unfortunately for Verilog, it did make it into the standard, and folks still use it today.