M
Mark McDougall
Guest
Hi,
I've got a problem which I'm sure has been solved before.
I'm doing mixed-language simulation in ModelSim, and have two VHDL
entities connected by an 'inout' port. The top-level of my testbench is
Verilog, so I use a 'wire' to connect the two ports with a 'pullup'.
Trouble is, the entities (3rd party code) specifically compare against
logic level '1' on the wire in certain circumstances. So when the line
isn't driven, I see 'H' on ModelSim wave output but the VHDL code fails.
Is there any way in Verilog of forcing a pullup to '1', so that VHDL
comparisons against '1' succeed?
Or is there another/better way of achieving this end?
I'd prefer not to change either entity as it's 3rd party code.
Regards,
--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
I've got a problem which I'm sure has been solved before.
I'm doing mixed-language simulation in ModelSim, and have two VHDL
entities connected by an 'inout' port. The top-level of my testbench is
Verilog, so I use a 'wire' to connect the two ports with a 'pullup'.
Trouble is, the entities (3rd party code) specifically compare against
logic level '1' on the wire in certain circumstances. So when the line
isn't driven, I see 'H' on ModelSim wave output but the VHDL code fails.
Is there any way in Verilog of forcing a pullup to '1', so that VHDL
comparisons against '1' succeed?
Or is there another/better way of achieving this end?
I'd prefer not to change either entity as it's 3rd party code.
Regards,
--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266