Undetected multiple drivers on wire when connected to module output port. #2167
This seems related to issue #1184
parameter WORD_WIDTH = 32; (or any convenient value)
The Verilator linter does not notice the multiple drivers on "foo".
This error originated when I changed the type of "foo" from reg to wire, because the driving logic was put into a module, and forgot to remove the intial value.
Perhaps Verilator could check that wires on module output ports do not have any assignments, or that wires with assignments cannot be used to connect to module outputs.