Recommended: Drop buffer port mode.
In the previous coding example, we model signal C with buffer mode and use it both internally and as an output port. Every hierarchical level that can connect to C must also declare C as a buffer.
To drop buffer mode:
- Insert a dummy signal.
- Declare port C as an output.