Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

how to simulation tristate bus in modelsim

Could someone let me know if there is a way that I can use a testbench in modelsim to drive a signal into an external tristate bus. I am using vhdl with the bus defined as type inout at the top level, and I would like to include it as part of my testbench. If I try to set a value to the bus while the internal value is Z, the destination signal also gets set to Z rather than the value set by the testbench.

Thanks.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I never experienced a problemwith simulation of inout signals. I can only imagine that you are displaying a wrong signal at the DUT side.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found a typo that was preventing it from working properly. It does work now.