Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- It would help if you attached the example code you are trying to model, what you wrote would not even compile. You need to make sure the testbench is driving Z's when you want to read what the device is driving, and the device must be driving Z's to read what the testbench is driving. Dave --- Quote End --- OK, I have made a small test case of actual code and I put that in the previous response. It messed up all my indenting here so its a bit ugly to see the structure. But it compiles on my system and runs. I have renamed the buses in the test bench to cpubus and the bus in the top module is now cpldbus so that its easier to discuss. Is it true that I will not see the cpubus in the testbench take on the actual value drive up from the top module?