I want to build a small combinational circuit(a few or's, 1 and, 1 not gates), and I stumbled upon a problem in the test bench(maybe even before) and was hoping that someone can help me.
This is the code:
module hewi(input D3,D2,D1,D0,output A0,A1,V);
wire k,s; //outputs of the and and not gates
not N01(k,D2);
and An1(s,k,D1);
or Ou1(A0,D3,s);
or Ou2(A1,D3,D2);
or Oufinal(V,D3,D2,D1,D0);
endmodule
This is the test-bench code
module test_benche();
wire D3,D2,D1,D0,A0,A1,V;
hewi test(D3,D2,D1,D0,A0,A1,V);
initial
begin
D3 = 1`b0;
D2 = 1`b0;
D1 = 1`b0;
D0 = 1`b0;
#50;
D3=1`b1;
D2=1`b0;
D1=1`b1;
D0=1`b1;
end
endmodule
The problem I receive is that it can't check any one of these expressions:
Undefined macro exists as: 'b0'
"testbench.sv", 8: token is '`b0'
D3=1`b0;
^
What am I missing here?