Recommended: Drop buffer port mode.
In the previous coding example, signal C was modeled with a buffer mode, and is used both internally and as an output port. Every level of hierarchy that can be connected to C must also be declared as a buffer.
To drop buffer mode:
- Insert a dummy signal.
- Declare port C as an output.