Forum Discussion
LChow3
Occasional Contributor
6 years agoModelSim - incorrect output
I'm following the ModelSim_GUI_Introduction.pdf. On page 16 of the pdf file, I couldn't get the correct output for both Figures 25 and 26. Please find attached the screenshot of the waveform input,...
SyafieqS
Super Contributor
6 years agoHi Chow,
I have seen the pdf. So basically I saw nothing wrong with your code and the functionality work well with the simulation. Based on this equation f (x1,x2,x3) = x1x2 + x1x3 + x2x3. Figure 25 and 26 you mentioned is not the output yet, it just to specify the input and the output is on Figure 27. Below is the truth table of the equation for your second picture simulation for 0ns to 300ns and it is same as the simulation.
x1 =1 1 0
x2 =0 0 1
x3 =0 1 0
x1x2 + x1x3 + x2x3
000 =0
010 =1
010 =1
Thanks,
Regards
- LChow36 years ago
Occasional Contributor
Thank you. That means my simulation output is correct.
Here attached the ModelSim_GUI_Introduction.pdf for version 18.0. Figure 27 is not output. But, the output in Figure 28 is not 011, as you wrote. Is Figure 28 showing a wrong output?