On Visual Studio, I run this Verilog simulation command, but I get the error message:
iverilog -O hello_tb.vvp hello_tb.v
error C:\Program Files (x86)\iverilog\bin\iverilog.exe: unknown option -- O
module hello(A,B);
input A;
output B;
assign B = A;
endmodule
`timescale 1ns / 1ns
`include "hello.v"
module hello_tb;
reg A;
wire B;
hello uut(A,B);
initial begin
$dumpfile("hello_tb.v");
$dumpvars(0,hello_tb);
A=0;
#20;
A=1;
#20;
A=0;
#20;
$display("test finished");
end
endmodule