I am reading a book and this kind of testing ( on the fly at ModelSim terminal) is mentioned there. Example above is from Page 7 of Digital System Design by Roth, et el. The book is published 2017! The method used above is mentioned through the book. It is using ModelSim.
I am reading a book and this kind of testing ( on the fly at ModelSim terminal) is mentioned there. Example above is from Page 7 of Digital System Design by Roth, et el. The book is published 2017! The method used above is mentioned through the book. It is using ModelSim.
Ok, let me explain this to you in detail as the message is not sinking in.
Using a GUI or even a force command does not scale. You cannot do any real simulation/verification using this approach. Instead what you should be doing is learning how to write a testbench, which is a simple verilog module that instantiates your circuit and provides inputs and/or sequence of inputs.
For your circuit, a testbench would look like:
Code:
module tb();
reg A,B,C,D,E;
gates my_instance(.A(A), .B(B), ...);
initial begin
A = 0;
end
endmodule