Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17049 Discussions

how to simulation tristate bus in modelsim

Altera_Forum
Honored Contributor II
2,126 Views

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.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,264 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
1,264 Views

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

0 Kudos
Reply