I have an output port (reg) in a module. That module is instantiated in my top level module, with that output signal as wire to a pin on the CPLD.
I don't assign anything to this in my tb (since it would be an input into the tb).
But I still get the above error from Modelsim. The compilation goes through fine which makes me think that my tb has an issue. But I do nothing with this signal in my tb.
i didnot quite follow what you said,maybe you can shou some code of your design.
just note that:in testbench,there should be only reg or wire,that is,if a signal in your design project is declared as input,then in your testbench,you should define it as reg;otherwise,define it wire.No tri-state in testbench!