Forum Discussion
Altera_Forum
Honored Contributor
16 years agotestbench output control, stupid question
Hi to all! I have a quite stupid question, I think. I have a testbench, where I force the output to the right result. If my code works how I expect, the output would be exactly equal to the on...
Altera_Forum
Honored Contributor
16 years agoAre you forcing the output from the testbench or inside the entity?
For the answer you want, add this to the testbench: error <= '1' when to_X01(forced_output) = 'X' else '0'; the to_X01 function will mean 'U', 'W', 'Z' and '-' are converted to 'X' too.