Forum Discussion
LChow3
Occasional Contributor
6 years agoModelSim - vector input not showing the correct binary
Please see the attached file. It's a 10's complement for 4-bit BCD. I have a 4-bit vector input, and 4-bit vector output. But, the vector input is not showing the correct binary number. It shows all...
LChow3
Occasional Contributor
6 years agoIf I delete D, drag D from Object pane to Wave window, I couldn't key in the D binary values.
RichardT_altera
Super Contributor
6 years agoDo you mean to provide input stimulus? If so, you can right click the D in the wave window, select force and insert value. Then run simulation.
Insert one by one will become a tedious job, instead you can insert example line in the transcript.
VSIM> force -deposit /D 2#0, 2#1 20, 2#0 40, 2#1 60, 2#1 80
VSIM> run 200 ns
the line change D to binary value 0 (2#0) starting from time instant now. Then, 20 ns later, change the input to 1 (2#1 20).