I am teaching myself Verilog HDL as of today and attempting to understand. I am trying to display the opposite/negation of a variable in bit form that is passing through a logic diagram example.
module My_Implementation();
reg A,B,C,D;
wire F;
assign F = ((A&&(!B))||((!A)&&B))&&(C||(!D));
initial begin
$monitor("A=%b A'=%b B=%b B'=%b C'=%b D=%b OUTPUT=%b",A,!A,B,!B,!C,D,F);
#10 A=0; B=0; C=0; D=0;
#10 A=1;
#10 B=1;
#10 C=1;
#10 D=1;
#10 A=0;
#10 B=0;
#10 C=0;
#10 D=0;
#10 $finish;
end
endmodule
I've tried numerous combinations to try to get the negated variable to display but I only get the output of "X".